0
一個幾何特性在OL3,有以GeoJSON與性能的一個叫geometry
失敗:以GeoJSON隨着OL3
var geojsonObject = {
"type": "FeatureCollection",
"features": [{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [102.0, 0.5]
},
"properties": {
"prop0": "value0",
"geometry": "This is a point"
}
}]
};
features = new ol.format.GeoJSON().readFeatures(geojsonObject);
console.log(features[0].getGeometry());
console.log(features[0].get('prop0'));
這是合法的嗎?應該支持嗎?