From ee91a9905643ea5ae0af739fcd263725033972b5 Mon Sep 17 00:00:00 2001 From: Tom Payne Date: Thu, 16 Jan 2014 19:19:42 +0100 Subject: [PATCH] Add GPX files to drag-and-drop example --- examples/drag-and-drop.html | 4 ++-- examples/drag-and-drop.js | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/drag-and-drop.html b/examples/drag-and-drop.html index 7a87401793..21d8341818 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 KML files on to the map.

+

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

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

-
drag-and-drop, kml
+
drag-and-drop, gpx, kml
diff --git a/examples/drag-and-drop.js b/examples/drag-and-drop.js index ee60be23bd..7044578401 100644 --- a/examples/drag-and-drop.js +++ b/examples/drag-and-drop.js @@ -1,6 +1,7 @@ goog.require('ol.Map'); goog.require('ol.RendererHint'); goog.require('ol.View2D'); +goog.require('ol.format.GPX'); goog.require('ol.format.KML'); goog.require('ol.interaction'); goog.require('ol.interaction.DragAndDrop'); @@ -82,6 +83,7 @@ var map = new ol.Map({ interactions: ol.interaction.defaults().extend([ new ol.interaction.DragAndDrop({ formatConstructors: [ + ol.format.GPX, ol.format.KML ], styleFunction: styleFunction