Skip to main content
added 370 characters in body
Source Link
Dean
  • 567
  • 2
  • 9
  • 21

I have an query that produces an array of coordinates like so: 95.61,38.60 95.22,37.98 95.60,37.66 94.97,37.65 (long/lat separated by "," and coordinates separated by a space).

How can I use these arrays to dynamically draw polygons on my map?

How can IdeasIdeas?

edit 1

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.

I have an query that produces an array of coordinates like so: 95.61,38.60 95.22,37.98 95.60,37.66 94.97,37.65 (long/lat separated by "," and coordinates separated by a space).

How can I use these arrays to dynamically draw polygons on my map?

How can Ideas?

I have an query that produces an array of coordinates like so: 95.61,38.60 95.22,37.98 95.60,37.66 94.97,37.65 (long/lat separated by "," and coordinates separated by a space).

How can I use these arrays to dynamically draw polygons on my map?

Ideas?

edit 1

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.

deleted 28 characters in body; edited tags; edited title
Source Link
Dean
  • 567
  • 2
  • 9
  • 21

Draw polygons from coordinatesan array in a tableOL3

I have a table with bboxan query that produces an array of coordinates in one column on several rows.like so: I need to95.61,38.60 95.22,37.98 95.60,37.66 94.97,37.65 (long/lat separated by "," and coordinates separated by a space).

How can I use these coordinatesarrays to dynamically draw polygons representing the bboxes on my openlayers 3 map. I want to do this by selecting them with a checkbox. "checked" being the changed event that creates the draw function.?

IdeasHow can Ideas?

Draw polygons from coordinates in a table

I have a table with bbox coordinates in one column on several rows. I need to use these coordinates to draw polygons representing the bboxes on my openlayers 3 map. I want to do this by selecting them with a checkbox. "checked" being the changed event that creates the draw function.

Ideas?

Draw polygons from an array in OL3

I have an query that produces an array of coordinates like so: 95.61,38.60 95.22,37.98 95.60,37.66 94.97,37.65 (long/lat separated by "," and coordinates separated by a space).

How can I use these arrays to dynamically draw polygons on my map?

How can Ideas?

Source Link
Dean
  • 567
  • 2
  • 9
  • 21

Draw polygons from coordinates in a table

I have a table with bbox coordinates in one column on several rows. I need to use these coordinates to draw polygons representing the bboxes on my openlayers 3 map. I want to do this by selecting them with a checkbox. "checked" being the changed event that creates the draw function.

Ideas?