简体   繁体   中英

PNG as KML layer on google maps overlapping everything

I'm using KMZ file, that has png file as layer, plus kml file itself with coordinates. However i'm having issue with PNG overlapping an actual map (city names, country names, etc), everything is behind KML layer.

Code:

let kml = new google.maps.KmlLayer('https://***.com/2g.kmz?dummy=' + (new Date()).getTime(), {suppressInfoWindows: true, preserveViewport: false})
this.kml.setMap(this.map)

Fiddle: http://jsfiddle.net/webcoderkz/x7jgr9n4/6/

Solved this:

img[src*="kmz"] {
  opacity: 0.5;
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM