Add TopoJSON to drag-and-drop-example

This commit is contained in:
Tom Payne
2014-01-16 19:33:01 +01:00
parent 6c3c8332d9
commit c2c8a9ed18
2 changed files with 5 additions and 3 deletions

View File

@@ -31,11 +31,11 @@
<div class="span4">
<h4 id="title">Drag-and-Drop example</h4>
<p id="shortdesc">Example of using the drag-and-drop interaction. Drag and drop GPX, GeoJSON, IGC, or KML files on to the map.</p>
<p id="shortdesc">Example of using the drag-and-drop interaction. Drag and drop GPX, GeoJSON, IGC, KML, or TopoJSON files on to the map.</p>
<div id="docs">
<p>See the <a href="drag-and-drop.js" target="_blank">drag-and-drop.js source</a> to see how this is done.</p>
</div>
<div id="tags">drag-and-drop, gpx, geojson, igc, kml</div>
<div id="tags">drag-and-drop, gpx, geojson, igc, kml, topojson</div>
</div>
<div class="span4 offset4">
<div id="info" class="alert alert-success">

View File

@@ -5,6 +5,7 @@ goog.require('ol.format.GPX');
goog.require('ol.format.GeoJSON');
goog.require('ol.format.IGC');
goog.require('ol.format.KML');
goog.require('ol.format.TopoJSON');
goog.require('ol.interaction');
goog.require('ol.interaction.DragAndDrop');
goog.require('ol.layer.Tile');
@@ -88,7 +89,8 @@ var map = new ol.Map({
ol.format.GPX,
ol.format.GeoJSON,
ol.format.IGC,
ol.format.KML
ol.format.KML,
ol.format.TopoJSON
],
styleFunction: styleFunction
})