On Sep 11, 1:48 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> On Sep 11, 1:32 pm, Esa <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > On 11 syys, 19:19, csdude <[EMAIL PROTECTED]> wrote:
>
> > > // draw circle with epicenter mapcenter, 50km radius, 360
> > > segments
> > > map.drawCircle(map.getCenter(), 50, 1);
> > > }
>
> > The third parameter is the number of segments. You want 360 but you
> > put in 1.
>
> > Leave it away and you get a circle with default 36 segments which is
> > usually perfect enough.
>
> > By the way there is a seismic map using that circle function (radius
> > in kilometers).http://esa.ilmari.googlepages.com/earthquakes.htm
>
> > You can see the distortion in circle shape caused by Mercator
> > projection. It is noticeable with radius of hundreads of kilometers
> > and far from equator.
>
> Not it IE6... It give an object expected error and doesn't load any
> earthquakes.
> geoLatElement.firstChild.nodeValue can be replaced by
> GXml.value(geoLatElement) to make it past that error, then it runs
> into a "Number expected" error somewhere in the API.
Oops, it is a Microsoft deficiency. IE6 doesn't do namespaces, to get
the latitude and longitude you have to do this:
geoLatElement = items[i].getElementsByTagName("geo:lat")[0];
while in a reasonable browser, this works:
geoLatElement = items[i].getElementsByTagName("lat")[0];
-- Larry
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---