You are here

function getlocations_get_geojson_path in Get Locations 7

Same name and namespace in other branches
  1. 7.2 getlocations.module \getlocations_get_geojson_path()

Function to get the path to the GeoJSON library

Return value

Returns string or false

3 calls to getlocations_get_geojson_path()
getlocations_geojson_form in ./getlocations.module
getlocations_leaflet_map_settings_do in modules/getlocations_leaflet/getlocations_leaflet.module
Function
getlocations_setup_js in ./getlocations.module
Function to setup the map scripts

File

./getlocations.module, line 5716
getlocations.module @author Bob Hutchinson http://drupal.org/user/52366 @copyright GNU GPL

Code

function getlocations_get_geojson_path() {
  if ($geojsonpath = libraries_get_path('GeoJSON')) {
    return $geojsonpath . '/GeoJSON.js';
  }
  return FALSE;
}