{"id":1286803,"date":"2017-05-20T16:05:35","date_gmt":"2017-05-20T23:05:35","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/customizing-tooltip-window-in-map-view\/"},"modified":"2017-05-20T16:05:35","modified_gmt":"2017-05-20T23:05:35","slug":"customizing-tooltip-window-in-map-view","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/customizing-tooltip-window-in-map-view\/","title":{"rendered":"Customizing ToolTip window in Map View"},"content":{"rendered":"<p>Hello,<\/p>\n<p>I was hoping to customize the ToolTip window in Map view. As default, it includes the Event Name and Address. I was hoping to add the date and time, city and province, website and featured image. I see that I can likely make the changes in this line of code (in a child theme), but unsure how to select those values to show up. <\/p>\n<p>var infoWindow = new google.maps.InfoWindow();<\/p>\n<p>\t\t\tvar content_title = title;<br \/>\n\t\t\tif ( link ) {<br \/>\n\t\t\t\tcontent_title = $( &#8216;&lt;div\/&gt;&#8217; ).append( $( &#8220;&lt;a\/&gt;&#8221; ).attr( &#8216;href&#8217;, link ).text( title ) ).html();<br \/>\n\t\t\t}<\/p>\n<p>\t\t\tvar content = TribeEventsPro.map_tooltip_event + content_title; \/\/<\/p>\n<p>\t\t\tif ( address ) {<br \/>\n\t\t\t\tcontent = content + &#8220;&lt;br\/&gt;&#8221; + TribeEventsPro.map_tooltip_address + address;<br \/>\n\t\t\t}<\/p>\n<p>\t\t\tinfoWindow.setContent( content );<\/p>\n<p>\t\t\tgoogle.maps.event.addListener( marker, &#8216;click&#8217;, function( event ) {<br \/>\n\t\t\t\tinfoWindow.open( tg.map, marker );<br \/>\n\t\t\t} );<\/p>\n<p>\t\t\ttg.markers.push( marker );<\/p>\n<p>\t\t\tif ( tg.refine ) {<br \/>\n\t\t\t\tmarker.setVisible( false );<br \/>\n\t\t\t}<br \/>\n\t\t\ttg.bounds.extend( myLatlng );<br \/>\n\t\t}<\/p>\n<p>Thank you very much in advance for your help!<\/p>\n","protected":false},"template":"","class_list":["post-1286803","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>Customizing ToolTip window in Map View -<\/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\/customizing-tooltip-window-in-map-view\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Customizing ToolTip window in Map View -\" \/>\n<meta property=\"og:description\" content=\"Hello, I was hoping to customize the ToolTip window in Map view. As default, it includes the Event Name and Address. I was hoping to add the date and time, city and province, website and featured image. I see that I can likely make the changes in this line of code (in a child theme), [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/customizing-tooltip-window-in-map-view\/\" \/>\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\/customizing-tooltip-window-in-map-view\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/customizing-tooltip-window-in-map-view\/\",\"name\":\"Customizing ToolTip window in Map View -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2017-05-20T23:05:35+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/customizing-tooltip-window-in-map-view\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/customizing-tooltip-window-in-map-view\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/customizing-tooltip-window-in-map-view\/#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\":\"Customizing ToolTip window in Map View\"}]},{\"@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":"Customizing ToolTip window in Map View -","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\/customizing-tooltip-window-in-map-view\/","og_locale":"en_US","og_type":"article","og_title":"Customizing ToolTip window in Map View -","og_description":"Hello, I was hoping to customize the ToolTip window in Map view. As default, it includes the Event Name and Address. I was hoping to add the date and time, city and province, website and featured image. I see that I can likely make the changes in this line of code (in a child theme), [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/customizing-tooltip-window-in-map-view\/","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\/customizing-tooltip-window-in-map-view\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/customizing-tooltip-window-in-map-view\/","name":"Customizing ToolTip window in Map View -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2017-05-20T23:05:35+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/customizing-tooltip-window-in-map-view\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/customizing-tooltip-window-in-map-view\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/customizing-tooltip-window-in-map-view\/#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":"Customizing ToolTip window in Map View"}]},{"@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\/1286803","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\/1286803\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1286803"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}