Hi Dojo,
We have a question related to GeoJSON overlay in maps (OpenStreetMaps). We have the following information in a table (in a element):
|Node Name|Coverage Area (GeoJSON object)|
|-------------|------------------------|
|Node 1|{"features":["type":"Feature","geometry":{"type":"MultiPolygon","coordinates":[...]}]}|
|Node 2|{"features":["type":"Feature","geometry":{"type":"MultiPolygon","coordinates":[...]}]}|
...
|Node 500|{"features":["type":"Feature","geometry":{"type":"MultiPolygon","coordinates":[...]}]}|
In order to display these overlays on a map, we found the following options so far:
- We import each GeoJSON object to files (e.g. node_1.json, node_2.json, ..., node_500.json) and place them in C:\Skyline DataMiner\Webpages\Maps. Then, we create an overlay per GeoJSON file. Based on this, we will have a layer per row.
- We create a JSON array containing all the GeoJSON objects so all the polygons are available in a single GeoJSON file. The drawback of this approach is that all the polygons will be displayed in the overlay.
Please could you let us know if there is another way to display these GeoJSON overlays?
Is it possible to read the GeoJSON object directly from a table (similar to the geographical coordinates)?
Hi Miguel,
According to this page in the documentation you can also load GeoJSON objects from HTTP and HTTPS sources, in addition to files. Maybe you could use a user defined API to load the data from the table and return it as JSON.