Yesterday I was looking to check if a point was inside a polygon and found this great script: https://github.com/tparkin/Google-Maps-Point-in-Polygon  But today at work I was told that our client needs to check if one polygon is inside another polygo...
I'm trying to implement a polygon self intersection algorithm from Google Maps API V3 polygons. The goal is just to detect if yes or no, a simple polygon drawn by the user is self crossing.  I have found this very interesting link, but it assumes...
I am looking for a javascript library that supports the ability to pass a zipcode or city as a parameter, and get a list of x,y coordinates to draw a polygon using google maps?  Does this exist? Does the google maps API support such queries? I am loo...
I have used the code in the following : http://www.amphibian.com/blogstuff/collision.html. in the html test file I have changed the the first triangle to   triangle1.addPoint({"x":-20, "y":-20}); triangle1.addPoint({"x":-20, &...
I am trying to create multiple polygons for a restaurant based on their delivery charges out of data I have here https://jsoneditoronline.org/?id=7a7287f99c0964ffd6125b4bb48a2e50  Here is what I already have https://codepen.io/mani619cash/pen/mpaqQq?...
I have map. On the top of map layer have a polygon A and circle B. They are intersected each others. Any algorithm can calculate the area of intersection C ?...
I am trying to find an algorithm of how to draw a simple (no lines are allowed to intersect), irregular polygon.  The number of sides should be defined by the user, n>3.  Here is an intial code which only draws a complex polygon (lines intersect):...
Recently I've been thinking about how to transform a complex polygon into a non-complex polygon.  How is this done?  This is the sort of thing I want to do:    I'm going to end up with JavaScript when I'm done, but any form of a solution...
I have a database with KML Plolygons representing german postal regions.  I initialize the map like this to get the polygons displayed.  var map = new google.maps.Map(document.getElementById("map"), mapOptions);  var plzLayer = new google.map...
I am creating a vector layer comprised of polygons from a KML file using Openlayers and I need to apply a "hash" pattern (diagonal striping) to the polygons.  I know Openlayers doesn't natively support adding a background image to a polyg...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.