{
“type”: “Feature”,
“geometry”: {
“type”: “Point”,
“coordinates”: properties.route
}
}
map.addLayer({
‘id’: id,
‘type’: ‘circle’,
‘source’: {
‘type’: ‘geojson’,
‘data’: {
‘type’: geoJSON[“type”],
‘geometry’: geoJSON[“geometry”],
}
},
‘paint’: {
‘circle-radius’: 20,
‘circle-color’: ‘white’,
‘circle-stroke-color’: ‘#3887be’,
‘circle-stroke-width’: 3
}
});
The above is my code for plotting the route as series of points. But I can’t see anything in map. Please help me to do this.