Information
Contenu

Travailler avec Google Maps

Si vous intégrez Google Maps à votre site Web, vous pouvez bloquer les codes comme suit.

Exemple de code original:

<iframe 
        src="https://www.google.com/maps/embed?pb=!1m14!1m12!1m3!1d32312.5260948709!2d16.593584727246082!3d59.590840662540685!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!5e0!3m2!1sde!2sse!4v1576536228940!5m2!1sde!2sse" 
        width="600" height="450" frameborder="0" 
        style="border:0;" allowfullscreen=""></iframe>

Exemple de code modifié:

<iframe 
        class="cmplazyload"        
        src="about:blank"     
        data-cmp-vendor="s1104"
        data-cmp-src="https://www.google.com/maps/embed?pb=!1m14!1m12!1m3!1d32312.5260948709!2d16.593584727246082!3d59.590840662540685!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!5e0!3m2!1sde!2sse!4v1576536228940!5m2!1sde!2sse" 
        width="600" height="450" frameborder="0" 
        style="border:0;" allowfullscreen=""></iframe>
Retour en haut de la page