How to display geojson data with meters on javascript google map API

狂风中的少年 提交于 2020-01-14 03:35:07

问题


GeoJson file coordinates are in [X, Y] meters not in [lng, lat]. How to display it on google map?

GeoJson data

{
  "type": "FeatureCollection",
  "features": [
    {
      "type": "Feature",
      "geometry": {
        "type": "MultiPolygon",
        "coordinates": [
          [
            [
              [
                360590,
                555610
              ],
              [
                360590,
                555555.0128
              ],
              [
                360590,
                555540
              ],
              [
                360592.4439,
                555540
              ],
              [
                360600,
                555540
              ],
              [
                360600,
                555518.8277
              ]
            ]
          ]
        ]
      }
    }
  ]
}

here, [360590, 555610] - [X, Y] coordinates is in meters, Now we need to display this coordinates on google map, Is there any solution for this?

also we must have to use addGeoJson or loadGeoJson method because we have 200MB data in GeoJson file.

来源:https://stackoverflow.com/questions/59489210/how-to-display-geojson-data-with-meters-on-javascript-google-map-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!