Hello,
I am having problems with getting the custom icon to work on my google
api. I can get the map to work with no markers but when I add the
markers there is no markers. My code is:
function initialize() {
var map = new GMap2(document.getElementById("map_canvas"));
map.setCenter(new GLatLng(53.3441, -7.3379), 6);
var myIcon = new GIcon();
myIcon.image = 'markers/image.png';
myIcon.printImage = 'markers/printImage.gif';
myIcon.mozPrintImage = 'markers/mozPrintImage.gif';
myIcon.iconSize = new GSize(25, 25);
myIcon.shadow = 'markers/shadow.png';
myIcon.transparent = 'markers/transparent.png';
myIcon.shadowSize = new GSize(38, 25);
myIcon.printShadow = 'markers/printShadow.gif';
myIcon.iconAnchor = new GPoint(13, 25);
myIcon.infoWindowAnchor = new GPoint(13, 0);
myIcon.imageMap = [16, 0, 18, 1, 19, 2, 20, 3, 21, 4, 22, 5, 23,
6, 23, 7, 24, 8, 24, 9, 24, 10, 24, 11, 24, 12, 24, 13, 1, 14, 1, 15,
23, 16, 23, 17, 22, 18, 22, 19, 21, 20, 20, 21, 19, 22, 18, 23, 16,
24, 8, 24, 6, 23, 5, 22, 3, 21, 3, 20, 2, 19, 1, 18, 1, 17, 0, 16, 0,
15, 0, 14, 0, 13, 0, 12, 0, 11, 0, 10, 0, 9, 0, 8, 1, 7, 1, 6, 2, 5,
2, 4, 3, 3, 4, 2, 6, 1, 8, 0];
}
Sorry if this is a silly question, I am new to Google API.
Thanks, any help would be great,
Orla
--
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.