You are trying to search for the attribute 'icontype' in your xml file
and pass it to the function createMarker() here
var icontype = parseInt(markers[i].getAttribute("icontype"));
// create the marker
var marker = createMarker(point,label,html,icontype);
But because this attribute doesn't exist the API cannot find an icon
image and therefore the default icon image is used.
Try to remove the occurences of 'icontype' and write instead
var marker = createMarker(point,label,html);
And because your icon is defined in global scope you can simply change
your createMarker function to
var marker = new GMarker(point, myIcon);
On May 10, 6:17 pm, adembe <[email protected]> wrote:
> Hello Everyone,
>
> http://www.adgeomatics.com/New10displays commercial property points
> and I would like each marker to display the company logo instead of
> the original marker. i have checked javascript errors and cannot
> figure out why the new markers are not showing.
>
> i have done my research and read the associative array
> tutorial:http://econym.org.uk/gmap/basic16.htmhowever, i really do not need an
> array i just need all the points to have the same marker.
>
> i used this website to create my
> markers:http://www.powerhut.co.uk/googlemaps/custom_markers.php
> and have a folder titled markers on my server.
>
> i know my mistake is simple, but i am relatively new to the google
> maps api code and would appreciate any tips. thank you,
>
> adam
>
> --
> 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
> athttp://groups.google.com/group/google-maps-api?hl=en.
--
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.