You are here

function location_map_link_default_providers in Location 7.3

Provide the default map link providers.

This can be overridden by implementing location_map_link_COUNTRYCODE_default_providers for a given country.

Return value

array An array of values that work as keys to the array returned by location_map_link_providers (and country versions of that function). The idea is that if the administrator of the site has not yet had a chance to visit the "Map Links" subtab on the location module's settings page, that we can provide deep-linking to a relatively safe default. By 'relatively safe', we mean that the Terms Of Service of the provider of the maps are flexible enough for most parties.

For example, in the case of the U.S., 'google' has relatively flexible Terms Of Service, whereas Yahoo! Maps and MapQuest have more restrictive Terms Of Service.

2 calls to location_map_link_default_providers()
location_map_link in ./location.inc
Get a deep-link to a mapping service such as Yahoo! Maps or MapPoint given an location.
location_map_link_options_form in ./location.admin.inc
Settings page for map links.

File

./location.inc, line 140
Public API for the Location module.

Code

function location_map_link_default_providers() {
  return array(
    'google',
  );
}