sg

Pazar, Aralık 04, 2005

Re: placing multiple points


Wasn't it jjrdk who wrote:
>
>Immediately under your present script just add:
>var point2 = new GPoint(-4.545239210128784, 50.83020787595885);
>var marker2 = new GMarker(point2);
>var html2 = "Some other text";
>GEvent.addListener(marker, "click", function() {
> marker.openInfoWindowHtml(html2);
> });
>map.addOverlay(marker2);

There's a little typo there. Use "marker2" not "marker" in these two
lines.

GEvent.addListener(marker2, "click", function() {
marker2.openInfoWindowHtml(html2);

If you're going to want several markers, it's probably easier to have a
little createMarker() function that does all the repetitive stuff. See

http://www.econym.demon.co.uk/googlemaps/basic1.htm

--
The Blackpool Community Church Javascript Team
http://www.econym.demon.co.uk/googlemaps/

0 Comments:

Yorum Gönder

<< Home


Komik Videolar   islam  şarkı sözleri  yemek tarifleri  gelibolu  huzur   sağlık