Google Maps mangling KML

前端 未结 2 1913
挽巷
挽巷 2021-01-21 19:02

I\'ve created KML files of some world regions for display using the Google Maps API. This has been working fine, but one region has recently started displaying as if the data\'s

2条回答
  •  北恋
    北恋 (楼主)
    2021-01-21 19:32

    I would say that the Google Maps KML rendering engine has some issues. It works when I use the geoxml3 third party parser to render it, but not when I use the Google Maps Javascript API v3 KmlLayer to render it.

    rendered with geoxml3

    Note that the performance with third party parsers will depend on the complexity of the KML. Tile base rendering like used in KmlLayer will almost always perform better.

    issue #8003 in the Google Maps Javascript API ve issue tracker

提交回复
热议问题