• Resolved jasonjasonjason

    (@jasonjasonjason)


    good afternoon,

    i’m planning on using Flexible Map with .kml files, so the first thing i did was try to follow the sample short-code:

    [flexiblemap src=”http://webaware.com.au/maps/example-toronto.kml” width=”100%” height=”400px”]

    the short-code injects script into my page, and even allocates the correct space for the map to load, but i get no actual map content. i’m not sure if this is because the script generated single-tics around the class selectors on the <div> to contain the map, instead of regular double quotes :

    <div id=”flxmap-5751612e8da59″ class=’flxmap-container’ data-flxmap=’flxmap_5751612e8da59′ style=”width:100%;height:400px;”></div>

    or could there be another problem due to this being a localhost installation?

    thanks!

    https://wordpress.org/plugins/wp-flexible-map/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author webaware

    (@webaware)

    G’day jason^3,

    It sounds like the JavaScript isn’t running. You can check in your browser console (developer tools) to see if there’s an error, and if there is then that’s probably what is breaking the maps.

    I’ve also heard of some themes that don’t have a call to wp_footer() in the theme footer. This is required for adding the necessary script to the page. Try switching your theme to something reliable like twentysixteen to see if it’s your theme breaking things.

    cheers,
    Ross

    Thread Starter jasonjasonjason

    (@jasonjasonjason)

    good afternoon,

    thanks for the quick reply, switching to twentysixteen fixed the problem.

    i added <?php wp_footer(); ?> just above </body> and </html> in my footer.php, as in twentysixteen, but it did not let your plugin work on my custom theme.

    i’ll look into documentation on what is needed for wp_footer function correctly, since it’s obviously a problem with my Theme.

    if you have any further advice, it would be appreciated 🙂

    Thread Starter jasonjasonjason

    (@jasonjasonjason)

    ah…

    problem solved :

    i needed to include <?php wp_footer() ?> into my footer.php, as well as <?php wp_header() ?> into the header.php.

    everything works perfectly now 🙂

    cheers

    Plugin Author webaware

    (@webaware)

    Excellent!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘No map is being generated on a LocalHost WP installation, using sample .KML?’ is closed to new replies.