Skip to main content

Timeline for Draw polygons from an array in OL3

Current License: CC BY-SA 3.0

6 events
when toggle format what by license comment
Apr 16, 2015 at 3:16 vote accept Dean
Apr 10, 2015 at 13:44 comment added Dean I figured it out!
Apr 9, 2015 at 13:34 comment added Dean Short answer…. Yes. Long answer… I have a table with rows like so: Area 1 lot1 95.61,38.60 95.22,37.98 95.60,37.66 94.97,37.65 Area 1 lot2 95.63,38.65 95.27,37.98 94.60,39.66 92.97,37.64 Area 2 lot 3 95.64,38.63 95.24,37.95 95.66,37.62 94.94,37.61 The first column has a checkbox. As I select a checkbox, I want to draw a polygon using the coordinates from each row.
Apr 9, 2015 at 9:18 comment added oterral What is inside this variable polygon ? polygon = "95.61,38.60 95.22,37.98 95.60,37.66 94.97,37.65" ?
Apr 8, 2015 at 20:50 comment added Dean I should have been more specific. The coordinates are being pushed in an array from a table like so: if ($this.is('checked')){ tableData.push(polygon); "polygon" holding the array of coordinates.
Apr 8, 2015 at 7:32 history answered oterral CC BY-SA 3.0