Changeset 93749 in spip-zone
- Timestamp:
- Dec 17, 2015, 12:42:57 PM (5 years ago)
- Location:
- _plugins_/gis/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
_plugins_/gis/trunk/gis_options.php
r93708 r93749 62 62 'nom' => 'Thunderforest Outdoors', 63 63 'layer' => 'L.tileLayer.provider("Thunderforest.Outdoors")' 64 ), 65 'thunderforest_spinalmap' => array( 66 'nom' => 'Thunderforest SpinalMap', 67 'layer' => 'L.tileLayer.provider("Thunderforest.SpinalMap")' 68 ), 69 'thunderforest_pioneer' => array( 70 'nom' => 'Thunderforest Pioneer', 71 'layer' => 'L.tileLayer.provider("Thunderforest.Pioneer")' 64 72 ), 65 73 'opentopomap' => array( -
_plugins_/gis/trunk/lib/leaflet/plugins/leaflet-providers.js
r93708 r93749 1 1 (function (root, factory) { 2 if (typeof define === 'function' && define.amd) { 3 // AMD. Register as an anonymous module. 4 define(['leaflet'], factory); 5 } else { 6 // Assume leaflet is loaded into global object L already 7 factory(L); 8 } 2 if (typeof define === 'function' && define.amd) { 3 // AMD. Register as an anonymous module. 4 define(['leaflet'], factory); 5 } else if (typeof modules === 'object' && module.exports) { 6 // define a Common JS module that relies on 'leaflet' 7 module.exports = factory(require('leaflet')); 8 } else { 9 // Assume Leaflet is loaded into global object L already 10 factory(L); 11 } 9 12 }(this, function (L) { 10 13 'use strict'; … … 55 58 } 56 59 60 // If retina option is set 61 if (provider.options.retina) { 62 // Check retina screen 63 if (options.detectRetina && L.Browser.retina) { 64 // The retina option will be active now 65 // But we need to prevent Leaflet retina mode 66 options.detectRetina = false; 67 } else { 68 // No retina, remove option 69 provider.options.retina = ''; 70 } 71 } 72 57 73 // replace attribution placeholders with their values from toplevel provider attribution, 58 74 // recursively … … 133 149 options: { 134 150 attribution: 135 '© <a href="http://www. opencyclemap.org">OpenCycleMap</a>, {attribution.OpenStreetMap}',151 '© <a href="http://www.thunderforest.com/">Thunderforest</a>, {attribution.OpenStreetMap}', 136 152 variant: 'cycle' 137 153 }, … … 150 166 } 151 167 }, 168 SpinalMap: { 169 options: { 170 variant: 'spinal-map', 171 maxZoom: 11 172 } 173 }, 152 174 Landscape: 'landscape', 153 Outdoors: 'outdoors' 175 Outdoors: 'outdoors', 176 Pioneer: 'pioneer' 154 177 } 155 178 }, … … 232 255 }, 233 256 Stamen: { 234 url: '//stamen-tiles-{s}.a.ssl.fastly.net/{variant}/{z}/{x}/{y}. png',257 url: '//stamen-tiles-{s}.a.ssl.fastly.net/{variant}/{z}/{x}/{y}.{ext}', 235 258 options: { 236 259 attribution: … … 407 430 url: 408 431 '//{s}.{base}.maps.cit.api.here.com/maptile/2.1/' + 409 ' maptile/{mapID}/{variant}/{z}/{x}/{y}/256/png8?' +410 'app_id={app_id}&app_code={app_code} ',432 '{type}/{mapID}/{variant}/{z}/{x}/{y}/{size}/{format}?' + 433 'app_id={app_id}&app_code={app_code}&lg={language}', 411 434 options: { 412 435 attribution: … … 418 441 base: 'base', 419 442 variant: 'normal.day', 420 maxZoom: 20 443 maxZoom: 20, 444 type: 'maptile', 445 language: 'eng', 446 format: 'png8', 447 size: '256' 421 448 }, 422 449 variants: { … … 433 460 normalNightGreyMobile: 'normal.night.grey.mobile', 434 461 462 basicMap: { 463 options: { 464 type: 'basetile' 465 } 466 }, 467 mapLabels: { 468 options: { 469 type: 'labeltile', 470 format: 'png' 471 } 472 }, 473 trafficFlow: { 474 options: { 475 base: 'traffic', 476 type: 'flowtile' 477 } 478 }, 435 479 carnavDayGrey: 'carnav.day.grey', 436 480 hybridDay: { … … 469 513 }, 470 514 FreeMapSK: { 471 url: 'http:// {s}.freemap.sk/T/{z}/{x}/{y}.jpeg',515 url: 'http://t{s}.freemap.sk/T/{z}/{x}/{y}.jpeg', 472 516 options: { 473 517 minZoom: 8, 474 518 maxZoom: 16, 475 subdomains: ['t1', 't2', 't3', 't4'], 519 subdomains: '1234', 520 bounds: [[47.204642, 15.996093], [49.830896, 22.576904]], 476 521 attribution: 477 522 '{attribution.OpenStreetMap}, vizualization CC-By-SA 2.0 <a href="http://freemap.sk">Freemap.sk</a>' … … 602 647 } 603 648 } 649 }, 650 NLS: { 651 // NLS maps are copyright National library of Scotland. 652 // http://maps.nls.uk/projects/api/index.html 653 // Please contact NLS for anything other than non-commercial low volume usage 654 // 655 // Map sources: Ordnance Survey 1:1m to 1:63K, 1920s-1940s 656 // z0-9 - 1:1m 657 // z10-11 - quarter inch (1:253440) 658 // z12-18 - one inch (1:63360) 659 url: '//nls-{s}.tileserver.com/nls/{z}/{x}/{y}.jpg', 660 options: { 661 attribution: '<a href="http://geo.nls.uk/maps/">National Library of Scotland Historic Maps</a>', 662 bounds: [[49.6, -12], [61.7, 3]], 663 minZoom: 1, 664 maxZoom: 18, 665 subdomains: '0123', 666 } 604 667 } 605 668 }; -
_plugins_/gis/trunk/paquet.xml
r93708 r93749 2 2 prefix="gis" 3 3 categorie="divers" 4 version="4.32. 0"4 version="4.32.1" 5 5 schema="2.0.8" 6 6 etat="stable"
Note: See TracChangeset
for help on using the changeset viewer.