sg

Pazar, Ocak 15, 2006

Re: Center duplicates markers and adds others and distance


Duplicated markers is usually caused by having performed addOverlay()
twice on the same marker.

Initially you will have plotted two copies of the marker in the same
position, which you might not notice. If you look carefully you may see
that the shadow is darker.

The zoom code reads through the map.overlays[] array, finds the first
overlay that references the marker, recalculates the pixel position for
a marker and plots it. Then it comes across the second overlay that
references the same marker and performs the calculations again, and
plots the second copy of the marker in the wrong position.

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