ng-map only opens remote KML file but not local file?
问题 I'm using Ionic and ng-map. I have to display different KMLs (one at a time and on user request). The KML loads on the map but only for remote KMLs. So this one works: <div style="height: 100%"> <ng-map center="41.876,-87.624" zoom="15" map-type-id="HYBRID" style="display:block; width: 100%; height:100%;"> <kml-layer url="http://googlemaps.github.io/js-v2-samples/ggeoxml/cta.kml"></kml-layer> </ng-map> </div> My local KMLs are in a kml folder inside www directory in my Ionic app. And I'm