Hi,
i would like to add a simple control to upload a new local geojson file, add a new layer for it and display its content on the map.
I saw how to parse json content, i know how to add layer, how to automaticly load a geojson file and show it, BUT
i don't know how to let the user doing this by his own !
i mean:
- selecting a new json file on his computer and give a name for the new layer
- creating a temporary layer to include the geojson feature (from the file)
- showing the content of this file on the leaflet map
i assume that after reloading the page, the layer is not there anymore (it's ok for me!)
I wouldn't like to use jquery for that, a simple ajax call must be nough ?..please :)
thanks for your answer,bye