Is it possible to use an image locally stored on the device as the marker icon? I can use a URL and it works, but when I try to use a local image it won't load. How should I reference the image?
map.addMarker({
'position': new plugin.google.maps.LatLng(13.7579507,100.5643353),
'title': 'Fortune Town',
'icon': 'img/icon.png'
}, function(marker) {
marker.showInfoWindow();
});
Using Ionic Framework and Cordova with the Google Maps plugin from https://github.com/wf9a5m75/phonegap-googlemaps-plugin/
Already referred to
Local image for marker icon on Cordova/Phonegap Google Maps Plugin
and tried icon:"www/img/icon.png"
, but this doesn't work.