diff options
| -rw-r--r-- | chimere/static/chimere/js/jquery.chimere.js | 8 |
1 files changed, 4 insertions, 4 deletions
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: '<a href="http://www.geoportail.fr/" target="_blank">' + '<img src="http://api.ign.fr/geoportail/api/js/latest/' + |
