[Google Maps API v3] Re: Google Maps polygon convex or not ?

2011-07-14 Thread Rossko
Is there anyway in Google Maps  through which I can know whether the polygon created is convex ? No, but you can write code to use well-known algorithms http://www.google.com/search?q=algorithm+to+test+convex+polygon If it is a convex polygon how can I know whether a point is within the

[Google Maps API v3] Google Maps Polygon inner

2011-07-06 Thread jufemaiz:Joel Courtney
Hi guys, just wondering if anyone can shed some light on how the inner of a polygon on a spherical surface (eg: a map of the world) is selected. Is it the smaller area or ? If it's the smaller area, how is this determined? Reason I would like to know is to flesh out the polygon.contains(point)

Re: [Google Maps API v3] Google Maps Polygon inner

2011-07-06 Thread Ben Appleton
Hi Joel, I don't know what you refer to by polygon.contains(point). Can you clarify? If you refer to rendering a polygon's fill, and detecting when mouse/touch events hit the interior of a polygon, we use the following 2 rules: 1. Sequential vertices in a polyline or polygon path are

Re: Google Maps polygon

2008-12-05 Thread mapperzUK
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,

Google Maps polygon

2008-12-04 Thread Martijn van der Plaat
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

Re: Google Maps polygon

2008-12-04 Thread [EMAIL PROTECTED]
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

Re: Google Maps polygon

2008-12-04 Thread Martijn van der Plaat
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