Read GPX file from desktop in Openlayers 3

المشرف العام

Administrator
طاقم الإدارة
I'm aware that Openlayers 3 has the ability to read and parse gpx files using the drag/drop event and I've incorporated this functionality into my map. What I'd also like to do is give the user the ability to 'upload' the file in a more conventional way by browsing through their filesystem.

I've hooked up the basic functionality and the resulting file can be output to a div as text but how do I get the final step of instructing Openlayers to read this information and subsequently display it on a map?

There seems to be very little information regarding this and reading the ol-debug.js file hasn't shed any light. Can anyone give me any pointers please?



أكثر...
 
أعلى