Add MultiLineString to GeoJSON demo

This commit is contained in:
Tom Payne
2013-11-08 03:10:07 +01:00
parent 53963b0f6b
commit 781593ea90

View File

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