sg

Cuma, Ocak 20, 2006

Re: Why won't IE show my markers?


This line of your xml is causing the error in the API:
<marker lat="" lng="" html="&lt;img
src='http://www.kitebeaches.com/kitebeaches/pics/thumbs/0_1525_1106764175.jpg'&gt;

&lt;br&gt;&lt;a
href='http://www.kitebeaches.com/kitebeaches/viewspot.php?id=830'&gt;Opal
Beach &lt;/a&gt;" label="830" />

The parseFloat()
var lat = parseFloat(markers[i].getAttribute("lat"));
returns NaN. The GPoint created from GPoint(NaN, NaN) is bad and the
API code stops processing the markers. I'm not sure why I don't get an
error in Opera or Firefox, but this only seems to cause a problem in
IE. The page below (with a test to avoid processing these points)
works:
http://www.geocodezip.com/kitebeaches_testmapA.asp

You have 2 "invalid" points out of the 620 in the xml file. (620
markers is a lot to display, you may want to want to use Jeff's
clusterer or a database to reduce the number displayed on the map)

-- Larry

0 Comments:

Yorum Gönder

<< Home


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