For anyone having issues with the zoom bar/popup artifacts. It turns out that there is no css to control the image width so it goes with the parents width. If you’re using a responsive theme, it’s set to 100%, and that breaks it. Simply add .themeblvd-gmap img{ max-width:none !important; } to your css and it’ll fix the issue.
So is the popup showing by default for you? Its closed by default for me. A you mentioned, the shortcode popup variable doesnt seem to make a difference.
It is not, but regardless of what you set the variable to, it doesn’t affect the popup. I didn’t dig too deep in the code, but I’d imagine that the map was created with no way to get the marker/infowindow object. If you’re familiar with Google Maps api you can probably write something up using it’s event listener and the ‘domready’ to show the infowindow. But that’ll probably require some serious tweaking to the plugin. I’d start by looking at the gMap function that is called by the plugin.
As an interesting aside. Ive decided to write a plugin from scratch and found that it’s not the error of this plugin that causes the popup to not display when set to true, but something with gmap. When I find a solution I will post it here.
Since a lot of people are asking about this and many more will in the future I figured I could post a solution for you. This should only work with one marker. I say should because I haven’t tested it. I no longer have the plugin installed.
Backup themeblvd-google-maps.php
comment out the marker: [ … ] ~ lines 95-101.
Add a new line after 110 ( before the closing tags of the document.ready function.
add
var map = $("#tb_gmap_<?php echo $id; ?>").gMap('get','map');
var Marker = new google.maps.Marker({
'position': <?php echo $address ?>,
'map' : map;
});
infoWindow.setContent(<?php echo $html ?>);
google.maps.event.addDomListener(window, 'load', function() {
infoWindow.open(map, Marker);
});
This should load the infowindow when the page loads. It may need some slight bug fixes, but if you use firefox and firebug you should be able to see any javascript errors that popup.
I should also note that you will need to add a listener for the click function on the marker. something like
google.maps.event.addListener(Marker, 'click', function() {
infoWindow.setContent(<?php echo html; ?>);
infoWindow.open(map, Marker);
});
below the addDomListener.