javascript - Cannot read property 'entries' of undefined in http://maps.googleapis.com/maps/api/ -


everything worked , there mistake cannot read property 'entries' of undefined ? (including googlemaps api)

uncaught typeerror: cannot read property 'entries' of undefined @ js?key=<api_key>&callback=map.init:105

map.init

    map.init = function (id) {     id = id || 'map';     map = new google.maps.map(document.getelementbyid(id), {         center: {lat: 46.409998, lng: 30.710000},         scrollwheel: true,         zoom: this.address ? 20 : 12     });      infowindow = new google.maps.infowindow();      map.addlistener('zoom_changed', function () {         var zoom = map.getzoom();         if (zoom > zoomshowpoints && !pointsvisibility) {             pointsvisibility = true;             points.foreach(function (item) {                 item.setvisible(pointsvisibility);             });         } else if (zoom <= zoomshowpoints && pointsvisibility) {             pointsvisibility = false;             points.foreach(function (item) {                 item.setvisible(pointsvisibility);             });         }     });      getusers(); }; 

it solved adding version param

https://maps.googleapis.com/maps/api/js?v=3&key=&callback=map.init


Comments

Popular posts from this blog

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -

python - Error while using APScheduler: 'NoneType' object has no attribute 'now' -