Arbeta med Google Maps

Om du bäddar in Google Maps på din webbplats kan du blockera koderna på följande sätt.

Exempel på originalkod:

<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>

Ändrat kodexempel:

<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>

Google Maps via API

För integration med Google Maps via API:et kan vi inte presentera några standarder eller integrations exempel eftersom det finns för många integrationsalternativ på kundsidan.

Se exemplen på manuell blockering:
https://site.staging.consentmanager.net/help/integration/how-to-block-third-party-codes-cookies-if-no-consent-is-given/ 

Här är ett exempel på hur du integrerar dynamisk innehållsblockering för ditt Google Maps JS API

 <script src="" 
         data-cmp-src="https://maps.googleapis.com/maps/api/js?key=....." 
         data-cmp-vendor="s1104" 
         data-cmp-preview="500x300" 
         data-cmp-preview-headline="Your headline" 
         data-cmp-preview-text="Accept" 
         data-cmp-preview-btn="Text for your button" 
         data-cmp-preview-checkbox="Text for your checkbox" 
         data-cmp-preview-image="https://..........jpg" 
         data-cmp-preview-bgcolor="#000" 
         class="cmplazyload">
</script>

Användbara länkar

Javascript API:
https://site.staging.consentmanager.net/sv/help/referens-for-utvecklare/javascript-api/ 

CMP-evenemang:
https://site.staging.consentmanager.net/sv/help/referens-for-utvecklare/cmp-evenemang/ 

Om du vill lägga till ett överlägg för förhandsgranskning av samtycke, se här:
https://site.staging.consentmanager.net/sv/help/referens-for-utvecklare/dynamisk-innehallsblockering/ 

We do our best to keep this purely informative documentation up to date. However, if you notice that any of these guides need a little touch-up, let us know!