Add GeoJSON to drag-and-drop example
This commit is contained in:
@@ -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
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user