From 781593ea90a29adf3aa7f3f2ecf3207dd4c4d692 Mon Sep 17 00:00:00 2001 From: Tom Payne Date: Fri, 8 Nov 2013 03:10:07 +0100 Subject: [PATCH] Add MultiLineString to GeoJSON demo --- examples/geojson.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/examples/geojson.js b/examples/geojson.js index 9567b33ab8..5af1eb82d4 100644 --- a/examples/geojson.js +++ b/examples/geojson.js @@ -38,6 +38,18 @@ var geoJSONSource = new ol.source.GeoJSON( 'type': 'Polygon', 'coordinates': [[[-5e6, -5e6], [0, 5e6], [5e6, -5e6]]] } + }, + { + 'type': 'Feature', + 'geometry': { + 'type': 'MultiLineString', + 'coordinates': [ + [[-1e6, -7.5e5], [-1e6, 7.5e5]], + [[1e6, -7.5e5], [1e6, 7.5e5]], + [[-7.5e5, -1e6], [7.5e5, -1e6]], + [[-7.5e5, 1e6], [7.5e5, 1e6]] + ] + } } ] }