Closed almaz1213 closed 3 years ago
OK, got it from https://github.com/ionic-team/ionic-native-google-maps/blob/master/documents/markeroptions/README.md
this.map.addMarker({
position: {lat: e.location[0], lng: e.location[1]},
icon: {
url: '../../assets/icon/eye.png',
size: {
width: 32,
height: 32
}
}
}).then((marker: Marker) => {}
[x ] any problem or bug report
[x ] Browser
cordova information: (run
$> cordova plugin list
)If you use
@ionic-native/google-maps
, please tell the package.json (only@ionic-native/core
and@ionic-native/google-maps
are fine mostly)Current behavior: in code:
it adds the marker on the map but raises error on browser console and exits from current function: