It would be awesome if someone could help. I have a weird issue.
This code works for desktop, but not for mobile. I found whats causing this behavior: its the “type=“text/plain” data-cookiecategory=“Mapbox”” from the cookie tool which i implementet. Once I remove this line of code, the map shows on mobile too. How can I fix the bug? I need the consent tool in place.
Inside Head:
<!-- Verwende die neueste Version von Mapbox GL JS (v2.15.0) -->
<script type="text/plain" data-cookiecategory="Mapbox" src="https://api.mapbox.com/mapbox-gl-js/v2.15.0/mapbox-gl.js"></script>
<link href="https://api.mapbox.com/mapbox-gl-js/v2.15.0/mapbox-gl.css" rel="stylesheet"/>
<!-- Mapbox Geocoder Plugin (es reicht, diese einmal zu laden) -->
<script src="https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-geocoder/v4.7.0/mapbox-gl-geocoder.min.js"></script>
<link href="https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-geocoder/v4.7.0/mapbox-gl-geocoder.css" rel="stylesheet"/>
Here is my site Read-Only: Webflow - Getränke Göbel