Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

leaflet-tilelayer-swiss

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

leaflet-tilelayer-swiss - npm Package Compare versions

Comparing version 0.1.0 to 0.2.0

18

Leaflet.TileLayer.Swiss.js
(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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc