diff --git a/examples/drag-and-drop.html b/examples/drag-and-drop.html index fc3e5b1490..95769bd8db 100644 --- a/examples/drag-and-drop.html +++ b/examples/drag-and-drop.html @@ -31,11 +31,11 @@

Drag-and-Drop example

-

Example of using the drag-and-drop interaction. Drag and drop GPX, IGC, or KML files on to the map.

+

Example of using the drag-and-drop interaction. Drag and drop GPX, GeoJSON, IGC, or KML files on to the map.

See the drag-and-drop.js source to see how this is done.

-
drag-and-drop, gpx, igc, kml
+
drag-and-drop, gpx, geojson, igc, kml
diff --git a/examples/drag-and-drop.js b/examples/drag-and-drop.js index 6170bbb29d..bd28f16b84 100644 --- a/examples/drag-and-drop.js +++ b/examples/drag-and-drop.js @@ -2,6 +2,7 @@ goog.require('ol.Map'); goog.require('ol.RendererHint'); goog.require('ol.View2D'); goog.require('ol.format.GPX'); +goog.require('ol.format.GeoJSON'); goog.require('ol.format.IGC'); goog.require('ol.format.KML'); goog.require('ol.interaction'); @@ -85,6 +86,7 @@ var map = new ol.Map({ new ol.interaction.DragAndDrop({ formatConstructors: [ ol.format.GPX, + ol.format.GeoJSON, ol.format.IGC, ol.format.KML ],