New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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

to
1.5.5

13

dist/index.js

@@ -39,2 +39,4 @@ 'use strict';

var VALID_POSITIONS = ['top-left', 'top-right', 'bottom-left', 'bottom-right'];
function fitBounds(bounds, viewport) {

@@ -177,3 +179,4 @@ return new _viewportMercatorProject2.default(viewport).fitBounds(bounds);

options = _props.options,
onInit = _props.onInit;
onInit = _props.onInit,
position = _props.position;

@@ -203,3 +206,5 @@

mapRef.current.getMap().addControl(this.geocoder);
mapRef.current.getMap().addControl(this.geocoder, VALID_POSITIONS.find(function (_position) {
return position === _position;
}));

@@ -240,2 +245,3 @@ onInit(this.geocoder);

localGeocoder: _propTypes2.default.func,
position: _propTypes2.default.oneOf(VALID_POSITIONS),
onInit: _propTypes2.default.func,

@@ -257,2 +263,3 @@ onClear: _propTypes2.default.func,

limit: 5,
position: 'top-right',
onInit: function onInit() {},

@@ -266,2 +273,2 @@ onClear: function onClear() {},

exports.default = Geocoder;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9pbmRleC5qcyJdLCJuYW1lcyI6WyJmaXRCb3VuZHMiLCJib3VuZHMiLCJ2aWV3cG9ydCIsIldlYk1lcmNhdG9yVmlld3BvcnQiLCJnZXRBY2Nlc3NUb2tlbiIsImFjY2Vzc1Rva2VuIiwid2luZG93IiwibG9jYXRpb24iLCJtYXRjaCIsInNlYXJjaCIsInByb2Nlc3MiLCJlbnYiLCJNYXBib3hBY2Nlc3NUb2tlbiIsIkdlb2NvZGVyIiwiaGFuZGxlQ2xlYXIiLCJwcm9wcyIsIm9uQ2xlYXIiLCJoYW5kbGVMb2FkaW5nIiwiZXZ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lcy5mdW5jLFxuICAgIG9uUmVzdWx0czogUHJvcFR5cGVzLmZ1bmMsXG4gICAgb25SZXN1bHQ6IFByb3BUeXBlcy5mdW5jLFxuICAgIG9uRXJyb3I6IFByb3BUeXBlcy5mdW5jLFxuICAgIG9wdGlvbnM6IFByb3BUeXBlcy5vYmplY3QgLy8gZGVwcmVjYXRlZCBhbmQgd2lsbCBiZSByZW1vdmVkIGluIHYyXG4gIH1cblxuICBzdGF0aWMgZGVmYXVsdFByb3BzID0ge1xuICAgIG1hcGJveEFwaUFjY2Vzc1Rva2VuOiBnZXRBY2Nlc3NUb2tlbigpLFxuICAgIHpvb206IDE2LFxuICAgIGZseVRvOiB0cnVlLFxuICAgIHBsYWNlaG9sZGVyOiAnU2VhcmNoJyxcbiAgICB0cmFja1Byb3hpbWl0eTogZmFsc2UsXG4gICAgbWluTGVuZ3RoOiAyLFxuICAgIGxpbWl0OiA1LFxuICAgIHBvc2l0aW9uOiAndG9wLXJpZ2h0JyxcbiAgICBvbkluaXQ6ICgpID0+IHt9LFxuICAgIG9uQ2xlYXI6ICgpID0+IHt9LFxuICAgIG9uTG9hZGluZzogKCkgPT4ge30sXG4gICAgb25SZXN1bHRzOiAoKSA9PiB7fSxcbiAgICBvblJlc3VsdDogKCkgPT4ge30sXG4gICAgb25FcnJvcjogKCkgPT4ge31cbiAgfVxufVxuXG5leHBvcnQgZGVmYXVsdCBHZW9jb2RlclxuIl19
{
"name": "react-map-gl-geocoder",
"version": "1.4.5",
"version": "1.5.5",
"description": "React wrapper for mapbox-gl-geocoder for use with react-map-gl",

@@ -30,2 +30,3 @@ "main": "dist/index.js",

"@mapbox/mapbox-gl-geocoder": "^2.3.0",
"prop-types": "^15.6.2",
"viewport-mercator-project": "^5.3.0"

@@ -32,0 +33,0 @@ },

@@ -5,2 +5,5 @@ # react-map-gl-geocoder

[![NPM](https://img.shields.io/npm/v/react-map-gl-geocoder.svg)](https://www.npmjs.com/package/react-map-gl-geocoder)
## Demo

@@ -49,2 +52,3 @@

- `localGeocoder` {Function?} A function accepting the query string which performs local geocoding to supplement results from the Mapbox Geocoding API. Expected to return an Array of GeoJSON Features in the [Carmen GeoJSON](https://github.com/mapbox/carmen/blob/master/carmen-geojson.md) format.
- `position` {String} Position on the map to which the geocoder control will be added. Valid values are `"top-left"`, `"top-right"`, `"bottom-left"`, and `"bottom-right"`. (optional, default `"top-right"`)
- `onInit` {Function} Is passed Mapbox geocoder instance as param and is executed after Mapbox geocoder is initialized

@@ -51,0 +55,0 @@ - `onClear` {Function} Executed when the input is cleared

@@ -8,2 +8,4 @@ import '@mapbox/mapbox-gl-geocoder/dist/mapbox-gl-geocoder.css'

const VALID_POSITIONS = ['top-left', 'top-right', 'bottom-left', 'bottom-right']
function fitBounds(bounds, viewport) {

@@ -63,3 +65,4 @@ return new WebMercatorViewport(viewport).fitBounds(bounds)

options,
onInit
onInit,
position
} = this.props

@@ -90,3 +93,3 @@

mapRef.current.getMap().addControl(this.geocoder)
mapRef.current.getMap().addControl(this.geocoder, VALID_POSITIONS.find((_position) => position === _position))

@@ -185,2 +188,3 @@ onInit(this.geocoder)

localGeocoder: PropTypes.func,
position: PropTypes.oneOf(VALID_POSITIONS),
onInit: PropTypes.func,

@@ -203,2 +207,3 @@ onClear: PropTypes.func,

limit: 5,
position: 'top-right',
onInit: () => {},

@@ -205,0 +210,0 @@ onClear: () => {},

Sorry, the diff of this file is not supported yet