WordPress.org

Ready to get started?Download WordPress

Forums

WP Geo
Map not displaying - not showing default settings (6 posts)

  1. Mactonex
    Member
    Posted 1 year ago #

    Hi,

    I am using WP-Geo in conjunction with Gravity Forms to allow people to enter a location on an event submission form, here:

    http://tonywylie.co.uk/wyogbeta/submit-an-event/

    The map is showing on the form but it is not showing the correct latitude and longitude, or the correct zoom level.

    I also cannot get the map to display on the posts. There is a space for the map and <div class="wp_geo_map" id="wp_geo_map_2867" style="width:100%; height:300px;"></div> is showing in the inspector. I found the bit of code to do with the image width

    div.wp_geo_map img {
    max-width:none;
    }

    and tried that but no dice. I also tried deactivating and reactivating the plugin but still no deal. Any ideas would be most gratefully received.

    Thanks,

    Mactonex

    http://wordpress.org/extend/plugins/wp-geo/

  2. Ben Huson
    Member
    Plugin Author

    Posted 1 year ago #

    It seems to be working fine for me in both Safari and Chrome.
    What browser are you using?

    Have you tried clearing your browser cache?

  3. Mactonex
    Member
    Posted 1 year ago #

    Hi,

    I am not seeing a map on the post page, e.g.,

    http://tonywylie.co.uk/wyogbeta/event/hellllooooo/

    there should be a map displaying between TTT and A wooha!

    The map is showing ok on the event submission form but the default location is Mali (not where you want to be at the moment!) when I want it to be centred on West Yorkshire.

    I'm using Safari 6.0.2 on OS X 10.8.2. I tried clearing the cache and had a look in Chrome but still not right.

    Thanks

  4. Ben Huson
    Member
    Plugin Author

    Posted 1 year ago #

    What code are you using to display the map in the Gravity Form?

    What shortcode or template tag are you using to try to display the map on the post page? Is it a post or a custom post type?

  5. Mactonex
    Member
    Posted 1 year ago #

    I'm using this

    http://pastebin.com/d0tsm5Sj

    and I'm using <?php echo do_shortcode("[wp_geo_map]"); ?>
    in the template. The events are a custom post type.

    I was just looking at the site on my phone (to avoid my ISP's cache) and it flashed up a notice saying I needed a new Google maps API, where would I get that? The API I'm using is one I got ages ago when I was trying out a few different plugins and I can't remember where I got it.

  6. Ben Huson
    Member
    Plugin Author

    Posted 1 year ago #

    WP Geo currently uses version 2 of the Google Maps API which doesn't work so well on mobile. I'm working on moving it to the latest version - you can test the development version of WP Geo here.

    You may need to specify the post type in your shortcode:

    <?php echo do_shortcode("[wp_geo_map post_type="my_post_type"]"); ?>

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic