On Apr 27, 12:00 pm, Sebastian <[email protected]> wrote:
> 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>
> ...

Please follow the posting guidelines (or at least make your code
readable...)

http://groups.google.com/group/google-maps-api/web/suggested-posting-guidelines
http://groups.google.com/group/Google-Maps-API/web/why-including-a-link-is-critical

> var targetIcon = new GIcon();
> targetIcon.iconSize = new GSize(43, 10);
> targetIcon.iconAnchor = new GPoint(21,5);
> targetIcon.infoWindowAnchor = new GPoint(9,5);

What is this supposed to do?

> 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");

Where is "myclick" defined.

Have you seen Mike Williams' tutorial?

http://econym.org.uk/gmap/

  -- Larry

>
> --
> You received this message because you are subscribed to the Google
> Groups "Google AJAX APIs" group.
> To post to this group, send email to google-ajax-search-
> [email protected].
> To unsubscribe from this group, send email to google-ajax-search-api
> [email protected].
> For more options, visit this group 
> athttp://groups.google.com/group/google-ajax-search-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 
> 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.

Reply via email to