From c513ef361eba8705d098871a82c7abda75dc5d12 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 30 May 2016 20:57:48 +0200 Subject: Géoportail - add style parameter MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- chimere/static/chimere/js/jquery.chimere.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'chimere/static') diff --git a/chimere/static/chimere/js/jquery.chimere.js b/chimere/static/chimere/js/jquery.chimere.js index 4e9e89b..5f8664f 100644 --- a/chimere/static/chimere/js/jquery.chimere.js +++ b/chimere/static/chimere/js/jquery.chimere.js @@ -76,9 +76,9 @@ var LayerSwitcher = function(options){ // Géoportail (IGN) -// example: geoportail_layer('2mqbg0z6cx7ube8gsou10nrt', 'GEOGRAPHICALGRIDSYSTEMS.MAPS', 'Géoportail - Plan IGN', 18, 'image/jpeg') -// geoportail_layer('2mqbg0z6cx7ube8gsou10nrt', 'CADASTRALPARCELS.PARCELS', 'Géoportail - Cadastre', 20, 'image/png') -function geoportail_layer(key, layer, name, max_zoom, image_format){ +// example: geoportail_layer('2mqbg0z6cx7ube8gsou10nrt', 'GEOGRAPHICALGRIDSYSTEMS.MAPS', 'Géoportail - Plan IGN', 18, 'image/jpeg', 'normal') +// geoportail_layer('2mqbg0z6cx7ube8gsou10nrt', 'CADASTRALPARCELS.PARCELS', 'Géoportail - Cadastre', 20, 'image/png', 'bdparcellaire_b') +function geoportail_layer(key, layer, name, max_zoom, image_format, style){ var resolutions = []; var matrixIds = []; var proj3857 = ol.proj.get('EPSG:3857'); @@ -101,7 +101,7 @@ function geoportail_layer(key, layer, name, max_zoom, image_format){ format: image_format, projection: 'EPSG:3857', tileGrid: plan_tileGrid, - style: 'normal', + style: style, attributions: [new ol.Attribution({ html: '' + '