i'm newbie in GIS. i'm trying to make webgis using leaflet. i already make layer with icon in leaflet.
/*layer*/
var layer = new L.GeoJSON.AJAX("GIS/layer/request_layer.php", {
middleware:function(data){
return L.geoJson(data, {
onEachFeature: function(feature, layer){
layer.bindPopup("<center>" + feature.properties.id + "<center>"),
layer.setIcon(icon);
}
}).addTo(map);
}
});
/*icon layer*/
var icon = L.icon({
iconUrl : 'GIS/leaflet/images/icon.png',
iconSize : [15,15],
popupAnchor : [0, -28]
});
how to add buffer in this layer ?