Skip to main content
added 56 characters in body
Source Link
MrXsquared
  • 36.3k
  • 22
  • 79
  • 128

You can use below codes:

function onEachFeature(feature, layer) { // does this feature have a property named popupContent? if (feature.properties && feature.properties.Name && feature.properties.Lat && feature.properties.Lon) { layer.bindPopup(feature.properties.Name+"("+feature.properties.Lat+","+feature.properties.Lon+")",); } } /// for Show in map marker style and popup L.geoJSON(geojsonFeature, { pointToLayer: function (feature, latlng) { return L.circleMarker(latlng, geojsonMarkerOptions); }, onEachFeature: onEachFeature

}).addTo(map);

function onEachFeature(feature, layer) { // does this feature have a property named popupContent? if (feature.properties && feature.properties.Name && feature.properties.Lat && feature.properties.Lon) { layer.bindPopup(feature.properties.Name+"("+feature.properties.Lat+","+feature.properties.Lon+")",); } } /// for Show in map marker style and popup L.geoJSON(geojsonFeature, { pointToLayer: function (feature, latlng) { return L.circleMarker(latlng, geojsonMarkerOptions); }, onEachFeature: onEachFeature }).addTo(map); 

You can use below codes:

function onEachFeature(feature, layer) { // does this feature have a property named popupContent? if (feature.properties && feature.properties.Name && feature.properties.Lat && feature.properties.Lon) { layer.bindPopup(feature.properties.Name+"("+feature.properties.Lat+","+feature.properties.Lon+")",); } } /// for Show in map marker style and popup L.geoJSON(geojsonFeature, { pointToLayer: function (feature, latlng) { return L.circleMarker(latlng, geojsonMarkerOptions); }, onEachFeature: onEachFeature

}).addTo(map);

You can use below codes:

function onEachFeature(feature, layer) { // does this feature have a property named popupContent? if (feature.properties && feature.properties.Name && feature.properties.Lat && feature.properties.Lon) { layer.bindPopup(feature.properties.Name+"("+feature.properties.Lat+","+feature.properties.Lon+")",); } } /// for Show in map marker style and popup L.geoJSON(geojsonFeature, { pointToLayer: function (feature, latlng) { return L.circleMarker(latlng, geojsonMarkerOptions); }, onEachFeature: onEachFeature }).addTo(map); 
Source Link

You can use below codes:

function onEachFeature(feature, layer) { // does this feature have a property named popupContent? if (feature.properties && feature.properties.Name && feature.properties.Lat && feature.properties.Lon) { layer.bindPopup(feature.properties.Name+"("+feature.properties.Lat+","+feature.properties.Lon+")",); } } /// for Show in map marker style and popup L.geoJSON(geojsonFeature, { pointToLayer: function (feature, latlng) { return L.circleMarker(latlng, geojsonMarkerOptions); }, onEachFeature: onEachFeature

}).addTo(map);