Reply To: Parameters mashupClick and hidden

Home Forums MapPress Support Parameters mashupClick and hidden Reply To: Parameters mashupClick and hidden

#17608
Chris
Keymaster

Hi,

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'>
[mappress]
</div>

<a href="#" onclick="jQuery('#hiddenmap').show(); mapp0.resize();">Click to show map</a>