Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
leaflet-bing-layer
Advanced tools
Bing Maps Layer for Leaflet v1.0.0
Create a new Bing Maps Layer. Depends on Promises which needs a polyfill for older browsers by adding this script to your html <head>
:
<script src="https://cdn.polyfill.io/v2/polyfill.min.js?features=Promise"></script>
parameter | type | description |
---|---|---|
options | string|object | A valid Bing Maps Key or an options object. options inherits from L.TileLayer options (e.g. you can use minZoom and opacity and etc) |
options.bingMapsKey | string | A valid Bing Maps Key [required] |
[options.imagerySet] | string | optional: Imagery Type [default=Aerial] - Aerial - Aerial imagery- AerialWithLabels - Aerial imagery with a road overlay- Road - Roads without additional imageryNot supported: Birdseye and BirdseyeWithLabels |
[options.culture] | string | optional: Language for labels, see options [default=en_US] |
Method | Returns | Description |
---|---|---|
getMetaData(<LatLng> latlng, <Number> zoom) | Promise | Get the Bing Imagery metadata for a specific LatLng and zoom level. latLng or zoom are optional if the layer is attached to a map, they default to current map center and zoom. Returns a Promise that resolves to the metadata JSON from Bing |
var map = L.map('map').setView([51.505, -0.09], 13)
L.tileLayer.bing(MyBingMapsKey).addTo(map)
MIT
[v3.2.0] - 2017-08-09
https
requestsRoadOnDemand
, CanvasLight
, CanvasDark
, CanvasGray
, OrdnanceSurvey
)FAQs
Bing Maps Layer for Leaflet v1.0.0
The npm package leaflet-bing-layer receives a total of 1,671 weekly downloads. As such, leaflet-bing-layer popularity was classified as popular.
We found that leaflet-bing-layer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers 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 a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.