Tagged: google maps
Dear Kriesi,
dear team,
dear all,
is there any way to have a Google Map build using the Media Element “Google Maps” from Enfolds Avia editor and to hook up on initialization? What’s the standard jQuery called and where is it located?
My intention is to add KML layers to the map, in my case to add german states layers.
Thank You very much,
Thomas
Hey mailworm,
AviaMapsAPI is in the shortcodes.js and so is the init function.
https://cl.ly/0u0I2R2t0g2E
Changes in shortcodes.js are better to be made in a child theme. Here is how to do it:
https://kriesi.at/support/topic/edit-shortcodes-js-in-child-theme/#post-399336
If you need further assistance please let us know.
Best regards,
Victoria
yes there is a question- i want to get rid of that anoying white background of infowindow on google maps.
but this fuc… div has no id or class – it is the div just before gm-style-iw class so i think i could manage it in this way:
google.maps.event.addListenerOnce(map, 'idle', function(){
jQuery('.gm-style-iw').prev('div').remove();
});
every attempt to do it via functions.php hook is failing – so i created this shortcodes.js file in child-theme/js folder – but i think i inserted it in the wrong place!
i pasted it behind the other addListenerOnce rule on line 583 – and because it does not work – i changed it to (this.map …)
where can i get rid of the background styling. It is very easy to handle styles on .gm-style-iw