WordPress.org

Ready to get started?Download WordPress

Forums

WP Flexible Map
Prevent Infowindow displaying (4 posts)

  1. daniish
    Member
    Posted 2 years ago #

    I am using the WP-Flexible-Map plugin to display KML data and i would like to know how to prevent google-maps markers from displaying an Infowindow!

    Initially, i tried using an iframe with this code to stop it displaying: “iwloc=&” as described here:

    But it didn't work. From reading other posts, it seems WP might possibly be stripping out some code!

    Now for other reasons, I've decided to avoid using an iframe.

    Reading the KML Reference Guide suggests that i should be able to add the following to my KML file to prevent the infowindow being displayed:
    <BalloonStyle><displayMode>hide</displayMode></BalloonStyle>

    I can't get this working either. Does anyone know how to do it, or have a relevant suggestion?

    Many thanks

    http://wordpress.org/extend/plugins/wp-flexible-map/

  2. webaware
    Member
    Plugin Author

    Posted 2 years ago #

    That styling is applicable to Google Earth, but Google Maps API doesn't follow it.

    There is an option suppressInfoWindows I can provide Google Maps API when I create the map for the KML file, I can add that sometime in the next couple of days if you tell me you want that (it sounds like you might, but your other posts are a little in conflict on this).

    cheers,
    Ross

  3. daniish
    Member
    Posted 2 years ago #

    Thanks for getting in touch.

    I'd like to be able to click on markers and have them hyperlink to a relevant WordPress post, without the need for an infowindow.

    If you could implement this I'd be very grateful.

  4. webaware
    Member
    Plugin Author

    Posted 2 years ago #

    Having the placeholder marker click-through to a linked page would require storing a link in KML somewhere for the placeholder, then scanning all placeholders from JavaScript to attach click event handlers for that click-through. I won't be implementing that, so for now your best option is to put your link in the info window.

    When I get around to implementing the JSON map load, I'll make sure it can have just tooltips and click-throughs. I reckon I'll get that done within about a month.

    cheers,
    Ross

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic