Impostazione visualizzazione mappa satellite

This commit is contained in:
Beppe 2024-09-09 17:05:50 +02:00
parent a97c2615de
commit e84fb0d6d9
3 changed files with 11 additions and 3 deletions

View File

@ -122,7 +122,7 @@ if (get('op') == 'getmappa') {
const lt = "41.706";
const ln = "13.228";
var container = L.DomUtil.get("mappa");
var esri_url ="https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}";
var esri_url = '<?php echo setting('Tile server satellite');?>';
var esri_attribution = "© Esri © OpenStreetMap Contributors";
if(container._leaflet_id != null){

View File

@ -94,7 +94,7 @@ foreach ($rs_stati as $stato) {
var coords = [];
var circle = "";
var ROOTDIR = '<?php echo $rootdir; ?>';
var esri_url ="https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}";
var esri_url = '<?php echo setting('Tile server satellite');?>';
var esri_attribution = "© Esri © OpenStreetMap Contributors";
function caricaMappa() {

View File

@ -29,4 +29,12 @@ UPDATE `zz_widgets` SET `class` = 'col-md-6' WHERE `zz_widgets`.`name` = "Spazio
-- Gestione tipi destinatari e autocompletamenti destinatari nelle mail in uscita
ALTER TABLE `em_templates`
ADD `type` varchar(5) NOT NULL DEFAULT 'a' AFTER `note_aggiuntive`,
ADD `indirizzi_proposti` TINYINT NOT NULL DEFAULT '0' AFTER `type`;
ADD `indirizzi_proposti` TINYINT NOT NULL DEFAULT '0' AFTER `type`;
-- Aggiunta visualizzazione satellite in mappa
INSERT INTO `zz_settings` (`id`, `nome`, `valore`, `tipo`, `editable`, `sezione`) VALUES
(NULL, 'Tile server satellite', 'https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}', 'string', '1', 'Generali');
INSERT INTO `zz_settings_lang` (`id`, `id_lang`, `id_record`, `title`, `help`) VALUES
(NULL, '1', (SELECT `zz_settings`.`id` FROM `zz_settings` WHERE `zz_settings`.`nome` = 'Tile server satellite'), 'Tile server satellite', ''),
(NULL, '2', (SELECT `zz_settings`.`id` FROM `zz_settings` WHERE `zz_settings`.`nome` = 'Tile server satellite'), 'Satellite tile server', '');