I'm using openlayers 2.12 and I'm wondering how could upload shp, kml, csv, gml into the browser, just as a temporary layer wich user could see it.
Is there any library or way to do it?
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It only takes a minute to sign up.Sign up to join this community
You could use the FileAPI: http://www.w3.org/TR/FileAPI/
Here is one example: http://renevier.net/misc/mapfileapi.html
If you need a kml file to test: http://dev.openlayers.org/releases/OpenLayers-2.13.1/examples/kml/sundials.kml
And here the browsers that support the fileapi: http://caniuse.com/#feat=fileapi
The same as jsfiddle for own tests: