Tag Info

New answers tagged

2

What is written above will loop through each element in each JSON object. Those are JSON objects so you want to treat them as the objects geometry and properties then simply reference them with dot notation. $.each(data.features, function (key, val) { geometry = val.geometry; properties = val.properties; alert (properties.place); }


0

You can use the parametric view function in Geoserver to handle the values from your slider to pass them into the SQL that defines your layer. http://docs.geoserver.org/stable/en/user/data/database/sqlview.html This of course means that you need to have access to the Geoserver in order to modify the service accordingly - but if you have that, then this is ...


0

Using e.popup.setContent("content"); Works for me, using Leaflet 0.7.3. Note that setContent() was added sometime in Leaflet 0.7.



Top 50 recent answers are included