Closed eviv3k closed 4 years ago
Hey, could you check demo, documents, or more testing before asking? https://mapsplugin.github.io/ionic-googlemaps-quickdemo-v4/
Thank you! :)
I used: url: './assets/icon/startDrive.png'
If the path start with /
, it means the file path on the device. Start with ./
or without anything (i.e, assets/icon/startDrive.png
), means relative path from the url.
I used url: assets/icon/startDrive.png
. not correctly for android but iOS only.
Also used url: ./assets/icon/startDrive.png
. it correctly Android.
I'm submitting a...
If you choose 'problem or bug report', please select OS:
Cordova Information:
Current behavior: I use
@ionic-native/google-maps
andcordova-plugin-googlemaps@2.7.0
When the marker icon should be shown, it will shown as the default red marker instead, when I use:this.map.addMarker({ icon: { url: '/assets/icon/startDrive.png' }, position: latLng });
Marker Icons not shown correctly
url: '/assets/icon/startDrive.png'
What is the solution to this?
Thanks