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

    (@webaware)

    G’day srolls,

    Add this snippet to a simple plugin, or your functions.php file in your theme:

    // allow Google to detect location in all maps on page
    add_filter('flexmap_google_maps_api_args', function($args) {
        $args['sensor'] = 'true';
        return $args;
    });

    cheers,
    Ross

    Thread Starter srolls

    (@srolls)

    Unfortunately it didn’t work. The plugin which I hoped to use it on uses a text field which you enter your location and hit get directions. The field is not really incorporated in the map.

    Plugin Author webaware

    (@webaware)

    OK, so you want to integrate an external search field with the map. You might be better off integrating Google Maps yourself — it’s not that hard, look at the file flexible-map.js to see how I’ve done it, or just look at some examples in the Google Maps API doco.

    cheers,
    Ross

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘mobile location entry for directions’ is closed to new replies.