Add polygon to GeoJSON demo

This commit is contained in:
Tom Payne
2013-11-07 19:47:53 +01:00
parent e14c46946e
commit b83a547192

View File

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