Fehler: Google Maps werden nicht angezeigt.

Christof's Avatar

Christof

10 May, 2019 08:05 AM

Produkt: Tao Contao
Contao-Version: Version 4.4.18
Browser und Browserversionen: IE, Chrome Mozilla - neueste

Liebes Team,
wir haben die APIs auf Google aktiviert usw. alle Einstellungen vorgenommen, die wir vornehmen können und die Google Map wird nicht angezeigt.
Was können wir noch tun?

Konsole:
siehe Anhang (Unbenannt)

Weitere Anhänge: Google Einstellungen

Google zählt jedoch die Zugriffe.

Inspektor / Element untersuchen:
Script

    (function() {
        var mapElement = document.querySelectorAll && document.querySelectorAll('.info-map-gmap');
        if (!mapElement || !mapElement.length) {
            return;
        }
        mapElement = mapElement[mapElement.length - 1];
        window.rsce_tao_info_map_queue = window.rsce_tao_info_map_queue || [];
        window.rsce_tao_info_map_queue.push(function() {
            var style = [
                {hue: '#1fa5d1'},
                {saturation: -80},
                {lightness: 10},
                {gamma: 0.8}
            ];
            var map = new google.maps.Map(mapElement, {
                zoom: 15,
                scrollwheel: false,
                mapTypeControl: false,
                scaleControl: false,
                overviewMapControl: false,
                panControl: false,
                rotateControl: false,
                streetViewControl: false,
                zoomControl: false,
                styles: [
                    {featureType: 'landscape', stylers: style},
                    {featureType: 'road.highway', stylers: style},
                    {featureType: 'road.arterial', stylers: style},
                    {featureType: 'road.local', stylers: style},
                    {featureType: 'water', stylers: style},
                    {featureType: 'poi', stylers: style}
                ]
            });
            var geocoder = new google.maps.Geocoder();
            geocoder.geocode(
                {address: "49.469318,10.998387"},
                function(results, status) {
                    if (status == google.maps.GeocoderStatus.OK) {
                        map.setCenter(results[0].geometry.location);
                        var marker = new google.maps.Marker({
                            map: map,
                            position: results[0].geometry.location
                        });
                    }
                }
            );
        });
        window.rsce_tao_info_map_init = function () {
            for (var i = 0; i < window.rsce_tao_info_map_queue.length; i++) {
                window.rsce_tao_info_map_queue[i]();
            }
        };
        if (!document.getElementById('rsce_tao_info_map_script')) {
            var scripts = document.getElementsByTagName('script');
            var script = document.createElement('script');
            script.id = 'rsce_tao_info_map_script';
            script.type = 'text/javascript';
            script.async = true;
            script.src = '//maps.googleapis.com/maps/api/js?key=AIzaSyB_ySGYOJ05ge0G40RWd0jdqXADY1KZt9I&sensor=false&callback=rsce_tao_info_map_init';
            scripts[0].parentNode.insertBefore(script, scripts[0]);
        }
    })();

Vielen Dank für Eure Zeit und Mühe.
Angelika

  1. Support Staff 1 Posted by RockSolid Theme... on 10 May, 2019 01:43 PM

    RockSolid Themes's Avatar

    Vielen Dank für Ihre Frage.

    Wir konnten den Fehler nicht reproduzieren, die Google Map wurde in unserem Test ohne Fehler dargestellt.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Already uploaded files

  • googleMaps_settings4.png 24.3 KB
  • googleMaps_settings3.png 18.3 KB
  • googleMaps_settings2.png 45.2 KB
  • googleMaps_settings1.png 81.5 KB
  • Unbenannt.JPG 38.9 KB

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac