Commit 425bbe57 authored by Elena Grassi's avatar Elena Grassi
Browse files

[WGN] Using Pirello's WMS server for Torino

parent 27006c29
......@@ -446,7 +446,7 @@
"map_default_lng" : 7.686856,
"zoom_level" : 16,
"cluster_limit": 18,
"max_zoom": 18,
"max_zoom": 20,
"tile_view" : "https://c.tile.openstreetmap.org/{z}/{x}/{y}.png",
"tile_view_attribution": "Tiles and Data by <a href='http://openstreetmap.org'>OpenStreetMap</a>, under <a href='http://www.openstreetmap.org/copyright'>ODbL</a>.",
"tile_edit" : "http://b.tile.stamen.com/toner/{z}/{x}/{y}.png",
......
......@@ -954,22 +954,26 @@ angular.module('firstlife.controllers')
layers: {
baselayers: {
view: {
type: 'wms',
url: 'http://geomap.reteunitaria.piemonte.it/ws/siccms/coto-01/wmsg01/wms_sicc01_dati_di_base?',
name: 'view',
type: 'xyz',
visible: true,
url: config.map.tile_view,
layerOptions: {
attribution: config.map.tile_view_attribution,
keepBuffer: 0
layers: 'DatiDiBase',
format: 'image/png',
transparent: true,
attribution: 'Ufficio Cartografia Numerica del Comune di Torino'
}
},
edit: {
type: 'wms',
url: 'http://geomap.reteunitaria.piemonte.it/ws/siccms/coto-01/wmsg01/wms_sicc01_dati_di_base?',
name: 'edit',
type: 'xyz',
visible: false,
url: config.map.tile_edit,
layerOptions: {
attribution: config.map.tile_edit_attribution
layers: 'DatiDiBase',
format: 'image/png',
transparent: true,
attribution: 'Ufficio Cartografia Numerica del Comune di Torino'
}
}
},
......
......@@ -951,7 +951,7 @@ angular.module('firstlife.directives').directive('flmap',function () {
function addEditLayers() {
// VODKA HERE edit loading tiles
editLayer = L.tileLayer($scope.map.layers.baselayers.edit.url, $scope.map.layers.baselayers.edit.layerOptions);
editLayer = L.tileLayer.wms($scope.map.layers.baselayers.edit.url, $scope.map.layers.baselayers.edit.layerOptions);
// $log.debug(editLayer);
// add tile layer
editLayer.addTo(mapRef);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment