Sources
Last updated
Last updated
map.setSource(id, geoJson, cluster, maxZoom, radius)map.setSource('some id', {
"type": "FeatureCollection",
"features": [{
"type": "Feature",
"properties": {},
"geometry": {
"type": "Point",
"coordinates": [ 126.896038, 37.482901]
}
}]
},
//If you want to use the cluster
true, //cluster
15, // maxZoom to cluster
50 // radius
);