I have a web map, and I'm hoping to make it interactive.
The layer I have is reasonably large, at 15 mb in GeoJSON format 4 mb compressed, so I don't want to load the whole layer as one file. But, I do want to be able to interrogate each feature for around 6 attributes and the geometry.
What I have is:
- Leaflet 0.5
- GeoServer 2.2
- Access to the server and data, happy to customise the data.
What I want is:
- user can click on a map, and is returned a nice dialog box with feature information in a table
- the map centers on the feature, possibly zooms, and highlights the feature.
I'm pretty sure this can be achieved using a GeoJSON request (like the example here), but I can't find examples of this anywhere and I'm struggling to implement it myself.
Does someone have a nice example of this?