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

@antv/l7-layers

Package Overview
Dependencies
Maintainers
24
Versions
539
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@antv/l7-layers - npm Package Compare versions

Comparing version 2.1.8 to 2.1.9

2

es/core/BaseLayer.d.ts

@@ -124,3 +124,3 @@ import { SyncBailHook, SyncHook, SyncWaterfallHook } from '@antv/async-hook';

*/
fitBounds(): ILayer;
fitBounds(fitBoundsOptions?: unknown): ILayer;
destroy(): void;

@@ -127,0 +127,0 @@ clear(): void;

@@ -113,6 +113,7 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";

var _this$getLayerConfig = _this.getLayerConfig(),
autoFit = _this$getLayerConfig.autoFit;
autoFit = _this$getLayerConfig.autoFit,
fitBoundsOptions = _this$getLayerConfig.fitBoundsOptions;
if (autoFit) {
_this.fitBounds();
_this.fitBounds(fitBoundsOptions);
}

@@ -568,3 +569,3 @@

key: "fitBounds",
value: function fitBounds() {
value: function fitBounds(fitBoundsOptions) {
if (!this.inited) {

@@ -579,3 +580,3 @@ this.updateLayerConfig({

var extent = source.extent;
this.mapService.fitBounds([[extent[0], extent[1]], [extent[2], extent[3]]]);
this.mapService.fitBounds([[extent[0], extent[1]], [extent[2], extent[3]]], fitBoundsOptions);
return this;

@@ -582,0 +583,0 @@ }

@@ -19,7 +19,8 @@ import _classCallCheck from "@babel/runtime/helpers/classCallCheck";

var _layer$getLayerConfig = layer.getLayerConfig(),
autoFit = _layer$getLayerConfig.autoFit;
autoFit = _layer$getLayerConfig.autoFit,
fitBoundsOptions = _layer$getLayerConfig.fitBoundsOptions;
if (autoFit) {
setTimeout(function () {
layer.fitBounds();
layer.fitBounds(fitBoundsOptions);
}, 100);

@@ -26,0 +27,0 @@ }

@@ -136,6 +136,7 @@ "use strict";

var _this$getLayerConfig = _this.getLayerConfig(),
autoFit = _this$getLayerConfig.autoFit;
autoFit = _this$getLayerConfig.autoFit,
fitBoundsOptions = _this$getLayerConfig.fitBoundsOptions;
if (autoFit) {
_this.fitBounds();
_this.fitBounds(fitBoundsOptions);
}

@@ -591,3 +592,3 @@

key: "fitBounds",
value: function fitBounds() {
value: function fitBounds(fitBoundsOptions) {
if (!this.inited) {

@@ -602,3 +603,3 @@ this.updateLayerConfig({

var extent = source.extent;
this.mapService.fitBounds([[extent[0], extent[1]], [extent[2], extent[3]]]);
this.mapService.fitBounds([[extent[0], extent[1]], [extent[2], extent[3]]], fitBoundsOptions);
return this;

@@ -605,0 +606,0 @@ }

@@ -30,7 +30,8 @@ "use strict";

var _layer$getLayerConfig = layer.getLayerConfig(),
autoFit = _layer$getLayerConfig.autoFit;
autoFit = _layer$getLayerConfig.autoFit,
fitBoundsOptions = _layer$getLayerConfig.fitBoundsOptions;
if (autoFit) {
setTimeout(function () {
layer.fitBounds();
layer.fitBounds(fitBoundsOptions);
}, 100);

@@ -37,0 +38,0 @@ }

{
"name": "@antv/l7-layers",
"version": "2.1.8",
"version": "2.1.9",
"description": "L7's collection of built-in layers",

@@ -26,5 +26,5 @@ "main": "lib/index.js",

"@antv/async-hook": "^2.1.0",
"@antv/l7-core": "^2.1.8",
"@antv/l7-source": "^2.1.8",
"@antv/l7-utils": "^2.1.8",
"@antv/l7-core": "^2.1.9",
"@antv/l7-source": "^2.1.9",
"@antv/l7-utils": "^2.1.9",
"@babel/runtime": "^7.7.7",

@@ -53,3 +53,3 @@ "@mapbox/martini": "^0.1.0",

},
"gitHead": "fc3b45aa68f401d4d239ce8054afccb4948a2f48",
"gitHead": "1847b2ed5317ff38bb1d7d8326aecfd5bd4f6e69",
"publishConfig": {

@@ -56,0 +56,0 @@ "access": "public"

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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