【发布时间】:2016-12-28 12:55:11
【问题描述】:
我用 GeoJson
的重投影热堆栈
我有 GeoJson 对象通过 ajax 从服务器加载
对象的 CRS 设置为 EPSG:2180
我想将它覆盖在具有 CRS EPSG:3857
var buildingsFeatures = (new ol.format.GeoJSON()).readFeatures($buildings, {
dataProjection: 'EPSG:2180',
featureProjection: 'EPSG:3857'
});
$building 是 GeoJson FeatureCollection 对象,以上代码符合 OpenLayers 文档,但坐标未更改。
我碰壁了:(
【问题讨论】:
标签: openlayers-3 geojson projection