New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

mapbox-gl-leaflet

Package Overview
Dependencies
Maintainers
5
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mapbox-gl-leaflet - npm Package Compare versions

Comparing version 0.0.15 to 0.0.16

13

leaflet-mapbox-gl.js

@@ -53,2 +53,4 @@ (function (root, factory) {

}
map._addZoomLimit(this);
},

@@ -158,2 +160,5 @@

_update: function (e) {
if (!this._map) {
return;
}
// update the offset so we can correct for it later when we zoom

@@ -176,5 +181,7 @@ this._offset = this._map.containerPointToLayerPoint([0, 0]);

if (gl.transform.width !== size.x || gl.transform.height !== size.y) {
container.style.width = size.x + 'px';
container.style.height = size.y + 'px';
var x_round = Math.round(size.x), y_round = Math.round(size.y);
if (Math.round(gl.transform.width) !== x_round || Math.round(gl.transform.height) !== y_round) {
container.style.width = x_round + 'px';
container.style.height = y_round + 'px';
if (gl._resize !== null && gl._resize !== undefined){

@@ -181,0 +188,0 @@ gl._resize();

{
"name": "mapbox-gl-leaflet",
"version": "0.0.15",
"version": "0.0.16",
"description": "binding from mapbox gl to the leaflet api",

@@ -5,0 +5,0 @@ "main": "leaflet-mapbox-gl.js",

@@ -12,3 +12,4 @@ **Note: this tool is experimental and is not actively supported by Mapbox. For support, please open an issue in this repository.**

```javascript
var token ="pk.XXXX"; // replace with your Mapbox API Access token. Create a Mapbox account and find it on https://account.mapbox.com/
// replace with your Mapbox API Access token. Only include a token if you will be using Mapbox tiles.
var token ="pk.XXXX";

@@ -15,0 +16,0 @@ var map = L.map('map').setView([38.912753, -77.032194], 15);

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