KML Layers Cursor CSS - Google Maps API v3

I'm having a little problem with the semi-new KML Overlay functionality with the Google Maps v3 API, in which, although I can use โ€œsuppressInfoWindows: true;โ€, the cursor still looks as if the overlay (s) could be clicked.

Is there a way at this time to change css to overlay (s) so that the cursor is the default cursor, so that they are purely visual and not confuse the user?

+4
source share
2 answers

You can do this via javascript (not sure about a purely CSS solution) using something line by line ...

var ctaLayer = new google.maps.KmlLayer({ url: 'myKmlFile.kml', suppressInfoWindows: true }); if (ctaLayer.suppressInfoWindows) ctaLayer.setOptions({clickable:false}); ctaLayer.setMap(map); 
+3
source

It sounds like a mistake. You must send it to the Google Maps API to track problems .

+1
source

Source: https://habr.com/ru/post/1310036/


All Articles