Parameters mashupClick and hidden

Home Forums MapPress Support Parameters mashupClick and hidden


Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #17606

    Hello. In a mashup I’m unable to override the ‘Mashups’ settings
    POI Click: Open POI vs Go to post
    by using mashupClick=”poi” or mashupClick=”post”.
    Whatever I try the behaviour is always dictated by the Mashups settings not the shortcode parameter i.e. I can successfully alter the behaviour using the settings but never by using mashupClick.

    Also I’m using hidden=”true” but my map continues to appear. Does ‘hidden’ work with mashups?

    What I want is two distinct behaviours on the same page:
    (1) a map with poilist that shows an infobox when either the icon or poilist entry is clicked.
    (2) a poilist without a map that will open the post when the poi entry is clicked.

    Thank you.



    Sorry for the confusion, the documentation was incorrect – I’d updated the readme.txt but not the documentation page. It’s corrected now.

    The mashup click setting is global, as you noticed. All mashups must have the same behavior.

    The ‘hidden’ parameter has been deprecated. You can implement something similar using a custom div and a little javascript. Just be sure to call the ‘resize’ method for the map. For example, enter this in the HTML tab of the post editor for your WordPress post/page:

    <div id='hiddenmap' style='display:none'>
    <a href="#" onclick="jQuery('#hiddenmap').show(); mapp0.resize();">Click to show map</a>
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.