{"id":7633401,"date":"2016-08-04T10:16:37","date_gmt":"2016-08-04T10:16:37","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/empty-map-in-hidden-tab\/"},"modified":"2016-09-01T17:29:02","modified_gmt":"2016-09-01T17:29:02","slug":"empty-map-in-hidden-tab","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/empty-map-in-hidden-tab\/","title":{"rendered":"Empty map in hidden tab"},"content":{"rendered":"<p>I&#8217;m using GMW in a Woocommerce as a location for a product. In backend I define a location of a product and I insert the shortcode in new tab in tabs.php of Woocommerce so it will display map only when visitor will click &#8220;Map&#8221; tab on product page.<\/p>\n<p>However when user clicks the tab the map loads empty. If user clicks full screen and close it the map becomes visible. Hell.. if I resize window the map loads correctly. If I put my shortcode in the description.php file that loads initaly, the map loads just fine. <\/p>\n<p>I&#8217;m using this shortcode:<br \/>\n&lt;?php echo do_shortcode(&#8216;[gmw_single_location map=&#8221;1&#8243; map_width=&#8221;100%&#8221; map_height=&#8221;450px&#8221; zoom_level=&#8221;15&#8243; hide_info=&#8221;1&#8243; info_window=&#8221;0&#8243;]&#8217;); ?&gt;<\/p>\n<p>It seems that this question is similar but it isn&#8217;t working since its ment for WP Job Manager Geolocation: https:\/\/geomywp.com\/forums\/topic\/map-wont-show-on-hidden-tab<\/p>\n<p>Is there any way to fix this?<\/p>\n<p>https:\/\/wordpress.org\/plugins\/geo-my-wp\/<\/p>\n","protected":false},"template":"","class_list":["post-7633401","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/7633401","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/7633401\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=7633401"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}