Google Maps - addGeoJson is not working for my file

前端 未结 2 1404
花落未央
花落未央 2021-02-09 13:56

addGeoJson is not working in google map for my file

please check below code that I am using in javascript

//create the map
map = new google.maps.Map(doc         


        
2条回答
  •  甜味超标
    2021-02-09 14:17

    You are getting coordinates in metres. For displaying in google map you need to convert it into [Lng, Lat].

    For converting metres to [Lng, Lat] you need to change the projection from EPSG: 27700 to 4326 then only you are able to get this geojson in [Lng, Lat]

    Tool you can use: QGIS Desktop 3.4.14 Link: https://qgis.org/en/site/forusers/download.html

    After convert you need to export this file as feature.

提交回复
热议问题