Research
Security News
Malicious PyPI Package ‘pycord-self’ Targets Discord Developers with Token Theft and Backdoor Exploit
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
slippy-tile
Advanced tools
Slippy Tile helps parse a Tile scheme URL from a given Tile [x, y, zoom].
npm
$ npm install --save slippy-tile
web browser (ES5)
<script src="https://unpkg.com/slippy-tile/docs/slippy-tile.min.js"></script>
var slippyTile = require('slippy-tile')
var tile = [10, 15, 8] // [x, y, zoom]
var scheme = 'https://{switch:a,b,c}.tile.openstreetmap.org/{zoom}/{x}/{y}.png'
var url = slippyTile(tile, scheme)
//= https://b.tile.openstreetmap.org/8/10/15.png
You can provide your own scheme by following the same syntax as JOSM.
Options
{x}
or {TileColumn}
: Tile Column{y}
or {TileRow}
: Tile Row for Google Maps Compatible scheme{-y}
: Tile Row for TMS scheme{zoom}
or {z}
or {TileMatrix}
: Zoom Level{bbox}
: GeoJSON Bounding Box{quadkey}
or {q}
: Microsoft's Quadkey{switch:1,2,3}
: Selects a random sample{height}
default = 256{width}
: default = 256{proj}
: default = EPSG:3857Substitutes the given tile information [x, y, z] to the URL tile scheme.
Parameters
tile
Tile Tile [x, y, z]url
string URL Tile scheme or provider unique keyExamples
slippyTile([10, 15, 8], 'https://{s}.tile.openstreetmap.org/{zoom}/{x}/{y}.png')
//='https://c.tile.openstreetmap.org/8/10/15.png'
Returns string parsed URL
FAQs
Helps convert Slippy Map url tile schemas
The npm package slippy-tile receives a total of 4 weekly downloads. As such, slippy-tile popularity was classified as not popular.
We found that slippy-tile demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.
Security News
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.