Google maps OpenLayer3和google地图有相同的坐标吗?

Google maps OpenLayer3和google地图有相同的坐标吗?,google-maps,google-maps-api-3,openlayers-3,Google Maps,Google Maps Api 3,Openlayers 3,如果OpenLayer3和google地图具有相同的坐标,该怎么问 我想通过OpenLayers 3使用openstreet map的服务在谷歌地图上绘制城市边界。否,但您可以通过以下方式进行转换: ol.proj.transform([x,y], 'EPSG:4326', 'EPSG:3857') EPSG:4326是谷歌地图使用的投影,EPSG:3857是openlayers 3使用的投影

如果OpenLayer3和google地图具有相同的坐标,该怎么问


我想通过OpenLayers 3使用openstreet map的服务在谷歌地图上绘制城市边界。

否,但您可以通过以下方式进行转换:

ol.proj.transform([x,y], 'EPSG:4326', 'EPSG:3857')
EPSG:4326是谷歌地图使用的投影,EPSG:3857是openlayers 3使用的投影