CreateLayersFromGeoJsonParams
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
const layer = await layersController.createLayersFromGeoJson({
name: "My Layer",
geometryStyles: {
Point: {
paint: { color: "red", size: 8 },
},
Line: {
paint: { color: "blue", size: 4 },
config: { labelAttribute: ["name"] },
label: { minZoom: 0 },
},
Polygon: {
paint: { color: "green", strokeColor: "darkgreen" },
},
},
});