You are here

function getlocations_getlocations_map_providers in Get Locations 7

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

File

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

Code

function getlocations_getlocations_map_providers() {
  $osm_attrib = '&copy; <a target="_blank" href="http://www.openstreetmap.org">OpenStreetMap</a> contributors, <a target="_blank" href="http://www.openstreetmap.org/copyright">ODBL</a>';
  $stamen_attrib = 'Tiles &copy; <a target="_blank" href="http://stamen.com">Stamen Design</a>, <a target="_blank" href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a> &mdash; ' . $osm_attrib;
  $esri_attrib = 'Tiles &copy; <a target="_blank" href="http://www.esri.com/">Esri</a>';
  $providers = array(
    'Map' => array(
      'title' => t('Standard street map'),
      'short_title' => t('Map'),
      'description' => t('The standard default street map.'),
      'default' => 1,
      'minzoom' => 0,
      'maxzoom' => 20,
      'url' => '',
      'attribution' => '',
      'tilesize' => 256,
    ),
    'Satellite' => array(
      'title' => t('Standard satellite map'),
      'short_title' => t('Satellite'),
      'description' => t('Satellite view without street overlay.'),
      'default' => 1,
      'minzoom' => 0,
      'maxzoom' => 20,
      'url' => '',
      'attribution' => '',
      'tilesize' => 256,
    ),
    'Hybrid' => array(
      'title' => t('Hybrid satellite map'),
      'short_title' => t('Hybrid'),
      'description' => t('Satellite view with street overlay.'),
      'default' => 1,
      'minzoom' => 0,
      'maxzoom' => 20,
      'url' => '',
      'attribution' => '',
      'tilesize' => 256,
    ),
    'Physical' => array(
      'title' => t('Terrain map'),
      'short_title' => t('Terrain'),
      'description' => t('Map with physical data (terrain, vegetation.)'),
      'default' => 1,
      'minzoom' => 0,
      'maxzoom' => 20,
      'url' => '',
      'attribution' => '',
      'tilesize' => 256,
    ),
    'OSM' => array(
      'title' => t('OpenStreet map'),
      'short_title' => t('OSM map'),
      'description' => t('Map from the OpenStreetMap Foundation.'),
      'default' => 0,
      'minzoom' => 1,
      'maxzoom' => 18,
      'url' => "http://tile.openstreetmap.org/__Z__/__X__/__Y__.png",
      'attribution' => $osm_attrib,
      'tilesize' => 256,
    ),
    'OSMBW' => array(
      'title' => t('OpenStreetMap Black and White'),
      'short_title' => t('OSM BW'),
      'description' => t('Map from the OpenStreetMap Foundation, black and white version.'),
      'default' => 0,
      'minzoom' => 1,
      'maxzoom' => 18,
      'url' => "http://www.toolserver.org/tiles/bw-mapnik/__Z__/__X__/__Y__.png",
      'attribution' => $osm_attrib,
      'tilesize' => 256,
    ),
    'OSMDE' => array(
      'title' => t('OpenStreetMap DE'),
      'short_title' => t('OSM DE'),
      'description' => t('German OpenStreet map'),
      'default' => 0,
      'minzoom' => 1,
      'maxzoom' => 18,
      'url' => "http://tile.openstreetmap.de/tiles/osmde/__Z__/__X__/__Y__.png",
      'attribution' => $osm_attrib,
      'tilesize' => 256,
    ),
    'OCM' => array(
      'title' => t('OpenCycleMap'),
      'short_title' => t('OCM'),
      'description' => '',
      'default' => 0,
      'minzoom' => 1,
      'maxzoom' => 18,
      'url' => "http://tile.opencyclemap.org/cycle/__Z__/__X__/__Y__.png",
      'attribution' => '&copy; <a target="_blank" href="http://www.opencyclemap.org" >OpenCycleMap</a>, ' . $osm_attrib,
      'tilesize' => 256,
    ),
    'OCMT' => array(
      'title' => t('OpenCycleMap Transport'),
      'short_title' => t('OCM Transport'),
      'description' => '',
      'default' => 0,
      'minzoom' => 1,
      'maxzoom' => 18,
      'url' => "http://tile.opencyclemap.org/transport/__Z__/__X__/__Y__.png",
      'attribution' => '&copy; <a target="_blank" href="http://www.opencyclemap.org" >OpenCycleMap</a>, ' . $osm_attrib,
      'tilesize' => 256,
    ),
    'OCML' => array(
      'title' => t('OpenCycleMap Landscape'),
      'short_title' => t('OCM Landscape'),
      'description' => '',
      'default' => 0,
      'minzoom' => 1,
      'maxzoom' => 18,
      'url' => "http://tile.opencyclemap.org/landscape/__Z__/__X__/__Y__.png",
      'attribution' => '&copy; <a target="_blank" href="http://www.opencyclemap.org" >OpenCycleMap</a>, ' . $osm_attrib,
      'tilesize' => 256,
    ),
    'OCMO' => array(
      'title' => t('OpenCycleMap Outdoors'),
      'short_title' => t('OCM Outdoors'),
      'description' => '',
      'default' => 0,
      'minzoom' => 1,
      'maxzoom' => 18,
      'url' => "http://tile.thunderforest.com/outdoors/__Z__/__X__/__Y__.png",
      'attribution' => '&copy; <a target="_blank" href="http://www.opencyclemap.org" >OpenCycleMap</a>, ' . $osm_attrib,
      'tilesize' => 256,
    ),
    'Stamen' => array(
      'title' => t('Stamen Toner'),
      'short_title' => t('ST'),
      'description' => '',
      'default' => 0,
      'minzoom' => 1,
      'maxzoom' => 18,
      'url' => "http://tile.stamen.com/toner/__Z__/__X__/__Y__.png",
      'attribution' => $stamen_attrib,
      'tilesize' => 256,
    ),
    'StamenBG' => array(
      'title' => t('Stamen Toner-background'),
      'short_title' => t('STBG'),
      'description' => '',
      'default' => 0,
      'minzoom' => 0,
      'maxzoom' => 18,
      'url' => "http://tile.stamen.com/toner-background/__Z__/__X__/__Y__.png",
      'attribution' => $stamen_attrib,
      'tilesize' => 256,
    ),
    'StamenHY' => array(
      'title' => t('Stamen Toner-hybrid'),
      'short_title' => t('STHY'),
      'description' => '',
      'default' => 0,
      'minzoom' => 1,
      'maxzoom' => 18,
      'url' => "http://tile.stamen.com/toner-hybrid/__Z__/__X__/__Y__.png",
      'attribution' => $stamen_attrib,
      'tilesize' => 256,
    ),
    'StamenLI' => array(
      'title' => t('Stamen Toner-lines'),
      'short_title' => t('STLI'),
      'description' => '',
      'default' => 0,
      'minzoom' => 1,
      'maxzoom' => 18,
      'url' => "http://tile.stamen.com/toner-lines/__Z__/__X__/__Y__.png",
      'attribution' => $stamen_attrib,
      'tilesize' => 256,
    ),
    'StamenLA' => array(
      'title' => t('Stamen Toner-labels'),
      'short_title' => t('STLA'),
      'description' => '',
      'default' => 0,
      'minzoom' => 1,
      'maxzoom' => 18,
      'url' => "http://tile.stamen.com/toner-labels/__Z__/__X__/__Y__.png",
      'attribution' => $stamen_attrib,
      'tilesize' => 256,
    ),
    'StamenLT' => array(
      'title' => t('Stamen Toner-lite'),
      'short_title' => t('STLT'),
      'description' => '',
      'default' => 0,
      'minzoom' => 1,
      'maxzoom' => 18,
      'url' => "http://tile.stamen.com/toner-lite/__Z__/__X__/__Y__.png",
      'attribution' => $stamen_attrib,
      'tilesize' => 256,
    ),
    'Watercolor' => array(
      'title' => t('Watercolor'),
      'short_title' => t('STWC'),
      'description' => '',
      'default' => 0,
      'minzoom' => 1,
      'maxzoom' => 18,
      'url' => "http://tile.stamen.com/watercolor/__Z__/__X__/__Y__.jpg",
      'attribution' => $stamen_attrib,
      'tilesize' => 256,
    ),
    'ESRI' => array(
      'title' => t('Esri'),
      'short_title' => t('Esri'),
      'description' => '',
      'default' => 0,
      'minzoom' => 1,
      'maxzoom' => 17,
      'url' => "http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer/tile/__Z__/__Y__/__X__",
      'attribution' => $esri_attrib,
      'tilesize' => 256,
    ),
    'DeLorme' => array(
      'title' => t('Esri DeLorme'),
      'short_title' => t('DeLorme'),
      'description' => '',
      'default' => 0,
      'minzoom' => 1,
      'maxzoom' => 11,
      'url' => "http://server.arcgisonline.com/ArcGIS/rest/services/Specialty/DeLorme_World_Base_Map/MapServer/tile/__Z__/__Y__/__X__",
      'attribution' => $esri_attrib . ' &mdash; &copy;2012 DeLorme',
      'tilesize' => 256,
    ),
    'WorldTopoMap' => array(
      'title' => t('Esri Topo'),
      'short_title' => t('Topo'),
      'description' => '',
      'default' => 0,
      'minzoom' => 1,
      'maxzoom' => 18,
      'url' => "http://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer/tile/__Z__/__Y__/__X__",
      'attribution' => $esri_attrib . ' &mdash; DeLorme, NAVTEQ, TomTom, Intermap, iPC, USGS, FAO, NPS, NRCAN, GeoBase, Kadaster NL, Ordnance Survey, Esri Japan, METI, Esri China (Hong Kong), and the GIS User Community',
      'tilesize' => 256,
    ),
    'WorldImagery' => array(
      'title' => t('Esri Imagery'),
      'short_title' => t('Imagery'),
      'description' => '',
      'default' => 0,
      'minzoom' => 1,
      'maxzoom' => 18,
      'url' => "http://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/__Z__/__Y__/__X__",
      'attribution' => $esri_attrib . ' &mdash; Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community',
      'tilesize' => 256,
    ),
    'WorldTerrain' => array(
      'title' => t('Esri Terrain'),
      'short_title' => t('Terrain'),
      'description' => '',
      'default' => 0,
      'minzoom' => 1,
      'maxzoom' => 9,
      'url' => "http://server.arcgisonline.com/ArcGIS/rest/services/World_Terrain_Base/MapServer/tile/__Z__/__Y__/__X__",
      'attribution' => $esri_attrib . ' &mdash; Source: USGS, Esri, TANA, DeLorme, and NPS',
      'tilesize' => 256,
    ),
    'WorldShadedRelief' => array(
      'title' => t('Esri Shaded'),
      'short_title' => t('Shaded'),
      'description' => '',
      'default' => 0,
      'minzoom' => 1,
      'maxzoom' => 13,
      'url' => "http://server.arcgisonline.com/ArcGIS/rest/services/World_Shaded_Relief/MapServer/tile/__Z__/__Y__/__X__",
      'attribution' => $esri_attrib . '',
      'tilesize' => 256,
    ),
    'WorldPhysical' => array(
      'title' => t('Esri Physical'),
      'short_title' => t('Physical'),
      'description' => '',
      'default' => 0,
      'minzoom' => 1,
      'maxzoom' => 8,
      'url' => "http://server.arcgisonline.com/ArcGIS/rest/services/World_Physical_Map/MapServer/tile/__Z__/__Y__/__X__",
      'attribution' => $esri_attrib . ' &mdash; US National Park Service',
      'tilesize' => 256,
    ),
    'OceanBasemap' => array(
      'title' => t('Esri Ocean'),
      'short_title' => t('Ocean'),
      'description' => '',
      'default' => 0,
      'minzoom' => 1,
      'maxzoom' => 13,
      'url' => "http://services.arcgisonline.com/ArcGIS/rest/services/Ocean_Basemap/MapServer/tile/__Z__/__Y__/__X__",
      'attribution' => $esri_attrib . ' &mdash; GEBCO, NOAA, CHS, OSU, UNH, CSUMB, National Geographic, DeLorme, NAVTEQ',
      'tilesize' => 256,
    ),
    'NatGeoWorldMap' => array(
      'title' => t('Esri Geo'),
      'short_title' => t('Esri Geo'),
      'description' => '',
      'default' => 0,
      'minzoom' => 1,
      'maxzoom' => 12,
      'url' => "http://services.arcgisonline.com/ArcGIS/rest/services/NatGeo_World_Map/MapServer/tile/__Z__/__Y__/__X__",
      'attribution' => $esri_attrib . ' &mdash; National Geographic, Esri, DeLorme, NAVTEQ, UNEP-WCMC, USGS, NASA, ESA, METI, NRCAN, GEBCO, NOAA, iPC',
      'tilesize' => 256,
    ),
    'WorldGrayCanvas' => array(
      'title' => t('Esri Canvas'),
      'short_title' => t('Esri Canvas'),
      'description' => '',
      'default' => 0,
      'minzoom' => 1,
      'maxzoom' => 16,
      'url' => "http://server.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Light_Gray_Base/MapServer/tile/__Z__/__Y__/__X__",
      'attribution' => $esri_attrib . ' &mdash; Esri, DeLorme, NAVTEQ',
      'tilesize' => 256,
    ),
  );
  return $providers;
}