I have started exploring the OpenLayers 3 library.

I have seen the examples but i am not able to find the way for import shapefile and load it on OpenLayers's map control.

I want give option for importing shapefile and render on the map control. something similar to browse the shapefile from client side and load it.


check this demo. It seems to be what you look for.

If you like it download it form here

Have also a look at this question

  • I have tired it but its not fulfilling my requirements. i want to load the shape file without converting it to GeoJson format. Jan 19 '16 at 4:25
  • So what do you want to do with the shapefile????? Just load it. Dont you want to plot it on your map?????
    – pavlos
    Jan 19 '16 at 9:52
  • yes i just want to load my shape file and then based on the live data i want to create the new shape file layer. Jan 19 '16 at 9:53
  • There is no such "shape file layer" in ol3. Either you convert it in geojson,gml, kml ....etc and plot it on your map(no action on server, just on client). Or you upload it on the server --> create a layer in geoserver ---> plot it as wms/wfs layer (too much processing on server)
    – pavlos
    Jan 19 '16 at 9:56
  • Can you help me on this "gis.stackexchange.com/questions/177226/…" Jan 19 '16 at 10:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.