Plugin Directory

Test out the new Plugin Directory and let us know what you think.
!This plugin hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Nearby Map by Wabeo

Allow you to insert a map to show activities, places and services around a given geographical point.

How can I use an existing post type, instead of let the plugin creating one ?

Using nbm_post_type. You just have to modify then paste this following code into your functions.php theme file.

<?php add_filter( 'nbm_post_type', 'function_for_alter' );
function function_for_alter(){
    return 'posts';
} ?>

I want to change map style, is it possible ?

Tired of the same old maps? CloudMade give ability for users to use custom map or build thier own. After choosing, you juste have to precise the id of your custom style into your functions.php, by the way of the filter cloudmade_style.

<?php add_filter( 'cloudmade_style', 'my_custom_style' );
function my_custom_style(){
    //If I want to use "midnight Comander coloration" style
    return 999;
} ?>

Loading time tiles is still faster if you opt for a custom style proposed by CloudMade (8 possibilities).

You can see some examples at screenshots section.

Is there a way to use another tile provider than CloudMade ?

Yes, there are other tile provider than CloudMade (used by default in this plugin). To chose for another, simply paste this function into your functions.php.

<?php add_filter( 'maps_datas', 'function_for_alter' );
function function_for_alter( $maps_datas ){
    $maps_datas['tiles'] = "http://{s}.mqcdn.com/tiles/1.0.0/map/{z}/{x}/{y}.jpg";
    $maps_datas['attribution'] = "attribution I want/use to show";
    $maps_datas['subdomains'] = array('otile1','otile2','otile3','otile4');
    return $maps_datas;
} ?>

I tested some tiles providers, and I confirm they work with Nearby Map :

You can also modify many other options using maps_datas filter

Can I change default post type properties ?

Yes, doing this into your functions.php theme file. places_args filter

<?php add_filter( 'places_args', 'function_for_alter' );
function function_for_alter( $args ){
    $args['rewrite'] = array( 'slug', 'local business' );
    $args['supports'][] = 'custom-fields';
    return $args;
} ?>

Locate places with Nearby Map seem to be imprecise, can I improve precision of returned coordinates ?

Use the filter namned nbm_try_to_find_with_openstreetmap. Just paste this :

<?php add_filter( 'nbm_try_to_find_with_openstreetmap', '__return_false' ); ?>

I already have a CloudMade API key, can I use it ?

You can use yours, using cloudmade_key filter hook, into your functions.php

<?php add_filter( 'cloudmade_key', 'function_for_alter' );
function function_for_alter(){
    return 'dfsljfdjfsdjfqsjdkdfjkfqf'; //for example
} ?>

I dont want to see a list of all place behind the map, how can I remove it ?

You can return false on nbm_need_more filter hook :

<?php add_filter( 'nbm_need_more', '__return_false' ); ?>

I dont need route system also, how can I remove it ?

You can return false on nbm_need_route filter hook :

<?php add_filter( 'nbm_need_route', '__return_false' ); ?>

I dont have single page for Place, so I want to remove the link. Can I do ?

Just return false on nbm_places_link filter hook :

<?php add_filter( 'nbm_places_link', '__return_false' ); ?>

I want to proceed some change on the place query

It's easy to rewrite all the query with markers_querys.

<?php add_filter( 'markers_querys', 'function_for_alter' );
function function_for_alter( $m ){
    $m['order'] = 'DESC';
    $m['tax_query'] = array(
            'taxonomy' => 'type_of_place',
            'field' => 'id',
            'term' => 56
    return $m;
} ?>

I want to alter something in HTML returned for all places

There is nbm_map for that...

<?php add_filter( 'nbm_map', 'function_for_alter' );
function function_for_alter(){
    //Do stuff...
} ?>

I want to alter something in HTML returned datas of single place information

Use nbm_place_information filter...

<?php add_filter( 'nbm_place_information', 'function_for_alter' );
function function_for_alter(){
    //Do stuff...
} ?>

Requires: 3.0 or higher
Compatible up to: 3.5.2
Last Updated: 4 years ago
Active Installs: 200+


4.5 out of 5 stars


Got something to say? Need help?


Not enough data

0 people say it works.
0 people say it's broken.

100,2,2 100,1,1 100,1,1 100,1,1