change message of use instructions of google maps [closed]

-1

How to change that text message (red box) from goolge maps to a personalized one for my maps, thanks.

    
asked by Jairo Ramos 05.10.2017 в 19:20
source

2 answers

0

using a div instructions I did the effect myself - thanks for your comments.

instructions {

position: absolute;
top: 0px;
left: 0px;
background-color: gray;
opacity: 0;
width: 100%;
height: 100%;
pointer-events: none;//<-------- esto resolvió mi problema que capturaba 
//el div en lugar del mapa antes de tener esta instrucción
animation: fadein 15s;

}

@keyframes fadein {     from {opacity: 0.7; }     to {opacity: 0; }   }

    
answered by 05.10.2017 / 22:12
source
0

You can use jquery to do it using this code:

$('.gm-style-pbt').text('Texto de ejemplo')

Or you can do it using the native code:

document.getElementsByClassName('gm-style-pbt')[0].innerHTML = 'Texto Ejemplo'
    
answered by 05.10.2017 в 19:35