Skip to main content
13 events
when toggle format what by license comment
Oct 22 at 11:11 vote accept dvaa
Oct 22 at 8:52 answer added TomazicM timeline score: 1
Oct 22 at 1:14 comment added dvaa I have already edit my question. Hope you got my expectation result
Oct 22 at 1:13 history edited dvaa CC BY-SA 4.0
added 142 characters in body
Oct 21 at 20:56 review Close votes
Oct 22 at 17:16
Oct 21 at 20:38 comment added TomazicM Each time you click on map, your code creates new polygon from all existing points and places it above previously created polygons. What would you actually like to happen? With each click just to add point to previously created polygon? Please edit your question and clarify this.
Oct 21 at 16:16 history edited TomazicM CC BY-SA 4.0
edited title
Oct 21 at 15:28 comment added Maximilien jaffrès the list in the end may be right, but when you are clicking and drawing the polygon it produces the other polygon
Oct 21 at 15:23 history edited Vince CC BY-SA 4.0
title case; removed helpme
Oct 21 at 14:58 comment added dvaa console.log result seems ok. Array(4) [ (2) […], (2) […], (2) […], (2) […] ] 0: Array [ 6.055501318209942, 101.51663221974532 ] 1: Array [ 2.63945830109756, 103.49472404371227 ] 2: Array [ 4.261807178832384, 109.42899951561314 ] 3: Array [ 7.582073029875818, 107.53882288382249 ] length: 4 Coordinates has right. Maybe you have suggestions?
Oct 21 at 14:43 comment added Maximilien jaffrès it feels like you are drawing a polygon with your point list after each click event on the map. So with 4 clicks , you have a point then a line, then a triangle and then a 4 point polygon. You need to be carefull with how your code work and check the content of each object when you trigger an event. with some console.log here you should be able to get what happen
S Oct 21 at 13:43 review First questions
Oct 21 at 13:48
S Oct 21 at 13:43 history asked dvaa CC BY-SA 4.0