Marker icon from url


#1

I try to show icon of marker from url, but I can’t find the property way.

var marker = new Marker();
marker.title =‘title’;
var icon = ‘http://…png’;
marker.icon=icon;
marker.position = mapsModule.Position.positionFromLatLng(res.lat,res.lng);
map.addMarker(marker);

But this does not work.
Anyone help?


#2

The plugin doesn’t support loading a marker image from remote server, it seems to support marker image only from app resources. You may override that / request plugin author to support different source of images.