问题
I have a KML file and I extract the last coordinates and try to set them as a center of a Google Map but the marker is in a completely different place .
Do I have to "convert" KML coordinates into google maps coordinates ?
Thanks a lot
回答1:
KML coordinates are x,y (longitude, latitude), whereas Maps uses LatLng (or y,x / latitude, longitude).
Just switch the x and y order and you should be all set.
来源:https://stackoverflow.com/questions/9866925/coordinates-from-a-kml-file-not-displayed-properly-in-google-maps