{"id":1330,"date":"2022-08-30T15:15:38","date_gmt":"2022-08-30T15:15:38","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/11\/10\/uncaught-typeerror-cannot-read-property-__e3_-of-undefined-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:15:38","modified_gmt":"2022-08-30T15:15:38","slug":"uncaught-typeerror-cannot-read-property-__e3_-of-undefined-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/uncaught-typeerror-cannot-read-property-__e3_-of-undefined-collection-of-common-programming-errors\/","title":{"rendered":"Uncaught TypeError: Cannot read property &#39;__e3_&#39; of undefined-Collection of common programming errors"},"content":{"rendered":"<p>I&#8217;m develop an aplication with vb.net and google maps v3, and i&#8217;m trying create a map with next properties<\/p>\n<pre><code> \n    $(document).ready(function (){ \n        var sPath =\"images\/AppIcons\/Vehicles\/icon05.png,\";\n        var markers= new google.maps.Marker({\n            position : new google.maps.LatLng(4.759915, -74.04083),\n            map : map,\n            icon : new google.maps.MarkerImage(+ sPath + null, null, null, new google.maps.Size(32, 32)),\n            animation: google.maps.Animation.DROP,\n            title : \"buena\"\n        });\n        var myLatlng = new google.maps.LatLng(0, 0);\n        var mapOptions={zoom: 3,center: new google.maps.LatLng(4.590798,-74.084244),mapTypeId: google.maps.MapTypeId.ROADMAP };\n        var map = new google.maps.Map(document.getElementById('map_canvas'), mapOptions);\n        var marker = setMarkers(map);\n        var infowindow = new google.maps.InfoWindow({Content : '<b>FM3200 - FM3200<\/b> <u>20\/01\/2013 04:30:56 p.m. - Voltaje Externo - (Norte)<\/u>Ubicacion Invalida In1:0 In2:0 In3:0 Batext:4.45V Vel:0 Odom:0 Ibutton:0 Oficina Principal Risk, Kmh: 0'});\n        if (markers !='') {\n            google.maps.event.addListener(marker, 'click', function() {\n                infowindow.open(map,marker);\n                \/*if (marker.getAnimation() != null) {\n                    marker.setAnimation(null);\n                } else {\n                    marker.setAnimation(google.maps.Animation.BOUNCE);\n                }*\/\n            });\n        }\n    });\n    function setMarkers(map,markers) {\n        var marker =markers;\n        if (marker !='') {\n            return marker;\n        }\n    }\n<\/code><\/pre>\n<p>When play this code apear this message of error<\/p>\n<pre><code>Uncaught TypeError: Cannot read property '__e3_' of undefined main.js:18 \n<\/code><\/pre>\n<p>How can solved this error Thanks for your help..<\/p>\n<ol>\n<li>\n<p>Move the creation of <code>map<\/code> to the top of the function.<\/p>\n<p>Currently you use <code>map<\/code> as <code>map<\/code>-option for <code>markers<\/code>, where it&#8217;s expected to be a <code>google.maps.Map<\/code>-instance(but it&#8217;s undefined, because the map isn&#8217;t created yet)<\/p>\n<\/li>\n<\/ol>\n<p id=\"rop\"><small>Originally posted 2013-11-10 00:17:18. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>I&#8217;m develop an aplication with vb.net and google maps v3, and i&#8217;m trying create a map with next properties $(document).ready(function (){ var sPath =&#8221;images\/AppIcons\/Vehicles\/icon05.png,&#8221;; var markers= new google.maps.Marker({ position : new google.maps.LatLng(4.759915, -74.04083), map : map, icon : new google.maps.MarkerImage(+ sPath + null, null, null, new google.maps.Size(32, 32)), animation: google.maps.Animation.DROP, title : &#8220;buena&#8221; }); var [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1330","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1330","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=1330"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1330\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=1330"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=1330"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=1330"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}