On Nov 15, 2:34 pm, unxcolin2 <[EMAIL PROTECTED]> wrote:
> Hi guys,
>
> I'm having problem getting this to show my custom marker. It was
> working until I saved over is : ( and tried to recreate it again... it
> is working, until I define the marker as the custom marker... I'm sure
> I'm missing something obvious here... any pointers would be really
> appreciated. (The image url's are definately correct). Thanks.
>
> google.load("maps", "2.x");
>
> function initialize() {
>     var map = new google.maps.Map2(document.getElementById("map"));
>     map.setCenter(new google.maps.LatLng(37.4419, -122.1419), 13);
>
>     var heart_icon = new GIcon();
>     heart_icon.image = "http://www.site.org/images/marker_heart.png";;
>     heart_icon.iconSize = new GSize(32, 32);
>     heart_icon.shadow = "http://www.site.org/images/no_shadow.png";;
>
> markerOptions = { icon:heart_icon };
> var point = new GLatLng(37.4419, -122.1419);
> var nana_mambere = new GMarker(point)
> GEvent.addListener(nana_mambere, "click", function() {
> nana_mambere.openInfoWindowHtml('<div class="map_window"><h3>title...</
> h3></div>');
>
> });
>
> map.addOverlay(nana_mambere);
>
> }
>
> google.setOnLoadCallback(initialize);

If you want to open an infoWindow on a custom icon, you need to define
the infoWindowAnchor property.

If that doesn't help, follow the posting guidelines and post a link to
a map that exhibits the problem:
http://groups.google.com/group/Google-Maps-API/web/suggested-posting-guidelines

  -- Larry
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to