geometry类中的方法:transform(‘EPSG:4326’, ‘EPSG:3857’)
写法:
var geom = new Point(layerFeatures[i].properties.itemGeometry.coordinates).transform(‘EPSG:4326’, ‘EPSG:3857’)
openlayer图形geometry坐标转换
最新推荐文章于 2023-03-15 09:25:26 发布
geometry类中的方法:transform(‘EPSG:4326’, ‘EPSG:3857’)
写法:
var geom = new Point(layerFeatures[i].properties.itemGeometry.coordinates).transform(‘EPSG:4326’, ‘EPSG:3857’)