S
S
Sergey Goryachev2017-08-01 23:33:32
JavaScript
Sergey Goryachev, 2017-08-01 23:33:32

How to defeat TypeError: d is undefined?

Something in my brain boiled a little (
I can’t understand where this crap comes from.
TypeError: d is undefined
It swears at

maps-api-v3/api/js/29/13/intl/ru_ALL/common.js:46:86

But how can I get rid of the problem?) Well, this is not my file)
Link
http://rmk.wbrs.ru/
Initialization
if ($("#gmaps").css('display') != 'none') {
        var styles = [ { "elementType": "geometry", "stylers": [ { "color": "#f5f5f5" } ] }, { "elementType": "labels.icon", "stylers": [ { "visibility": "off" } ] }, { "elementType": "labels.text.fill", "stylers": [ { "color": "#616161" } ] }, { "elementType": "labels.text.stroke", "stylers": [ { "color": "#f5f5f5" } ] }, { "featureType": "administrative.land_parcel", "elementType": "labels.text.fill", "stylers": [ { "color": "#bdbdbd" } ] }, { "featureType": "poi", "elementType": "geometry", "stylers": [ { "color": "#eeeeee" } ] }, { "featureType": "poi", "elementType": "labels.text.fill", "stylers": [ { "color": "#757575" } ] }, { "featureType": "poi.park", "elementType": "geometry", "stylers": [ { "color": "#e5e5e5" } ] }, { "featureType": "poi.park", "elementType": "labels.text.fill", "stylers": [ { "color": "#9e9e9e" } ] }, { "featureType": "road", "elementType": "geometry", "stylers": [ { "color": "#ffffff" } ] }, { "featureType": "road.arterial", "elementType": "labels.text.fill", "stylers": [ { "color": "#757575" } ] }, { "featureType": "road.highway", "elementType": "geometry", "stylers": [ { "color": "#dadada" } ] }, { "featureType": "road.highway", "elementType": "labels.text.fill", "stylers": [ { "color": "#616161" } ] }, { "featureType": "road.local", "elementType": "labels.text.fill", "stylers": [ { "color": "#9e9e9e" } ] }, { "featureType": "transit.line", "elementType": "geometry", "stylers": [ { "color": "#e5e5e5" } ] }, { "featureType": "transit.station", "elementType": "geometry", "stylers": [ { "color": "#eeeeee" } ] }, { "featureType": "water", "elementType": "geometry", "stylers": [ { "color": "#c9c9c9" } ] }, { "featureType": "water", "elementType": "labels.text.fill", "stylers": [ { "color": "#9e9e9e" } ] } ];
        var gmap = new GMaps({
            div: '#gmaps',
            scrollwheel: false,
            zoom: 16,
            lat: 54.630209,
            lng: 39.724659,
            scrollwheel: false,
            disableDefaultUI: true,
        });
        gmap.setOptions({styles: styles});
        gmap.addMarker({
            lat: 54.630209,
            lng: 39.724659,
            title: 'Мастерская красоты "Sweet Sugar"',
            icon: '/templates/sweetsugar/img/marker.png',
            infoWindow: {
                content: '<div style="align: center; overflow: hidden;"><img src="/templates/sweetsugar/img/photo_map.jpg" width="270" alt="" style="display: block;" /><p style="width: 270px; text-align: center; background-color: #351956; line-height: 30px; font-weight: bold; color: #ffffff; margin-top: -30px; opacity: 0.9;">Россия, г. Рязань, ул. Каширина, д. 4</p></div>'
            },
            click: function(e) {
                gmap.setCenter('54.631842', '39.724659');
            }
        });
        // var image = '/templates/sweetsugar/img/marker.png';
        // var beachMarker = new google.maps.Marker({
        //     lat: 54.630209,
        //     lng: 39.724659,
        //     map: gmap,
        //     icon: image,
        //     // infoWindow: {
        //     //     content: '<div style="align: center; overflow: hidden;"><img src="/templates/sweetsugar/img/photo_map.jpg" width="270" alt="" style="display: block;" /><p style="width: 270px; text-align: center; background-color: #351956; line-height: 30px; font-weight: bold; color: #ffffff; margin-top: -30px; opacity: 0.9;">Россия, г. Рязань, ул. Каширина, д. 4</p></div>'
        //     // },
        //     // click: function(e) {
        //     //     gmap.setCenter('54.631842', '39.730832');
        //     // }
        // });
    };

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Goryachev, 2017-08-05
@webirus

The problem was not solved, the script turned off, took another one.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question