Custom marker icon from local file in Google Earth plugin?
Hello,
I have Google Maps running in an IE OLE control that is embedded in a
non-web app. I want to place markers with custom icons on the maps.
The icons are visible on the maps, as well as in the Google Earth
plugin, if I do this:
var icon = new GIcon(G_DEFAULT_ICON);
icon.image = "http://www.google.com/intl/en_us/mapfiles/ms/micons/
blue-dot.png";
var opts = { "icon": icon };
var pos = new GLatLng(dLat, dLng);
var marker = new GMarker(pos, opts);
gMap.addOverlay(marker);
But if I change the second line to this:
icon.image = "file:///C:/blue-dot.png";
then the markers show up only on the maps, and not in the GE plugin.
Am I doing something wrong, or is the GE plugin not able to use local
files as custom icons?
--
You received this message because you are subscribed to the Google Groups "Google Maps API" group.
To post to this group, send email to google-maps-api@googlegroups.com.
To unsubscribe from this group, send email to google-maps-api+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home