I'm trying to show and remove polygons onto a Google Map, using v3 of the API. In my JavaScript, I've already got an MVCArray of some custom Lat-Longs.  I'm trying to figure out how to add these polygons and then, based upon some other Ja...
I need to draw a polygon on my canvas but i have to make it with clicks of mouse. For exemple: click one click two tree and so... max of ten clicks and apper a line to fill all clicked points. Pure JS.  function drawPolygon(position, sides, angle) {...
I am seeking for a way that allows players to draw their own characters and later to be able to play with them in-game. To make the concept very simple lets make the drawn player just a 2d shape or a group of lines and circles or even a mix of both....
Question :   I want to remove overlaps from existing polygons with javascript.  I guess merging overlapping polygons to single polygon is the easiest way to do this but i don't know  how to do this.  I want to combine theese polygons , This is th...
I have coordinates of two polygons (P1 and P2) to create it on google maps. How cut P2 from P1 when P2 is located in P1? For example http://quality.iro38.ru/CI/question_about_map.php  This is my js:  var triangleCoords = [     new google.maps.LatLng(...
This question has already asked (see question "Google maps polygons"). But I have exactly the same problem and just wanted to encourage someone to take it on...  In short, how do you add multiple polygons to a map without a line appearing to...
I have a set of 20 (example) 2D polygons, ranging from triangles, 4-sided irregular, 5-sided to 6-sided polygons. Some of them almost perfect rectangles, some of them completely irregular shapes. All of them will have from 3 to 6 sides, maximum.    I...
I'm trying to modify a polygon when an event is triggered outside the map control and seem to be hitting a brick wall.  i have a series of divs to the right of my map and would like to change the strokeweight property on the polygon to a heavier...
I have the following code where I initialize a Polygon with an onclick listener that displays an alert:  polygon.location = location;  polygon.locationLabel = new LocationLabel(location, latLng, mapProvider.map);   google.maps.event.addListener(polyg...
I'm attempting to do some triangulation using the earcut library. I find the documentation on this library very thin, so hopefully someone has experience with the library and can help me out with this.  What I'm trying to achieve is to triang...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.