WordPress.org

Ready to get started?Download WordPress

Forums

WP Flexible Map
[resolved] Visual Refresh (4 posts)

  1. daddeaux
    Member
    Posted 1 year ago #

    // Enable the visual refresh
    google.maps.visualRefresh = true;

    Have you considered enabling this? It really improves the look of infowindows on mobile devices.

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

  2. daddeaux
    Member
    Posted 1 year ago #

    i got it...
    window.onload=function(){
    var map = flxmap_map100.getMap();
    google.maps.visualRefresh = true;
    };

    Question.. this would not work with your jquery code, is jquery enabled by default?
    This is my second day using WordPress.

  3. webaware
    Member
    Plugin Author

    Posted 1 year ago #

    G'day daddeaux,

    I'll add it as an option in the next release. As to why no jQuery: I wrote this plugin to run without jQuery, so that sites that didn't want to load that script could still have maps. If you want jQuery in WordPress, just enqueue it in your plugin or theme:

    add_action('wp_enqueue_scripts', 'my_load_jquery');
    function my_load_jquery() {
        wp_enqueue_script('jquery');
    }

    See here for more information: http://codex.wordpress.org/Function_Reference/wp_enqueue_script

  4. webaware
    Member
    Plugin Author

    Posted 11 months ago #

    @daddeaux: visual refresh is now an option in v1.7.0

    cheers,
    Ross

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.