I am using geojson-vt for genreating polygon on leaflet map.polygon which is genreated is having some color...here i want to give different color to polygon border ...below is my geojson
{
"type": "FeatureCollection",
"features": [
{
"geometry": {
"coordinates": [
[
[
74.276821428571402,
20.089249999999982
],
[
74.267821428571402,
20.089249999999982
],
[
74.267821428571402,
20.098249999999982
],
[
74.276821428571402,
20.098249999999982
],
[
74.276821428571402,
20.089249999999982
]
]
],
"type": "Polygon"
},
"type": "Feature",
"properties": {
"description": "This is crop value",
"color":"#ffb6c1",
"pixel": {
"latitude": 20.093749999999982,
"vci": 2,
"longitude": 74.272321428571402
}
}
}
what changes should i do to genreate polygon with different border color.
am using leaflet to display polygon and geojson vt for drawing the polygon
tileIndex = geojsonvt(data, tileOptions);
tileLayer = L.canvasTiles()
.params({ debug: false, padding: 5 })
.drawing(drawingOnCanvas)
var pad = 0;
tileLayer.addTo(leafletMap);