Add GPX files to drag-and-drop example

This commit is contained in:
Tom Payne
2014-01-16 19:19:42 +01:00
parent 729be27662
commit ee91a99056
2 changed files with 4 additions and 2 deletions

View File

@@ -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