WordPress.org

Ready to get started?Download WordPress

Forums

MapPress Easy Google Maps
[resolved] map in prettyphoto modal display (4 posts)

  1. Paul de Wouters
    Human Made
    Posted 1 year ago #

    Hi

    I'm outputting the shortcode in the template like so:

    <a href="#ssm-sidebar-map" rel="mapPopup">
    				<img src="<?php echo $fields['map_image']; ?>" alt="map link" style="max-width:100%;" />
    			</a>
    			<div id="ssm-sidebar-map" class="hide">
    				<?php $map_id = $fields['map_id'];  echo do_shortcode( "[mappress mapid='" . $map_id . "']" ); ?>
    			</div>
    			<script>
    				(function ($) {
    					"use strict";
    					$(function () {
    						$("a[rel^='mapPopup']").prettyPhoto()
    					});
    				}(jQuery));
    			</script>

    but this is the result:

    http://www.evernote.com/shard/s3/sh/c1919eb7-afdb-4f6a-956a-fb2e11448283/4850eec2a413736c750d9d5b6f58c909

    any idea how to fix this?

    thanks

    http://wordpress.org/extend/plugins/mappress-google-maps-for-wordpress/

  2. jeffreyvr
    Member
    Posted 10 months ago #

    Hello Paul,

    I got the exact same problem. Did you find a solution to this?

  3. jeffreyvr
    Member
    Posted 10 months ago #

    Well, after reading the FAQ of the plugin I found I could use this code as a fallback:
    mapp1.resize();

    In wich 1 stands for the map number.

  4. Paul de Wouters
    Human Made
    Posted 10 months ago #

    thanks for posting the fix.
    In the end I just rolled my own code

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags