Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-mapbox-gl

Package Overview
Dependencies
Maintainers
3
Versions
142
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-mapbox-gl - npm Package Compare versions

Comparing version 4.6.1 to 4.6.2

lib/constants/css.d.ts

4

lib-esm/cluster.d.ts

@@ -39,5 +39,5 @@ import * as React from 'react';

private featureClusterMap;
componentWillMount(): void;
UNSAFE_componentWillMount(): void;
componentWillUnmount(): void;
componentWillReceiveProps(nextProps: Props): void;
UNSAFE_componentWillReceiveProps(nextProps: Props): void;
private childrenChange;

@@ -44,0 +44,0 @@ private mapChange;

@@ -88,3 +88,3 @@ var __extends = (this && this.__extends) || (function () {

}
Cluster.prototype.componentWillMount = function () {
Cluster.prototype.UNSAFE_componentWillMount = function () {
var _a = this.props, children = _a.children, map = _a.map;

@@ -103,3 +103,3 @@ if (children) {

};
Cluster.prototype.componentWillReceiveProps = function (nextProps) {
Cluster.prototype.UNSAFE_componentWillReceiveProps = function (nextProps) {
var children = this.props.children;

@@ -106,0 +106,0 @@ if (children !== nextProps.children && nextProps.children) {

@@ -72,6 +72,6 @@ import * as React from 'react';

private unbind;
componentWillMount(): void;
UNSAFE_componentWillMount(): void;
componentWillUnmount(): void;
isGeoJSONSource: (source?: MapboxGL.GeoJSONSourceRaw | MapboxGL.VectorSource | MapboxGL.RasterSource | MapboxGL.RasterDemSource | MapboxGL.GeoJSONSource | MapboxGL.VideoSource | MapboxGL.ImageSource | MapboxGL.CanvasSource | undefined) => source is MapboxGL.GeoJSONSource;
componentWillReceiveProps(props: Props): void;
UNSAFE_componentWillReceiveProps(props: Props): void;
render(): null;

@@ -78,0 +78,0 @@ }

@@ -130,3 +130,3 @@ var __extends = (this && this.__extends) || (function () {

};
GeoJSONLayer.prototype.componentWillMount = function () {
GeoJSONLayer.prototype.UNSAFE_componentWillMount = function () {
var map = this.props.map;

@@ -144,3 +144,3 @@ this.initialize();

};
GeoJSONLayer.prototype.componentWillReceiveProps = function (props) {
GeoJSONLayer.prototype.UNSAFE_componentWillReceiveProps = function (props) {
var _this = this;

@@ -147,0 +147,0 @@ var _a = this.props, data = _a.data, before = _a.before, layerOptions = _a.layerOptions, map = _a.map;

@@ -21,3 +21,3 @@ var __extends = (this && this.__extends) || (function () {

}
Image.prototype.componentWillMount = function () {
Image.prototype.UNSAFE_componentWillMount = function () {
this.loadImage(this.props);

@@ -28,3 +28,3 @@ };

};
Image.prototype.componentWillReceiveProps = function (nextProps) {
Image.prototype.UNSAFE_componentWillReceiveProps = function (nextProps) {
var id = this.props.id;

@@ -31,0 +31,0 @@ if (nextProps.map !== this.props.map) {

@@ -27,3 +27,3 @@ import * as React from 'react';

onFeatureDragEnd: (evt: any) => void;
componentWillMount(): void;
UNSAFE_componentWillMount(): void;
componentWillUnmount(): void;

@@ -33,3 +33,3 @@ render(): JSX.Element;

setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<OwnProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
forceUpdate(callBack?: (() => void) | undefined): void;
forceUpdate(callback?: (() => void) | undefined): void;
readonly props: Readonly<OwnProps> & Readonly<{

@@ -59,3 +59,3 @@ children?: React.ReactNode;

onFeatureDragEnd: (evt: any) => void;
componentWillMount(): void;
UNSAFE_componentWillMount(): void;
componentWillUnmount(): void;

@@ -65,3 +65,3 @@ render(): JSX.Element;

setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<OwnProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
forceUpdate(callBack?: (() => void) | undefined): void;
forceUpdate(callback?: (() => void) | undefined): void;
readonly props: Readonly<OwnProps> & Readonly<{

@@ -68,0 +68,0 @@ children?: React.ReactNode;

@@ -174,3 +174,3 @@ var __extends = (this && this.__extends) || (function () {

}
EnhancedLayer.prototype.componentWillMount = function () {
EnhancedLayer.prototype.UNSAFE_componentWillMount = function () {
var map = this.props.map;

@@ -177,0 +177,0 @@ map.on('click', this.id, this.onClick);

@@ -53,7 +53,7 @@ import * as React from 'react';

private onStyleDataChange;
componentWillMount(): void;
UNSAFE_componentWillMount(): void;
componentWillUnmount(): void;
componentWillReceiveProps(props: Props): void;
UNSAFE_componentWillReceiveProps(props: Props): void;
getChildren: () => JSX.Element[];
render(): null;
}

@@ -143,3 +143,3 @@ var __extends = (this && this.__extends) || (function () {

}
Layer.prototype.componentWillMount = function () {
Layer.prototype.UNSAFE_componentWillMount = function () {
var map = this.props.map;

@@ -180,3 +180,3 @@ this.initialize();

};
Layer.prototype.componentWillReceiveProps = function (props) {
Layer.prototype.UNSAFE_componentWillReceiveProps = function (props) {
var _this = this;

@@ -183,0 +183,0 @@ var _a = this.props, paint = _a.paint, layout = _a.layout, before = _a.before, filter = _a.filter, id = _a.id, minZoom = _a.minZoom, maxZoom = _a.maxZoom;

@@ -98,3 +98,3 @@ import * as MapboxGl from 'mapbox-gl';

componentWillUnmount(): void;
componentWillReceiveProps(nextProps: Props & Events): null;
UNSAFE_componentWillReceiveProps(nextProps: Props & Events): null;
setRef: (x: HTMLElement | null) => void;

@@ -104,3 +104,3 @@ render(): JSX.Element;

setState<K extends "map" | "ready">(state: State | ((prevState: Readonly<State>, props: Readonly<Props & Events>) => State | Pick<State, K> | null) | Pick<State, K> | null, callback?: (() => void) | undefined): void;
forceUpdate(callBack?: (() => void) | undefined): void;
forceUpdate(callback?: (() => void) | undefined): void;
readonly props: Readonly<Props & Events> & Readonly<{

@@ -121,3 +121,3 @@ children?: React.ReactNode;

componentWillUnmount(): void;
componentWillReceiveProps(nextProps: Props & Events): null;
UNSAFE_componentWillReceiveProps(nextProps: Props & Events): null;
setRef: (x: HTMLElement | null) => void;

@@ -127,3 +127,3 @@ render(): JSX.Element;

setState<K extends "map" | "ready">(state: State | ((prevState: Readonly<State>, props: Readonly<Props & Events>) => State | Pick<State, K> | null) | Pick<State, K> | null, callback?: (() => void) | undefined): void;
forceUpdate(callBack?: (() => void) | undefined): void;
forceUpdate(callback?: (() => void) | undefined): void;
readonly props: Readonly<Props & Events> & Readonly<{

@@ -130,0 +130,0 @@ children?: React.ReactNode;

@@ -135,3 +135,3 @@ var __extends = (this && this.__extends) || (function () {

};
ReactMapboxGl.prototype.componentWillReceiveProps = function (nextProps) {
ReactMapboxGl.prototype.UNSAFE_componentWillReceiveProps = function (nextProps) {
var map = this.state.map;

@@ -138,0 +138,0 @@ if (!map) {

@@ -34,3 +34,3 @@ import * as React from 'react';

private havePropsChanged;
componentWillReceiveProps(nextProps: Props): void;
UNSAFE_componentWillReceiveProps(nextProps: Props): void;
componentWillUnmount(): void;

@@ -37,0 +37,0 @@ render(): JSX.Element;

@@ -61,3 +61,3 @@ var __extends = (this && this.__extends) || (function () {

};
ProjectedLayer.prototype.componentWillReceiveProps = function (nextProps) {
ProjectedLayer.prototype.UNSAFE_componentWillReceiveProps = function (nextProps) {
if (this.havePropsChanged(this.props, nextProps)) {

@@ -64,0 +64,0 @@ this.setState(overlayState(nextProps, this.props.map, this.container));

@@ -26,3 +26,3 @@ import * as React from 'react';

};
componentWillMount(): void;
UNSAFE_componentWillMount(): void;
componentWillUnmount(): void;

@@ -29,0 +29,0 @@ private setScale;

@@ -109,3 +109,3 @@ var __extends = (this && this.__extends) || (function () {

}
ScaleControl.prototype.componentWillMount = function () {
ScaleControl.prototype.UNSAFE_componentWillMount = function () {
this.setScale();

@@ -112,0 +112,0 @@ this.props.map.on('zoomend', this.setScale);

@@ -18,3 +18,3 @@ import * as React from 'react';

private onStyleDataChange;
componentWillMount(): void;
UNSAFE_componentWillMount(): void;
private initialize;

@@ -24,3 +24,3 @@ private onData;

componentWillUnmount(): void;
componentWillReceiveProps(props: Props): void;
UNSAFE_componentWillReceiveProps(props: Props): void;
render(): null;

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

@@ -71,3 +71,3 @@ var __extends = (this && this.__extends) || (function () {

}
Source.prototype.componentWillMount = function () {
Source.prototype.UNSAFE_componentWillMount = function () {
var map = this.props.map;

@@ -102,3 +102,3 @@ map.on('styledata', this.onStyleDataChange);

};
Source.prototype.componentWillReceiveProps = function (props) {
Source.prototype.UNSAFE_componentWillReceiveProps = function (props) {
var _a = this.props, geoJsonSource = _a.geoJsonSource, tileJsonSource = _a.tileJsonSource, map = _a.map;

@@ -105,0 +105,0 @@ if (tileJsonSource && props.tileJsonSource) {

@@ -39,5 +39,5 @@ import * as React from 'react';

private featureClusterMap;
componentWillMount(): void;
UNSAFE_componentWillMount(): void;
componentWillUnmount(): void;
componentWillReceiveProps(nextProps: Props): void;
UNSAFE_componentWillReceiveProps(nextProps: Props): void;
private childrenChange;

@@ -44,0 +44,0 @@ private mapChange;

@@ -90,3 +90,3 @@ "use strict";

}
Cluster.prototype.componentWillMount = function () {
Cluster.prototype.UNSAFE_componentWillMount = function () {
var _a = this.props, children = _a.children, map = _a.map;

@@ -105,3 +105,3 @@ if (children) {

};
Cluster.prototype.componentWillReceiveProps = function (nextProps) {
Cluster.prototype.UNSAFE_componentWillReceiveProps = function (nextProps) {
var children = this.props.children;

@@ -108,0 +108,0 @@ if (children !== nextProps.children && nextProps.children) {

@@ -72,6 +72,6 @@ import * as React from 'react';

private unbind;
componentWillMount(): void;
UNSAFE_componentWillMount(): void;
componentWillUnmount(): void;
isGeoJSONSource: (source?: MapboxGL.GeoJSONSourceRaw | MapboxGL.VectorSource | MapboxGL.RasterSource | MapboxGL.RasterDemSource | MapboxGL.GeoJSONSource | MapboxGL.VideoSource | MapboxGL.ImageSource | MapboxGL.CanvasSource | undefined) => source is MapboxGL.GeoJSONSource;
componentWillReceiveProps(props: Props): void;
UNSAFE_componentWillReceiveProps(props: Props): void;
render(): null;

@@ -78,0 +78,0 @@ }

@@ -132,3 +132,3 @@ "use strict";

};
GeoJSONLayer.prototype.componentWillMount = function () {
GeoJSONLayer.prototype.UNSAFE_componentWillMount = function () {
var map = this.props.map;

@@ -146,3 +146,3 @@ this.initialize();

};
GeoJSONLayer.prototype.componentWillReceiveProps = function (props) {
GeoJSONLayer.prototype.UNSAFE_componentWillReceiveProps = function (props) {
var _this = this;

@@ -149,0 +149,0 @@ var _a = this.props, data = _a.data, before = _a.before, layerOptions = _a.layerOptions, map = _a.map;

@@ -23,3 +23,3 @@ "use strict";

}
Image.prototype.componentWillMount = function () {
Image.prototype.UNSAFE_componentWillMount = function () {
this.loadImage(this.props);

@@ -30,3 +30,3 @@ };

};
Image.prototype.componentWillReceiveProps = function (nextProps) {
Image.prototype.UNSAFE_componentWillReceiveProps = function (nextProps) {
var id = this.props.id;

@@ -33,0 +33,0 @@ if (nextProps.map !== this.props.map) {

@@ -27,3 +27,3 @@ import * as React from 'react';

onFeatureDragEnd: (evt: any) => void;
componentWillMount(): void;
UNSAFE_componentWillMount(): void;
componentWillUnmount(): void;

@@ -33,3 +33,3 @@ render(): JSX.Element;

setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<OwnProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
forceUpdate(callBack?: (() => void) | undefined): void;
forceUpdate(callback?: (() => void) | undefined): void;
readonly props: Readonly<OwnProps> & Readonly<{

@@ -59,3 +59,3 @@ children?: React.ReactNode;

onFeatureDragEnd: (evt: any) => void;
componentWillMount(): void;
UNSAFE_componentWillMount(): void;
componentWillUnmount(): void;

@@ -65,3 +65,3 @@ render(): JSX.Element;

setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<OwnProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
forceUpdate(callBack?: (() => void) | undefined): void;
forceUpdate(callback?: (() => void) | undefined): void;
readonly props: Readonly<OwnProps> & Readonly<{

@@ -68,0 +68,0 @@ children?: React.ReactNode;

@@ -176,3 +176,3 @@ "use strict";

}
EnhancedLayer.prototype.componentWillMount = function () {
EnhancedLayer.prototype.UNSAFE_componentWillMount = function () {
var map = this.props.map;

@@ -179,0 +179,0 @@ map.on('click', this.id, this.onClick);

@@ -53,7 +53,7 @@ import * as React from 'react';

private onStyleDataChange;
componentWillMount(): void;
UNSAFE_componentWillMount(): void;
componentWillUnmount(): void;
componentWillReceiveProps(props: Props): void;
UNSAFE_componentWillReceiveProps(props: Props): void;
getChildren: () => JSX.Element[];
render(): null;
}

@@ -145,3 +145,3 @@ "use strict";

}
Layer.prototype.componentWillMount = function () {
Layer.prototype.UNSAFE_componentWillMount = function () {
var map = this.props.map;

@@ -182,3 +182,3 @@ this.initialize();

};
Layer.prototype.componentWillReceiveProps = function (props) {
Layer.prototype.UNSAFE_componentWillReceiveProps = function (props) {
var _this = this;

@@ -185,0 +185,0 @@ var _a = this.props, paint = _a.paint, layout = _a.layout, before = _a.before, filter = _a.filter, id = _a.id, minZoom = _a.minZoom, maxZoom = _a.maxZoom;

@@ -98,3 +98,3 @@ import * as MapboxGl from 'mapbox-gl';

componentWillUnmount(): void;
componentWillReceiveProps(nextProps: Props & Events): null;
UNSAFE_componentWillReceiveProps(nextProps: Props & Events): null;
setRef: (x: HTMLElement | null) => void;

@@ -104,3 +104,3 @@ render(): JSX.Element;

setState<K extends "map" | "ready">(state: State | ((prevState: Readonly<State>, props: Readonly<Props & Events>) => State | Pick<State, K> | null) | Pick<State, K> | null, callback?: (() => void) | undefined): void;
forceUpdate(callBack?: (() => void) | undefined): void;
forceUpdate(callback?: (() => void) | undefined): void;
readonly props: Readonly<Props & Events> & Readonly<{

@@ -121,3 +121,3 @@ children?: React.ReactNode;

componentWillUnmount(): void;
componentWillReceiveProps(nextProps: Props & Events): null;
UNSAFE_componentWillReceiveProps(nextProps: Props & Events): null;
setRef: (x: HTMLElement | null) => void;

@@ -127,3 +127,3 @@ render(): JSX.Element;

setState<K extends "map" | "ready">(state: State | ((prevState: Readonly<State>, props: Readonly<Props & Events>) => State | Pick<State, K> | null) | Pick<State, K> | null, callback?: (() => void) | undefined): void;
forceUpdate(callBack?: (() => void) | undefined): void;
forceUpdate(callback?: (() => void) | undefined): void;
readonly props: Readonly<Props & Events> & Readonly<{

@@ -130,0 +130,0 @@ children?: React.ReactNode;

@@ -137,3 +137,3 @@ "use strict";

};
ReactMapboxGl.prototype.componentWillReceiveProps = function (nextProps) {
ReactMapboxGl.prototype.UNSAFE_componentWillReceiveProps = function (nextProps) {
var map = this.state.map;

@@ -140,0 +140,0 @@ if (!map) {

@@ -34,3 +34,3 @@ import * as React from 'react';

private havePropsChanged;
componentWillReceiveProps(nextProps: Props): void;
UNSAFE_componentWillReceiveProps(nextProps: Props): void;
componentWillUnmount(): void;

@@ -37,0 +37,0 @@ render(): JSX.Element;

@@ -63,3 +63,3 @@ "use strict";

};
ProjectedLayer.prototype.componentWillReceiveProps = function (nextProps) {
ProjectedLayer.prototype.UNSAFE_componentWillReceiveProps = function (nextProps) {
if (this.havePropsChanged(this.props, nextProps)) {

@@ -66,0 +66,0 @@ this.setState(overlays_1.overlayState(nextProps, this.props.map, this.container));

@@ -26,3 +26,3 @@ import * as React from 'react';

};
componentWillMount(): void;
UNSAFE_componentWillMount(): void;
componentWillUnmount(): void;

@@ -29,0 +29,0 @@ private setScale;

@@ -111,3 +111,3 @@ "use strict";

}
ScaleControl.prototype.componentWillMount = function () {
ScaleControl.prototype.UNSAFE_componentWillMount = function () {
this.setScale();

@@ -114,0 +114,0 @@ this.props.map.on('zoomend', this.setScale);

@@ -18,3 +18,3 @@ import * as React from 'react';

private onStyleDataChange;
componentWillMount(): void;
UNSAFE_componentWillMount(): void;
private initialize;

@@ -24,3 +24,3 @@ private onData;

componentWillUnmount(): void;
componentWillReceiveProps(props: Props): void;
UNSAFE_componentWillReceiveProps(props: Props): void;
render(): null;

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

@@ -73,3 +73,3 @@ "use strict";

}
Source.prototype.componentWillMount = function () {
Source.prototype.UNSAFE_componentWillMount = function () {
var map = this.props.map;

@@ -104,3 +104,3 @@ map.on('styledata', this.onStyleDataChange);

};
Source.prototype.componentWillReceiveProps = function (props) {
Source.prototype.UNSAFE_componentWillReceiveProps = function (props) {
var _a = this.props, geoJsonSource = _a.geoJsonSource, tileJsonSource = _a.tileJsonSource, map = _a.map;

@@ -107,0 +107,0 @@ if (tileJsonSource && props.tileJsonSource) {

{
"name": "react-mapbox-gl",
"version": "4.6.1",
"version": "4.6.2",
"description": "A React binding of mapbox-gl-js",

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

@@ -238,3 +238,3 @@ import * as React from 'react';

public componentWillMount() {
public UNSAFE_componentWillMount() {
const { map } = this.props;

@@ -263,3 +263,3 @@ this.initialize();

public componentWillReceiveProps(props: Props) {
public UNSAFE_componentWillReceiveProps(props: Props) {
const { data, before, layerOptions, map } = this.props;

@@ -266,0 +266,0 @@ const source = map.getSource(this.id);

@@ -241,3 +241,3 @@ import * as React from 'react';

public componentWillMount() {
public UNSAFE_componentWillMount() {
const { map } = this.props;

@@ -286,3 +286,3 @@

public componentWillReceiveProps(props: Props) {
public UNSAFE_componentWillReceiveProps(props: Props) {
const { paint, layout, before, filter, id, minZoom, maxZoom } = this.props;

@@ -289,0 +289,0 @@ const { map } = this.props;

@@ -31,3 +31,3 @@ import * as React from 'react';

public componentWillMount() {
public UNSAFE_componentWillMount() {
const { map } = this.props;

@@ -110,3 +110,3 @@

public componentWillReceiveProps(props: Props) {
public UNSAFE_componentWillReceiveProps(props: Props) {
const { geoJsonSource, tileJsonSource, map } = this.props;

@@ -113,0 +113,0 @@

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

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

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

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

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

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