Web mapping application with select/unselect features and receiving names of selected

المشرف العام

Administrator
طاقم الإدارة
I am creating web application that need to have the following functionality:

  • display polygonal features on the map (about 20-50 Mb if GeoJSON)
  • on click on feature - select them and view names selected features
  • on click on selected feature - unselect this feature and receive names only selected features
For store spatial data I select GeoJSON file - everything works fine: example http://spatialhast.github.io/leaflet.select/geojson/ (source code https://github.com/spatialhast/leaflet.select)But if I connect large data (more 15 Mb GeoJSON file) browser freeze.

Main requirements for created web application - don't use PostgreSQL/GeoServer, possible hosted on GitHub repository gh-pages (data store as file (GeoJSON) or in cache (Vector/Raster Tiles))

I try GeoJSON Tiles http://spatialhast.github.io/leaflet.select/geojson.tiles/, but unsuccessful for me create deselect of selected features and receive names of selected features on map.

I find example http://spatialserver.github.io/Leaflet.MapboxVectorTile/examples/basic.html with using Mapbox Vector Tiles (there is select/deselect functionality), but I don't can receive name of selected features. It is possible?Maybe there's another way to make this web application (for example CartoDB http://spatialhast.github.io/leaflet.select/cartodb/ - but there is need add unselect functionality)?



أكثر...
 
أعلى