Class: DropFile

ol.interaction. DropFile


new DropFile(flashlight)

Extend DragAndDrop choose drop zone + fires loadstart, loadend

Parameters:
Name Type Description
flashlight ol.dropfile.options

options param - zone {string} selector for the drop zone, default document - projection {ol.projection} default projection of the map - formatConstructors {Array<function(new:ol.format.Feature)>|undefined} Format constructors, default [ ol.format.GPX, ol.format.GeoJSON, ol.format.IGC, ol.format.KML, ol.format.TopoJSON ] - accept {Array|undefined} list of eccepted format, default ["gpx","json","geojson","igc","kml","topojson"]

Fires:
  • loadstart, loadend,event: addfeatures

Extends

  • ol.interaction.DragAndDrop

Methods


ondrop()

Do something when over


onstop()

Do somthing when over


setMap()

Set the map