Skip to content

Commit

Permalink
ajout des parcelles cadastrales à la synthèse
Browse files Browse the repository at this point in the history
  • Loading branch information
gildeluermoz committed Dec 11, 2014
1 parent 68519e1 commit 699c251
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 41 deletions.
68 changes: 34 additions & 34 deletions web/js/synthese/application.synthese.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
14 changes: 7 additions & 7 deletions web/js/synthese/application.synthese.layerWindowFactory.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 699c251

Please sign in to comment.