From b83a547192669001e9c955d1ef74add42410af77 Mon Sep 17 00:00:00 2001 From: Tom Payne Date: Thu, 7 Nov 2013 19:47:53 +0100 Subject: [PATCH] Add polygon to GeoJSON demo --- examples/geojson.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/examples/geojson.js b/examples/geojson.js index 7e4cc090a5..9567b33ab8 100644 --- a/examples/geojson.js +++ b/examples/geojson.js @@ -31,6 +31,13 @@ var geoJSONSource = new ol.source.GeoJSON( 'type': 'LineString', 'coordinates': [[-1e7, 1e7], [1e7, -1e7]] } + }, + { + 'type': 'Feature', + 'geometry': { + 'type': 'Polygon', + 'coordinates': [[[-5e6, -5e6], [0, 5e6], [5e6, -5e6]]] + } } ] }