diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-05-30 20:57:48 +0200 |
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-05-30 20:57:48 +0200 |
| commit | c513ef361eba8705d098871a82c7abda75dc5d12 (patch) | |
| tree | 49656017cfeb2865fb2b1f20c5745bd9a9cc62ec /chimere/static | |
| parent | 921b3f382270c4910764abed7e22597aa1a9efb8 (diff) | |
| download | Chimère-c513ef361eba8705d098871a82c7abda75dc5d12.tar.bz2 Chimère-c513ef361eba8705d098871a82c7abda75dc5d12.zip | |
Géoportail - add style parameter
Diffstat (limited to 'chimere/static')
| -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/' + |
