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

react-map-gl-geocoder

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-map-gl-geocoder - npm Package Compare versions

Comparing version 1.6.0 to 1.6.1

42

dist/index.js

@@ -114,7 +114,3 @@ 'use strict';

}, options));
_this.geocoder.on('clear', _this.handleClear);
_this.geocoder.on('loading', _this.handleLoading);
_this.geocoder.on('results', _this.handleResults);
_this.geocoder.on('result', _this.handleResult);
_this.geocoder.on('error', _this.handleError);
_this.subscribeEvents();

@@ -140,2 +136,18 @@ if (containerNode) {

return containerRef && containerRef.current || null;
}, _this.subscribeEvents = function () {
_this.geocoder.on('clear', _this.handleClear);
_this.geocoder.on('loading', _this.handleLoading);
_this.geocoder.on('results', _this.handleResults);
_this.geocoder.on('result', _this.handleResult);
_this.geocoder.on('error', _this.handleError);
}, _this.unsubscribeEvents = function () {
_this.geocoder.off('clear', _this.handleClear);
_this.geocoder.off('loading', _this.handleLoading);
_this.geocoder.off('results', _this.handleResults);
_this.geocoder.off('result', _this.handleResult);
_this.geocoder.off('error', _this.handleError);
}, _this.removeGeocoder = function () {
_this.unsubscribeEvents();
_this.getMapboxMap().removeControl(_this.geocoder);
_this.geocoder = null;
}, _this.handleClear = function () {

@@ -215,11 +227,3 @@ _this.props.onClear();

value: function componentWillUnmount() {
var mapboxMap = this.getMapboxMap();
if (mapboxMap) {
mapboxMap.removeControl(this.geocoder);
}
if (this.geocoder) {
this.geocoder = null;
}
this.removeGeocoder();
}

@@ -229,8 +233,4 @@ }, {

value: function componentDidUpdate() {
var mapboxMap = this.getMapboxMap();
if (this.geocoder) {
mapboxMap.removeControl(this.geocoder);
this.initializeGeocoder();
}
this.removeGeocoder();
this.initializeGeocoder();
}

@@ -296,2 +296,2 @@ }, {

exports.default = Geocoder;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ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LmZ1bmMsXG4gICAgcG9zaXRpb246IFByb3BUeXBlcy5vbmVPZihWQUxJRF9QT1NJVElPTlMpLFxuICAgIG9uSW5pdDogUHJvcFR5cGVzLmZ1bmMsXG4gICAgb25DbGVhcjogUHJvcFR5cGVzLmZ1bmMsXG4gICAgb25Mb2FkaW5nOiBQcm9wVHlwZXMuZnVuYyxcbiAgICBvblJlc3VsdHM6IFByb3BUeXBlcy5mdW5jLFxuICAgIG9uUmVzdWx0OiBQcm9wVHlwZXMuZnVuYyxcbiAgICBvbkVycm9yOiBQcm9wVHlwZXMuZnVuYyxcbiAgICBvcHRpb25zOiBQcm9wVHlwZXMub2JqZWN0IC8vIGRlcHJlY2F0ZWQgYW5kIHdpbGwgYmUgcmVtb3ZlZCBpbiB2MlxuICB9XG5cbiAgc3RhdGljIGRlZmF1bHRQcm9wcyA9IHtcbiAgICBtYXBib3hBcGlBY2Nlc3NUb2tlbjogZ2V0QWNjZXNzVG9rZW4oKSxcbiAgICB6b29tOiAxNixcbiAgICBmbHlUbzogdHJ1ZSxcbiAgICBwbGFjZWhvbGRlcjogJ1NlYXJjaCcsXG4gICAgdHJhY2tQcm94aW1pdHk6IGZhbHNlLFxuICAgIG1pbkxlbmd0aDogMixcbiAgICBsaW1pdDogNSxcbiAgICBwb3NpdGlvbjogJ3RvcC1yaWdodCcsXG4gICAgb25Jbml0OiAoKSA9PiB7fSxcbiAgICBvbkNsZWFyOiAoKSA9PiB7fSxcbiAgICBvbkxvYWRpbmc6ICgpID0+IHt9LFxuICAgIG9uUmVzdWx0czogKCkgPT4ge30sXG4gICAgb25SZXN1bHQ6ICgpID0+IHt9LFxuICAgIG9uRXJyb3I6ICgpID0+IHt9XG4gIH1cbn1cblxuZXhwb3J0IGRlZmF1bHQgR2VvY29kZXJcbiJdfQ==
{
"name": "react-map-gl-geocoder",
"version": "1.6.0",
"version": "1.6.1",
"description": "React wrapper for mapbox-gl-geocoder for use with react-map-gl",

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

@@ -36,20 +36,8 @@ import '@mapbox/mapbox-gl-geocoder/dist/mapbox-gl-geocoder.css'

componentWillUnmount() {
const mapboxMap = this.getMapboxMap()
if (mapboxMap) {
mapboxMap.removeControl(this.geocoder)
}
if (this.geocoder) {
this.geocoder = null
}
this.removeGeocoder()
}
componentDidUpdate() {
const mapboxMap = this.getMapboxMap()
if (this.geocoder) {
mapboxMap.removeControl(this.geocoder)
this.initializeGeocoder()
}
this.removeGeocoder()
this.initializeGeocoder()
}

@@ -97,7 +85,3 @@

})
this.geocoder.on('clear', this.handleClear)
this.geocoder.on('loading', this.handleLoading)
this.geocoder.on('results', this.handleResults)
this.geocoder.on('result', this.handleResult)
this.geocoder.on('error', this.handleError)
this.subscribeEvents()

@@ -125,2 +109,24 @@ if (containerNode) {

subscribeEvents = () => {
this.geocoder.on('clear', this.handleClear)
this.geocoder.on('loading', this.handleLoading)
this.geocoder.on('results', this.handleResults)
this.geocoder.on('result', this.handleResult)
this.geocoder.on('error', this.handleError)
}
unsubscribeEvents = () => {
this.geocoder.off('clear', this.handleClear)
this.geocoder.off('loading', this.handleLoading)
this.geocoder.off('results', this.handleResults)
this.geocoder.off('result', this.handleResult)
this.geocoder.off('error', this.handleError)
}
removeGeocoder = () => {
this.unsubscribeEvents()
this.getMapboxMap().removeControl(this.geocoder)
this.geocoder = null
}
handleClear = () => {

@@ -127,0 +133,0 @@ this.props.onClear()

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