
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
openseadragon-wmts
Advanced tools
Adds support for displaying geo-referenced WMTS tile maps in OpenSeadragon.
See online demo.
Download the latest release or grab directly from the CDN. Import into your page:
<script src="https://cdn.jsdelivr.net/npm/openseadragon-wmts@latest/dist/openseadragon-wmts.umd.cjs"></script>
Or install via npm:
$ npm install openseadragon-wmts
var viewer = OpenSeadragon({
id: "openseadragon",
prefixUrl: "https://cdn.jsdelivr.net/npm/openseadragon@2.4/build/openseadragon/images/"
});
// Initialize the plugin
var map = await OpenSeadragonWMTS(viewer, {
url: 'http://maps.wien.gv.at/wmts/1.0.0/WMTSCapabilities.xml'
});
// The map object provides functions to convert OSD coordinates to WGS84
var mouseTracker = new OpenSeadragon.MouseTracker({
element: viewer.container,
moveHandler: function(event) {
var viewportPoint = viewer.viewport.pointFromPixel(event.position);
var lonlat = map.viewportToLonLat(viewportPoint);
console.log(lonlat);
}
});
mouseTracker.setTracking(true);
Per default, the plugin displays the first available map layer with the default style. To select a specific layer and style:
var map = await OpenSeadragon.WMTS(viewer, {
url: 'http://maps.wien.gv.at/wmts/1.0.0/WMTSCapabilities.xml',
layer: 'Orthofoto 2020',
style: 'farbe'
});
Method | Type | |
---|---|---|
imageToLonLat | [x, y] | Image X/Y to lon/lat |
lonLatToImageCoordinates | [lon, lat] | lon/lat to image X/Y |
lonLatToMapCoordinates | [lon, lat] | lon/lat to map projection |
lonLatToViewportCoordinates | [lon, lat] | lon/lat to OSD viewport X/Y |
mapToLonLat | [east, north] | Map projection to lon/lat |
mapToViewportCoordinates | [east, north] | Map projection to OSD viewport X/Y |
viewportToLonLat | [x, y] | OSD viewport X/Y to lon/lat |
viewportToMapCoordinates | [x, y] | OSD viewport X/Y to map projection |
FAQs
WMTS tile map support for OpenSeadragon
The npm package openseadragon-wmts receives a total of 8 weekly downloads. As such, openseadragon-wmts popularity was classified as not popular.
We found that openseadragon-wmts 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
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.