• the popup shortcode is ignored, which wouldn’t be an issue if it wasn’t for the fact that the popup box renders really, really bad. I didn’t notice that the plugin used the zoom bar until I read one of the posts here that pointed out that it doesn’t render properly either. I wouldn’t have brought this up until I noticed that the plugin creator hasn’t been active for support. I recommend to anyone thinking of using this plugin to uninstall and find another plugin.

    http://wordpress.org/extend/plugins/theme-blvd-responsive-google-maps/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter jesse.t

    (@jesset-1)

    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.

    Thread Starter jesse.t

    (@jesset-1)

    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.

    Thread Starter jesse.t

    (@jesset-1)

    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.

    Thread Starter jesse.t

    (@jesset-1)

    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.

    Thread Starter jesse.t

    (@jesset-1)

    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.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Plugin Responsive, Author.. not so much’ is closed to new replies.