Coding standards
Security in ResourceSpace
Developer reference
Database
Action functions
Admin functions
Ajax functions
Annotation functions
API functions
Collections functions
Comment functions
Config functions
CSV export functions
Dash functions
Debug functions
Encryption functions
Facial recognition functions
File functions
General functions
Language functions
Log functions
Login functions
Message functions
Migration functions
Node functions
PDF functions
Plugin functions
Render functions
Reporting functions
Request functions
Research functions
Slideshow functions
Theme permission functions
User functions
Video functions
Database functions
Metadata functions
Resource functions
Search functions
Map functions
Job functions
Tab functions
Test functions

leaflet_osm_basemaps()

Parameters

ColumnTypeDefaultDescription
OpenStreetMap //
{
'" detectRetina:
19 maxZoom:
osm_attribute attribution:
18 maxZoom:
20 maxZoom:
osm_fr_attribute attribution: L.tileLayer.provider'OpenStreetMap.CH'
href
17 maxZoom:
osm_otm_attribute attribution:
DeLorme
NAVTEQ
USGS
Intermap
iPC
NRCAN
Japan Esri
METI
China Esri
Thailand Esri
TomTom
esri_street_attribute attribution:
1 minZoom:
11 maxZoom:
esri_delorme_attribute attribution: 'Tiles © Esri — Esri
FAO
NPS
GeoBase
NL Kadaster
Survey Ordnance
the and L.tileLayer.provider'Esri.WorldImagery'
esri_topo_attribute attribution: 'Tiles © Esri — Source: Esri
i-cubed
USDA
AEX
GeoEye
Getmapping
Aerogrid
IGN
IGP
UPR-EGP
esri_imagery_attribute attribution: 'Tiles © Esri — Source: USGS
Esri
TANA
NPS'; and L.tileLayer.provider'Esri.WorldTerrain'
13 maxZoom:
esri_terrain_attribute attribution:
esri_relief_attribute attribution:
8 maxZoom:
esri_physical_attribute attribution: 'Tiles © Esri — Sources: GEBCO
NOAA
CHS
OSU
UNH
CSUMB
Geographic National
Esri'; and L.tileLayer.provider'Esri.OceanBasemap'
esri_ocean_attribute attribution: 'Tiles © Esri — National Geographic
UNEP-WCMC
NASA
ESA
GEBCO
16 maxZoom:
esri_natgeo_attribute attribution: 'Tiles © Esri — Esri
esri_gray_attribute attribution:
0 minZoom:
'png' ext:
stamen_attribute attribution:
'jpg' format:
hydda_attribute attribution:
by operated
9 maxZoom:
nasa_attribute attribution:
usgstnm_attribute attribution:
$map_retina
©
22 maxZoom:
tf_attribute attribution:
$map_mapboxid
$map_mapboxtoken
' attribution:

Location

include/map_functions.php lines 9 to 79

Definition

 
function leaflet_osm_basemaps() // OpenStreetMap basemaps.
    
{
    global 
$map_default_cache$map_retina;

    return 
"<!--OpenStreetMap (OSM) basemap group-->
        var osm_attribute = 'Map data © <a href=\"http://openstreetmap.org\">OpenStreetMap</a> contributors';

        var osm_mapnik = L.tileLayer.provider('OpenStreetMap.Mapnik', {
            useCache: '" 
. ( $map_default_cache "true" "false" ) . "',
            detectRetina: '" 
. ( $map_retina "true" "false" ) . "',
            maxZoom: 19,
            attribution: osm_attribute
        });

        var osm_de = L.tileLayer.provider('OpenStreetMap.DE', {
            useCache: '" 
. ( $map_default_cache "true" "false" ) . "',
            detectRetina: '" 
. ( $map_retina "true" "false" ) . "',
            maxZoom: 18,
            attribution: osm_attribute
        });

        var osm_fr_attribute = '&copy; Openstreetmap France | &copy; <a href=\"http://www.openstreetmap.org/copyright\">OpenStreetMap</a>';
        var osm_fr = L.tileLayer.provider('OpenStreetMap.France', {
            useCache: '" 
. ( $map_default_cache "true" "false" ) . "',
            detectRetina: '" 
. ( $map_retina "true" "false" ) . "',
            maxZoom: 20,
            attribution: osm_fr_attribute
        });

        var osm_ch = L.tileLayer.provider('OpenStreetMap.CH', {
            useCache: '" 
. ( $map_default_cache "true" "false" ) . "',
            detectRetina: '" 
. ( $map_retina "true" "false" ) . "',
            maxZoom: 18,
            attribution: osm_attribute
        });

        var osm_bzh = L.tileLayer.provider('OpenStreetMap.BZH', {
            useCache: '" 
. ( $map_default_cache "true" "false" ) . "',
            detectRetina: '" 
. ( $map_retina "true" "false" ) . "',
            maxZoom: 19,
            attribution: osm_attribute
        });

        var osm_hot = L.tileLayer.provider('OpenStreetMap.HOT', {
            useCache: '" 
. ( $map_default_cache "true" "false" ) . "',
            detectRetina: '" 
. ( $map_retina "true" "false" ) . "',
            maxZoom: 19,
            attribution: osm_attribute
        });

        var osm_hikebike = L.tileLayer.provider('HikeBike.HikeBike', {
            useCache: '" 
. ( $map_default_cache "true" "false" ) . "',
            detectRetina: '" 
. ( $map_retina "true" "false" ) . "',
            maxZoom: 19,
            attribution: osm_attribute
        });

        var osm_mtb = L.tileLayer.provider('MtbMap', {
            useCache: '" 
. ( $map_default_cache "true" "false" ) . "',
            detectRetina: '" 
. ( $map_retina "true" "false" ) . "',
            attribution: osm_attribute
        });

        var osm_otm_attribute = 'Map data: &copy; <a href=\"http://www.openstreetmap.org/copyright\">OpenStreetMap</a>, <a href=\"http://viewfinderpanoramas.org\">SRTM</a> | Map style: &copy; <a href=\"https://opentopomap.org\">OpenTopoMap</a> (<a href=\"https://creativecommons.org/licenses/by-sa/3.0/\">CC-BY-SA</a>)';
        var osm_otm = L.tileLayer.provider('OpenTopoMap', {
            useCache: '" 
. ( $map_default_cache "true" "false" ) . "',
            detectRetina: '" 
. ( $map_retina "true" "false" ) . "',
            maxZoom: 17,
            attribution: osm_otm_attribute
        }); "
;
    }

This article was last updated 11th September 2024 21:35 Europe/London time based on the source file dated 9th April 2024 11:40 Europe/London time.