gpolygon

Drawing resizable (not intersecting) polygons

此生再无相见时 提交于 2020-01-01 06:06:08
问题 I have been searching everywhere but I could not find an answer. I need to have drawing resizable polygons with mouse interaction but I do not want irregular, overlapping or intersecting polygons in the end. Here is a simple example of drawing resizable polygons http://www.wolfpil.de/polygon.html You can easily create & resize polygons which is great. But I need an extra functionality to detect intersections and NOT allowing weird looking shapes/polygons. You can see the problem in this video

Drawing resizable (not intersecting) polygons

百般思念 提交于 2019-12-03 16:32:46
I have been searching everywhere but I could not find an answer. I need to have drawing resizable polygons with mouse interaction but I do not want irregular, overlapping or intersecting polygons in the end. Here is a simple example of drawing resizable polygons http://www.wolfpil.de/polygon.html You can easily create & resize polygons which is great. But I need an extra functionality to detect intersections and NOT allowing weird looking shapes/polygons. You can see the problem in this video: http://www.youtube.com/watch?v=zou2jcGM8zw The only solution for that problem I found at http://www

How do I get Google Maps to show a whole polygon?

我怕爱的太早我们不能终老 提交于 2019-11-29 02:10:55
问题 I have a set of GPolygon objects which are attached to objects in my domain model and are added to a map on my page. The domain objects are being shown in a list on the same page and when the user clicks on one of them I want to show the associated polygon. I want the whole polygon to be showing and ideally I want the map to be centred on the polygon centre. I was hoping that there would be a maps API call along the lines of... myMap.makeSureYouCanSeeAllThisPolygon(aPolygon); but I haven't