leaflet-tilelayer-swiss
Advanced tools
Comparing version 0.1.0 to 0.2.0
(function (factory, window) { | ||
if (typeof define === 'function' && define.amd) { | ||
// AMD | ||
define(['leaflet'], factory); | ||
define(['leaflet', 'proj4leaflet'], factory); | ||
} else if (typeof exports === 'object') { | ||
// Common JS | ||
module.exports = factory(require('leaflet')); | ||
module.exports = factory(require('leaflet'), require('proj4leaflet')); | ||
} else if (typeof window !== 'undefined' && window.L && window.L.Proj) { | ||
// Browser globals | ||
window.L.TileLayer.Swiss = factory(window.L, window.L.Proj); | ||
} | ||
if (typeof window !== 'undefined' && window.L) { | ||
// window.L | ||
window.L.TileLayer.Swiss = factory(window.L); | ||
} | ||
}(function (L) { | ||
}(function (L, Proj) { | ||
'use strict'; | ||
// Definition for projected coordinate system CH1903+ / LV95 | ||
// Definition for projected coordinate system CH1903+ / LV95 (EPSG:2056) | ||
// Source: https://epsg.io/2056.js | ||
@@ -34,3 +32,3 @@ var epsgCode = 'EPSG:2056'; | ||
var crs = new L.Proj.CRS(epsgCode, proj4Definition, { | ||
var crs = new Proj.CRS(epsgCode, proj4Definition, { | ||
bounds: bounds, | ||
@@ -37,0 +35,0 @@ origin: [topLeft.x, topLeft.y], |
{ | ||
"name": "leaflet-tilelayer-swiss", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"description": "Leaflet.TileLayer.Swiss.js is a Leaflet plugin for creating tile layers from swisstopo, the Swiss Federal Office of Topography.", | ||
@@ -5,0 +5,0 @@ "main": "Leaflet.TileLayer.Swiss.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3342
65