{"id":1591519,"date":"2018-08-06T16:59:47","date_gmt":"2018-08-06T23:59:47","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/google-maps-api-errors-with-tec-pro-4-4-30\/"},"modified":"2018-08-06T16:59:47","modified_gmt":"2018-08-06T23:59:47","slug":"google-maps-api-errors-with-tec-pro-4-4-30","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/google-maps-api-errors-with-tec-pro-4-4-30\/","title":{"rendered":"Google Maps API errors with TEC Pro 4.4.30"},"content":{"rendered":"<p>With the upgrade to The Events Calendar Pro 4.4.30, some theme-custom code which draws on google maps overlays stopped working.<\/p>\n<p>With TECPro 4.4.30 running now seeing the error<\/p>\n<p>      You have included the Google Maps JavaScript API multiple times on this page. This may cause unexpected errors.<\/p>\n<p>which I think leads to<\/p>\n<p>      InvalidValueError: setMap: not an instance of Map; and not an instance of StreetViewPanorama<\/p>\n<p>downgrading to TECPro 4.4.29.2 alleviates this problem.<\/p>\n<p>I have TECPro 4.4.29.2 running at https:\/\/steeplechasers.org\/ and 4.4.30 running at https:\/\/sandbox.steeplechasers.org\/<\/p>\n<p>The error can be seen at https:\/\/sandbox.steeplechasers.org\/training\/running-routes\/ . The expected behavior is at https:\/\/steeplechasers.org\/training\/running-routes\/<\/p>\n<p>I tried removing my statement<br \/>\n    &lt;script src=&#8221;\/\/maps.google.com\/maps\/api\/js&#8221;&gt;&lt;\/script&gt;<\/p>\n<p>but then google.maps is undefined.<\/p>\n<p>I suspect this has something to do with the new tribe_assets, but of course not sure.<\/p>\n<p>What do you recommend?<\/p>\n<p>( I see someone else is having trouble with the google maps API but they marked their post as private )<\/p>\n","protected":false},"template":"","class_list":["post-1591519","topic","type-topic","status-closed","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Google Maps API errors with TEC Pro 4.4.30 -<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/google-maps-api-errors-with-tec-pro-4-4-30\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Google Maps API errors with TEC Pro 4.4.30 -\" \/>\n<meta property=\"og:description\" content=\"With the upgrade to The Events Calendar Pro 4.4.30, some theme-custom code which draws on google maps overlays stopped working. With TECPro 4.4.30 running now seeing the error You have included the Google Maps JavaScript API multiple times on this page. This may cause unexpected errors. which I think leads to InvalidValueError: setMap: not an [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/google-maps-api-errors-with-tec-pro-4-4-30\/\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/google-maps-api-errors-with-tec-pro-4-4-30\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/google-maps-api-errors-with-tec-pro-4-4-30\/\",\"name\":\"Google Maps API errors with TEC Pro 4.4.30 -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2018-08-06T23:59:47+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/google-maps-api-errors-with-tec-pro-4-4-30\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/google-maps-api-errors-with-tec-pro-4-4-30\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/google-maps-api-errors-with-tec-pro-4-4-30\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/theeventscalendar.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Topics\",\"item\":\"https:\/\/theeventscalendar.com\/support\/topics\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Calendar Products\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Events Calendar PRO\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/events-calendar-pro\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Google Maps API errors with TEC Pro 4.4.30\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\",\"url\":\"https:\/\/theeventscalendar.com\/support\/\",\"name\":\"\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Google Maps API errors with TEC Pro 4.4.30 -","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/google-maps-api-errors-with-tec-pro-4-4-30\/","og_locale":"en_US","og_type":"article","og_title":"Google Maps API errors with TEC Pro 4.4.30 -","og_description":"With the upgrade to The Events Calendar Pro 4.4.30, some theme-custom code which draws on google maps overlays stopped working. With TECPro 4.4.30 running now seeing the error You have included the Google Maps JavaScript API multiple times on this page. This may cause unexpected errors. which I think leads to InvalidValueError: setMap: not an [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/google-maps-api-errors-with-tec-pro-4-4-30\/","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/google-maps-api-errors-with-tec-pro-4-4-30\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/google-maps-api-errors-with-tec-pro-4-4-30\/","name":"Google Maps API errors with TEC Pro 4.4.30 -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2018-08-06T23:59:47+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/google-maps-api-errors-with-tec-pro-4-4-30\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/google-maps-api-errors-with-tec-pro-4-4-30\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/google-maps-api-errors-with-tec-pro-4-4-30\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/theeventscalendar.com\/support\/"},{"@type":"ListItem","position":2,"name":"Topics","item":"https:\/\/theeventscalendar.com\/support\/topics\/"},{"@type":"ListItem","position":3,"name":"Calendar Products","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/"},{"@type":"ListItem","position":4,"name":"Events Calendar PRO","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/events-calendar-pro\/"},{"@type":"ListItem","position":5,"name":"Google Maps API errors with TEC Pro 4.4.30"}]},{"@type":"WebSite","@id":"https:\/\/theeventscalendar.com\/support\/#website","url":"https:\/\/theeventscalendar.com\/support\/","name":"","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1591519","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1591519\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1591519"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}