geometry类中的方法:transform(‘EPSG:4326’, ‘EPSG:3857’)
写法:
var geom = new Point(layerFeatures[i].properties.itemGeometry.coordinates).transform(‘EPSG:4326’, ‘EPSG:3857’)
openlayer图形geometry坐标转换
最新推荐文章于 2024-07-02 10:08:40 发布
geometry类中的方法:transform(‘EPSG:4326’, ‘EPSG:3857’)
写法:
var geom = new Point(layerFeatures[i].properties.itemGeometry.coordinates).transform(‘EPSG:4326’, ‘EPSG:3857’)