http://econym.googlepages.com/example_egeotestmon.htm

(using egeoxml.js)
http://econym.googlepages.com/egeoxml.htm

Mapperz
http://mapperz.blogspot.com/




On Dec 5, 7:39 am, Martijn van der Plaat <[EMAIL PROTECTED]>
wrote:
> Hi,
>
> I changed to false so my script is synchroon  : request.open("GET",
> "states2.xml", false);
> The next problem is that In firefox the polygons won't show up. see my
> page:http://profec.nl/profec/gmaps/index1.php
> In IE everything still works fine! How strange is that!
>
> Can anybody help?
>
> Greets Martijn.
>
> On 4 dec, 21:18, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
>
> > On Dec 4, 10:30 am, Martijn van der Plaat <[EMAIL PROTECTED]>
> > wrote:
>
> > > Hi experts,
>
> > > I try to directly check in a map of a certain point is in a polygon.
> > > see:http://profec.nl/profec/gmaps/index1.php
>
> > > first lookup my code.
>
> > > The problem is that, as you can see in the first popup, javascript
> > > thinks polys.length() is 0, but in reality polys.length() is 2, as you
> > > can see in the second popup. What i think is that the code goes faster
> > > then xml can load. Strange enough the script works in IE.
> > > Maybe the problem is solved when i pre-load the polygons before i do a
> > > poly.length() function? Please look in my code to better understand my
> > > problem.
> > > My intention is an applicatie with:
>
> > > 1. longitude+latitude as input from a GPS device
> > > 2. the input is checked against several polygons on a map
> > > 3. the output is a unique id that belongs to the found polygon.
> > > 4. I use the id in my further program because the id is identical to
> > > an id in a database
>
> > > so i only use the whole map as a check function to know in which
> > > polygon my GPS exists.
>
> > > Maybe another solution is not using the google map at all, and just
> > > lookup if my current gps coordinate is in a specific list of polygons,
> > > using point-in-polygon algoritmehttp://alienryderflex.com/polygon/
> > > But i thought because the google map can tell me directly in which
> > > polygon the point is i dont have to walk through the whole list of
> > > existing polygons, and thereby the google map solution is faster. But
> > > at the moment i realy doubt this!
>
> > Part 2 Asynchronous I/Ohttp://econym.org.uk/gmap/async.htm
>
>
--~--~---------~--~----~------------~-------~--~----~
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