WordPress.org

Ready to get started?Download WordPress

Forums

Geo Mashup
Radius has stopped working? (4 posts)

  1. raitwebs
    Member
    Posted 2 years ago #

    I've been using a map with a radius function for a while now. And this morning I noticed it's not working anymore. I'm centering on the currently logged in users coordinates and letting the user to change the radius as desired.

    Now when I look at the map as a guest, the map shows up, centered around the default coords and with no radius (displaying everything on the map)

    But when a logged in user looks at the map, the map does not get loaded at all. Although all the values are there for $latitude $longitude and

    This is how I'm loading it:

    <?php echo GeoMashup::map('map_content=global&radius_km='.$radius.'&near_lat='.$latitude.'&near_lng='.$longitude) ?>

    Has anything changed in the plugin that I should know of?

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

  2. Dylan Kuhn
    Member
    Plugin Author

    Posted 2 years ago #

    Sorry for the delay - my notifications stopped for some reason.

    I'm guessing the problem is that the query is not returning anything in the specified radius. You could add &show_empty_map=true to display a map anyway.

    If you just want to center on the coordinates, use center_lat and center_lng instead.

  3. raitwebs
    Member
    Posted 2 years ago #

    Thanks for the reply Dylan,

    I have over 600 locations spread over some 400 square kilometers. So if I set the radius to 100km it should display a good number of locations.

    I'm in process of some massive changes witht he site so I'll just redo the maps from ground up while I'm at it. Will see if it makes a difference.

  4. Dylan Kuhn
    Member
    Plugin Author

    Posted 2 years ago #

    I didn't quite catch the logged-in/guest distinction with that answer. I don't know of anything in GM that would be affected by that. While you're rebuilding it would be worth making sure you still get the problem with other plugins deactivated. If so, I'd need to gather some more debugging information to figure out what's wrong.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags