I want to display markers from a REST data set in a Mapwidget with a geoJSON point as spatial attribute such as :
"location": {
"type": "Point",
"coordinates": [7.201978,43.683595]
}
I configured Coordinates Type as 'JSON', and Coordinates format to 'lon lat'
But it doesn't work, no markers are displayed on the map, can someone help with an example of a working spatial attribute in geoJSON content ?
do I need to encapsulate in an array of "features", or in a "geometry" such as :
"location":{
"geometry" :{
"type": "Point",
"coordinates": [7.201978,43.683595]
}
}
Thanks in advance for a working exemple, if geoJSON works,
Or for an alternative solution to convert my geoJSON attribute in a string attribute "<lon> <lat>", at data set level, through a json path expression ?