http://googlegeodevelopers.blogspot.com/2008/08/mapiconmaker-11-create-dynamic-flat-and.html
presents createLabeledMarkerIcon which works with
function load() {
if (GBrowserIsCompatible()) {
var map = new GMap2(document.getElementById("map"));
map.setCenter(new GLatLng(37.441944, -122.141944), 13);
var newIcon = MapIconMaker.createLabeledMarkerIcon({addStar: true,
label: "a", primaryColor: "#00ff00"});
var marker = new GMarker(map.getCenter(), {icon: newIcon});
map.addOverlay(marker);
}
}
Why can I not embed one function call in another, such as
function load() {
if (GBrowserIsCompatible()) {
var map = new GMap2(document.getElementById("map"));
map.setCenter(new GLatLng(37.441944, -122.141944), 13);
var newIcon = MapIconMaker.createLabeledMarkerIcon({addStar: true,
label: "a", primaryColor: "#00ff00"});
var marker = new GMarker(GLatLng(37.441944, -122.141944), {icon:
newIcon});
map.addOverlay(marker);
}
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---