Hi, 

I have 8 markers, and I added 1 extra called targetIcon.

When I click the markers they open their infowindows.

I want an external link that will open the infowindow for the targetIcon.

I tried this, but it doesn¹t work, what am I doing wrong?


<a href="javascript:myclick();">show Targer</a>
...
var targetIcon = new GIcon(); targetIcon.iconSize = new GSize(43, 10);
targetIcon.iconAnchor = new GPoint(21,5); targetIcon.infoWindowAnchor = new
GPoint(9,5); var targetIcon = new GIcon(targetIcon); targetIcon.image =
"images/maps/targetIcon.png"; var marker = new GMarker(center, targetIcon);
markerOptions = { icon:targetIcon }; map.addOverlay(new GMarker(center,
markerOptions)); 
marker.openInfoWindowHtml("This is the TARGET");

-- 
You received this message because you are subscribed to the Google Groups 
"Google AJAX APIs" 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-ajax-search-api?hl=en.

Reply via email to