I'm using leaflet-pip to return overlays polygon in a clicked point. Results seems to be good, but I have an array with [object Object]
. How can I display the name or specific properties of matched features ?
For example
var myLayer = L.geoJson(myData,{
}).addTo(map);
var match = leafletPip.pointInLayer([-0.993005, 49.069792], myLayer, false);
alert(match);
Data
var myData =
{"type": 'FeatureCollection", "features": [
{ "type": "Feature", "properties": { "name": "01", "type": "type01" ...
{ "type": "Feature", "properties": { "name": "02", "type": "type02" ...
]}