• Hi,
    I’ve been checking out wppa+ for a few days now, because I’m really interested in using its geomapping display. I now know that w#location is the key to doing that from the custom box in settings, but is any way to generate a button/link so that the display can be turned on or off by the person viewing the image (in much the same way as exif and iptc data can be opened and closed)?

    My hope is that I can initially present the image with the bare minimum of additional information with prompts/buttons/links that the user can click on to open up the relevant area if he/she is interested. Is this feasible (I’m not an expert at php or javascript but can find my way around if that’s what’s need)?

    Kind regards

    Tony Tarry

    https://www.ads-software.com/plugins/wp-photo-album-plus/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jacob N. Breetvelt

    (@opajaap)

    I will put that on the wishlist as a feature request.

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    I tried this in Table II-B15:

    <a onClick="jQuery('.wppa-geo').css('display', 'block'); jQuery('.wppa-m').css('display', 'none');jQuery(window).trigger('resize');">
    <div class="wppa-m">
    Show Geo map
    </div>
    </a>
    <a onClick="jQuery('.wppa-geo').css('display', 'none'); jQuery('.wppa-m').css('display', 'block');">
    <div class="wppa-geo" style="display:none;" >
    Hide Geo map
    </div>
    </a>
    <div id="wppa-geo" class="wppa-geo" style="display:none;">
    w#location
    </div>

    But you will see that the initial display is incomplete. Resizing the window fixes it on a responsive theme, but manaully triggering the resize event does not do it. So, it appears to be more complex than it looks…

    Thread Starter Tony_tea

    (@tony_tea)

    Thanks for such a quick response – it looks very promising…

    regards

    Tony

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘activating w#location within a page display’ is closed to new replies.