I have a map displaying data through a geoJson feed - e.g. http://catchingtherain.com/iwm/index.php#lat=51.56981465604131&lng=-1.7135238647460938&zoom=12
The feed is based on a bbox but limited server-side to 200 results (I have complete control over the geoJson as it's just a simple php script that transforms a solr response)
I want to display a message on a leaflet map when there are more than 200 results available e.g. "Displaying 200 of 437 results. Please zoom in to see the full results". I can provide these counts to Leaflet through some top-level metadata in the geoJson response, such as
{
type: "FeatureCollection",
metadata: {
count: 200,
totalCount: 427
},
features: [ ...
My question is, how can I extract those two values in my Leaflet code, somewhere near
iwmMemorials = L.geoJson(null, {
pointToLayer: function (feature, latlng) {
...