I'm running RS svn trunk version r27715.
I found some helpful conversations regards the Leaflet maps topic dating back, it seems, to 2022 and its inception in Resourcespace version 9.6.
As far as I can tell, the Esri maps I configured (World Street Map as default) is working fine, but I'd just like some clarification on the config.php settings discussed in the Knowledge Base |
Configuring Leaflet Maps topic.
In particular there are two main areas to investigate when applying the config.php setting $geo_leaflet_maps_sources = true;
1. ../include/map_basemaps.php contains the necessary variables that should be 'used to enable a specific basemap group.
2. ../lib/leaflet_plugins/leaflet-providers-1.10.2/leaflet-providers.js contains the access information, i.e. map URL and options as well as variant information for the different views.
The KB article also provides information for populating an array variable called
$geo_leaflet_maps_sources[]. It implies that it is a transform of the same data found in leaflet-providers.js.
My first question relates to the need to populate this variable when the data it contains is already available in the aforementioned
leaflet-providers.js file.
For example, if I provide the following config.php entries, then I am able to access the maps OK.
## Enable Leaflet Maps.
$geo_leaflet_maps_sources = true;
## Set the default using Code.Variant as per leaflet-providers.js.
$map_default = 'Esri.WorldStreetMap';
## ESRI Maps enable from map_basemaps.php
$map_esristreet = true;
$map_esritopo = true;
$map_esriimagery = true;
Of course caching, zoom, default bounds etc etc are also needed for a complete config, but above is all that appears to be required to access the relevant mapping provider. Can I therefore assume that the
$geo_leaflet_maps_sources[]
example provided for USGSTNM is to act more as a template in the cases where the mapping provider is NOT available in leaflet-providers.js?
My second question is aimed at when
map_basemaps.php doesn't contain the necessary variables for a mapping provider contained in
leaflet-providers.js.
An example of this is HikeBike. What 'enabling' variables need to be set to True in this and other similar cases? Is it intended that map_basemaps.php be modified ... which would break the default SVN pull. How is it meant to be handled?
Thanks, Jeff.