Sistemas de Información Geográfica

Preguntas y respuestas para cartógrafos, geógrafos y profesionales de SIG.








1
¿Cómo agregar una atribución en una capa GeoJSON desde el folleto?
Necesito usar una capa GeoJSON en mi mapa de folleto. Aquí hay una muestra de mi código: function onEachFeature(feature, layer) { if (feature.properties && feature.properties.popupContent) { layer.bindPopup(feature.properties.popupContent); } } myGeoJsonLayer = L.geoJson(data, { pointToLayer: function (feature, latlng) { return L.circleMarker(latlng, geojsonMarkerOptions); }, onEachFeature: onEachFeature }); myGeoJsonLayer.addTo(map); TOC.addOverlay(myGeoJsonLayer, "My GeoJSON Layer"); …








Al usar nuestro sitio, usted reconoce que ha leído y comprende nuestra Política de Cookies y Política de Privacidad.
Licensed under cc by-sa 3.0 with attribution required.