From 699c2517f951432ee6ef9ed17647d52cf8cd1eac Mon Sep 17 00:00:00 2001 From: gildeluermoz Date: Thu, 11 Dec 2014 18:56:57 +0100 Subject: [PATCH] =?UTF-8?q?ajout=20des=20parcelles=20cadastrales=20=C3=A0?= =?UTF-8?q?=20la=20synth=C3=A8se?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/js/synthese/application.synthese.js | 68 +++++++++---------- ...application.synthese.layerWindowFactory.js | 14 ++-- 2 files changed, 41 insertions(+), 41 deletions(-) diff --git a/web/js/synthese/application.synthese.js b/web/js/synthese/application.synthese.js index fdb0e6a416..1b886e9800 100755 --- a/web/js/synthese/application.synthese.js +++ b/web/js/synthese/application.synthese.js @@ -331,40 +331,40 @@ application.synthese = function() { map.addLayer(l0); }; createOrthoLayer(); - // var createCadastralLayer = function() { - // var i; - // var matrixIds3857= new Array(22); - // for (i= 0; i<22; i++) { - // matrixIds3857[i]= { - // identifier : i.toString(), - // topLeftCorner : new OpenLayers.LonLat(-20037508,20037508) - // }; - // } - // var l0= new Geoportal.Layer.WMTS( - // 'Parcelles cadastrales', - // 'http://gpp3-wxs.ign.fr/'+ign_api_key+'/geoportail/wmts', - // { - // layer: 'CADASTRALPARCELS.PARCELS', - // style: 'bdparcellaire_o', - // matrixSet: "PM", - // matrixIds: matrixIds3857, - // format:'image/png', - // exceptions:"text/xml" - // }, - // { - // tileOrigin: new OpenLayers.LonLat(0,0), - // isBaseLayer: false, - // maxResolution: resolution_max, - // alwaysInRange: false, - // projection: wm, - // maxExtent: extent_max, - // units: wm.getUnits(), - // attribution: 'provided by IGN' - // } - // ); - // map.addLayer(l0); - // }; - // createCadastralLayer(); + var createCadastralLayer = function() { + var i; + var matrixIds3857= new Array(22); + for (i= 0; i<22; i++) { + matrixIds3857[i]= { + identifier : i.toString(), + topLeftCorner : new OpenLayers.LonLat(-20037508,20037508) + }; + } + var l0= new Geoportal.Layer.WMTS( + 'Parcelles cadastrales', + 'http://gpp3-wxs.ign.fr/'+ign_api_key+'/geoportail/wmts', + { + layer: 'CADASTRALPARCELS.PARCELS', + style: 'bdparcellaire_o', + matrixSet: "PM", + matrixIds: matrixIds3857, + format:'image/png', + exceptions:"text/xml" + }, + { + tileOrigin: new OpenLayers.LonLat(0,0), + isBaseLayer: false, + maxResolution: resolution_max, + alwaysInRange: false, + projection: wm, + maxExtent: extent_max, + units: wm.getUnits(), + attribution: 'provided by IGN' + } + ); + map.addLayer(l0); + }; + createCadastralLayer(); var createBaseLayer = function() { var i; var matrixIds3857= new Array(22); diff --git a/web/js/synthese/application.synthese.layerWindowFactory.js b/web/js/synthese/application.synthese.layerWindowFactory.js index 47f4aeafe7..78d264d101 100755 --- a/web/js/synthese/application.synthese.layerWindowFactory.js +++ b/web/js/synthese/application.synthese.layerWindowFactory.js @@ -29,13 +29,13 @@ application.synthese.createLayerWindow = function(map) { ,checked: false ,layerName: "Ortho-imagerie" } - // ,{ - // text: "Parcelles cadastrales" - // ,id:'layer_cadastre' - // ,leaf: true - // ,checked: false - // ,layerName: "Parcelles cadastrales" - // } + ,{ + text: "Parcelles cadastrales" + ,id:'layer_cadastre' + ,leaf: true + ,checked: false + ,layerName: "Parcelles cadastrales" + } ,{ text: "Communes" ,id:'layer_communes'