{"_id":"@mapbox/mapbox-gl-redux","_rev":"170-9709640b752fb226a0c03e76881b38ba","name":"@mapbox/mapbox-gl-redux","description":"Tools for building Redux applications with Mapbox GL JS","dist-tags":{"latest":"0.3.0"},"versions":{"0.1.0":{"name":"@mapbox/mapbox-gl-redux","version":"0.1.0","description":"Tools for building Redux applications with Mapbox GL JS","main":"dist/index.js","files":["dist"],"scripts":{"precommit":"lint-staged","test":"npm run lint && jest","lint":"eslint src test.js","prepublishOnly":"npm run build","build":"rm -rf dist && babel src -d dist"},"repository":{"type":"git","url":"git+https://github.com/mapbox/mapbox-gl-redux.git"},"author":{"name":"Mapbox"},"license":"BSD-2-Clause","bugs":{"url":"https://github.com/mapbox/mapbox-gl-redux/issues"},"babel":{"presets":["stage-0","es2015"],"plugins":["transform-object-rest-spread"]},"lint-staged":{"**/*.js":["eslint","prettier --single-quote --write","git add"]},"homepage":"https://github.com/mapbox/mapbox-gl-redux#readme","devDependencies":{"babel-cli":"^6.26.0","babel-eslint":"^8.0.0","babel-jest":"^21.0.2","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-preset-es2015":"^6.24.1","babel-preset-stage-0":"^6.24.1","eslint":"^4.6.1","eventemitter3":"^2.0.3","husky":"^0.14.3","jest-cli":"^21.1.0","lint-staged":"^4.1.3","prettier":"^1.7.0"},"gitHead":"435c286e6397ff0febb59a94b4558ffbc22a3ad1","_id":"@mapbox/mapbox-gl-redux@0.1.0","_npmVersion":"5.4.2","_nodeVersion":"8.2.1","_npmUser":{"name":"tristen","email":"tristen.brown@gmail.com"},"dist":{"integrity":"sha512-HfYFc6gnPc40854nHn0E/Z9F0oeWm3nOJ+VG4I5kxuWjmBDSX4JcO4tBVVEI41vqfdCAXEjFtbxo0uzRCqnkbw==","shasum":"0bbad9282478b22568ee4543c2e3f9dc259d5d89","tarball":"https://registry.npmjs.org/@mapbox/mapbox-gl-redux/-/mapbox-gl-redux-0.1.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGPQdvHtnR0WH7IPXauQGYTTvXIoo11BRfSGKBQmUGS+AiBPGZ/9pMqakEPqqb647rbNlmQaZqnpDbSkNj+T1h4dKA=="}]},"maintainers":[{"name":"tristen","email":"tristen.brown@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mapbox-gl-redux-0.1.0.tgz_1507061904123_0.1618204703554511"},"directories":{}},"0.2.0":{"name":"@mapbox/mapbox-gl-redux","version":"0.2.0","description":"Tools for building Redux applications with Mapbox GL JS","main":"dist/index.js","scripts":{"precommit":"lint-staged","test":"npm run lint && jest","lint":"eslint src test.js","prepublishOnly":"npm run build","build":"rm -rf dist && babel src -d dist"},"repository":{"type":"git","url":"git+https://github.com/mapbox/mapbox-gl-redux.git"},"author":{"name":"Mapbox"},"license":"BSD-2-Clause","bugs":{"url":"https://github.com/mapbox/mapbox-gl-redux/issues"},"babel":{"presets":["stage-0","es2015"],"plugins":["transform-object-rest-spread"]},"lint-staged":{"**/*.js":["eslint","prettier --single-quote --write","git add"]},"homepage":"https://github.com/mapbox/mapbox-gl-redux#readme","devDependencies":{"babel-cli":"^6.26.0","babel-eslint":"^8.0.0","babel-jest":"^21.0.2","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-preset-es2015":"^6.24.1","babel-preset-stage-0":"^6.24.1","eslint":"^4.6.1","eventemitter3":"^2.0.3","husky":"^0.14.3","jest-cli":"^21.1.0","lint-staged":"^4.1.3","prettier":"^1.7.0"},"gitHead":"a055a564d2c2b681e224f70dfd7f0296e412a581","_id":"@mapbox/mapbox-gl-redux@0.2.0","_npmVersion":"6.4.1","_nodeVersion":"8.16.0","_npmUser":{"name":"mapbox-npm","email":"accounts+npmjs@mapbox.com"},"dist":{"integrity":"sha512-rMNXpbTvM+Y/bxi0wxld/7C1PH2r+7GGZ9NXxmsZyGn9jgQ6zG0bjlGu72en8EGRnWDO8T9g+YA+WVW7uVif1g==","shasum":"002e36fbe68cd219e91e8f9cf609f9e938d1fdd7","tarball":"https://registry.npmjs.org/@mapbox/mapbox-gl-redux/-/mapbox-gl-redux-0.2.0.tgz","fileCount":5,"unpackedSize":14402,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc8BmVCRA9TVsSAnZWagAAyxUP/3PxyiWefqSXnB7t1UAP\nV4t5PnazT+pis2G7v2sfidKOYVAtKex77WDct/ZSPxhbLKIJku26Z0nnFaZg\nSghCYcIhRNuUSE596p1bcKEMm5nZt+Uur5RJyztmwc/QCxwQZ4mxa4yZc4XW\nRZnOd8RfJtr+lmcOiBKe3Oi/KYwfSoH2Afmrkn9YoDtOtUJIiDuT1PfWqpdO\n+kDv2a3rzlwZA0605C1ppMltUGJX9k0KXh8/OpNezRfwKzAENPZaqvHtwHUR\nHOcplIB6gdbPDSPPmiNcxmMxM1cSsglyJoxjmbvCyLvRCQHlIYuC6r5q12f3\ni3HawJld6YjIQIFtrz6PtUj2aG3Wm0Sd+bv9pPKBj5hfxa0qGDUj5lU0350B\niDc/COFA67rettAQcLyQADg/Z012Ss20ZUjtuPdysQS4T2a41V7cgCvqlims\nFvBKp3cG0P2VdBIY/eY/rPal5eufMuR9FCokne/4LMTFhhqkL/bHUAUgiOyY\nuY8i9DHNakCXGQljABbpBWTCpIFKMEsjaxlyvhlM2z0CctCYPsvh5y2PBhRU\n1E2FxepBvPVlH1PnGmqVMzt77bpmo9uo2Xz4yqDF3zDIkKT3bfC5QqmRJovX\nWhE3SYyEVZ+rRcO/4NC6CwVR42aSKlyCjrPA/RANKJpA+QQSUzBPiMOIw7Qc\nYrWB\r\n=wlAn\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHK5kX+5Llz1FA+u9F9lkpEpwpBJFXjz1kaYUmXkTffsAiAntXy74d2nOgCeHC/N1bGfWry7+37X9I2S7S3vDFg2hA=="}]},"maintainers":[{"email":"accounts@mapbox.com","name":"mapbox-admin"},{"email":"accounts+npm-mapbox-machine-user@mapbox.com","name":"mapbox-machine-user"},{"email":"accounts+npmjs@mapbox.com","name":"mapbox-npm"},{"email":"accounts+npmjs-01@mapbox.com","name":"mapbox-npm-01"},{"email":"accounts+npmjs-02@mapbox.com","name":"mapbox-npm-02"},{"email":"accounts+npmjs-03@mapbox.com","name":"mapbox-npm-03"},{"email":"accounts+npmjs-04@mapbox.com","name":"mapbox-npm-04"},{"email":"accounts+npmjs-05@mapbox.com","name":"mapbox-npm-05"},{"email":"accounts+npmjs-06@mapbox.com","name":"mapbox-npm-06"},{"email":"accounts+npmjs-07@mapbox.com","name":"mapbox-npm-07"},{"email":"accounts+npmjs-08@mapbox.com","name":"mapbox-npm-08"},{"email":"accounts+npmjs-09@mapbox.com","name":"mapbox-npm-09"},{"email":"accounts+npmjs-advanced-actions@mapbox.com","name":"mapbox-npm-advanced-actions"},{"email":"accounts+npmjs-npm-ci@mapbox.com","name":"mapbox-npm-ci"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mapbox-gl-redux_0.2.0_1559239060403_0.2651016650811482"},"_hasShrinkwrap":false},"0.3.0":{"name":"@mapbox/mapbox-gl-redux","version":"0.3.0","description":"Tools for building Redux applications with Mapbox GL JS","main":"dist/index.js","scripts":{"precommit":"lint-staged","test":"npm run lint && jest","lint":"eslint src test.js","prepublishOnly":"npm run build","build":"rm -rf dist && babel src -d dist"},"repository":{"type":"git","url":"git+https://github.com/mapbox/mapbox-gl-redux.git"},"author":{"name":"Mapbox"},"license":"BSD-2-Clause","bugs":{"url":"https://github.com/mapbox/mapbox-gl-redux/issues"},"babel":{"presets":["stage-0","es2015"],"plugins":["transform-object-rest-spread"]},"lint-staged":{"**/*.js":["eslint","prettier --single-quote --write","git add"]},"homepage":"https://github.com/mapbox/mapbox-gl-redux#readme","devDependencies":{"babel-cli":"^6.26.0","babel-eslint":"^8.0.0","babel-jest":"^21.0.2","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-preset-es2015":"^6.24.1","babel-preset-stage-0":"^6.24.1","eslint":"^4.6.1","eventemitter3":"^2.0.3","husky":"^0.14.3","jest-cli":"^21.1.0","lint-staged":"^4.1.3","prettier":"^1.7.0"},"gitHead":"0571cfecdd971544af6ad3e99aff2977235e8a84","_id":"@mapbox/mapbox-gl-redux@0.3.0","_nodeVersion":"15.5.1","_npmVersion":"7.3.0","dist":{"integrity":"sha512-eM2BnNpY9YiBpHmU0TkrT2uEFokT4ON6wchV3g+Jxb7ZK/JFUJFqNsjvzTBBpTjJjSSbeGsP8z3PvesXAZ6V8A==","shasum":"4759c912b6e365d35bb42b599003621f8ff67169","tarball":"https://registry.npmjs.org/@mapbox/mapbox-gl-redux/-/mapbox-gl-redux-0.3.0.tgz","fileCount":5,"unpackedSize":14633,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2QkqCRA9TVsSAnZWagAA8QMP/A9S9QLV9twfzlcWquhn\n7fnIukA5ACNSU2hlQgYKybduDM4bLRZ1FfAV7oaXzHHsYOJ02OoMTlO2a4FX\nZmL3cs1timUsYHGYCkw24h3Ei2BODRR2VoxMnBU94KGa5GV3JrWZF99XGtBr\nqyrFtsQVUE3Nz/FP4GhcAvQtrHnRf/az4kZhsFLx4UIh3xHSVGmIOjwoDVex\naj75dlMZrF2iegxwQeo9jSTGs/wPZmsnaNBWA28RK2qkfsHb/X9EeFgPIyt/\nBgzb3AU/UD3bgWYcpaR9qUXKeCLhQvCuwFzm9KH+uVFoto1OD1Cuq/gH6C1p\nCdbn0R9EhjL5eHcbiPRwmAKjE8xI4XCaGoWABflGbnKxOHc8tq5GdunOQU2V\nTcFQNVKEijnpArZxTu7dA7GYDM4vTUI9+mUD4IVhdA3UffaThtrZWsJPC0So\n3Y9fcjoAt/YTxCVMagmDmq7ZTwGWf7K9k8e4QDhhifkFmwfQ2dScDiPAtmHo\nq/EjYS425xUIrdTjNHY9LyCe6wwW+VLEMFkTqTLqoThpIwhu3zEnmtykYhpW\nL6V+BGB50s5E/LKAgo2FpvSPPFPFL6pX8/pb6H/EQ0pnbRNt10kiXK6/UPwM\nNQU+O2C3/K6Ff8D7IgXhl2cnJf1kkBW5H9XBbWDE/UElPQk362uNCOmREnMD\nttVN\r\n=nm+z\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHTV+jPVq0jnXKKGXLCpJq8AyNdotmy7zVrpAEsi4wfKAiBPskJ+5rv46YLwK2H7ykyLmQWGb5afIaXeEi/HyZMoYQ=="}]},"_npmUser":{"name":"mapbox-npm-03","email":"accounts+npmjs-03@mapbox.com"},"directories":{},"maintainers":[{"name":"mapbox-npm-01","email":"accounts+npmjs-01@mapbox.com"},{"name":"mapbox-npm-02","email":"accounts+npmjs-02@mapbox.com"},{"name":"mapbox-npm-07","email":"accounts+npmjs-07@mapbox.com"},{"name":"mapbox-npm-03","email":"accounts+npmjs-03@mapbox.com"},{"name":"mapbox-npm-04","email":"accounts+npmjs-04@mapbox.com"},{"name":"mapbox-npm-09","email":"accounts+npmjs-09@mapbox.com"},{"name":"mapbox-npm-05","email":"accounts+npmjs-05@mapbox.com"},{"name":"mapbox-npm-06","email":"accounts+npmjs-06@mapbox.com"},{"name":"mapbox-npm-08","email":"accounts+npmjs-08@mapbox.com"},{"name":"mapbox-npm-advanced-actions","email":"accounts+npmjs-advanced-actions@mapbox.com"},{"name":"mapbox-npm-ci","email":"accounts+npmjs-npm-ci@mapbox.com"},{"name":"mapbox-npm","email":"accounts+npmjs@mapbox.com"},{"name":"mapbox-admin","email":"accounts@mapbox.com"},{"name":"mapbox-machine-user","email":"accounts+npm-mapbox-machine-user@mapbox.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mapbox-gl-redux_0.3.0_1635352347978_0.3407130447093871"},"_hasShrinkwrap":false}},"readme":"@mapbox/mapbox-gl-redux\n---\n\nTools for building Redux applications with Mapbox GL JS\n\n[![Build Status](https://travis-ci.com/mapbox/mapbox-gl-redux.svg?token=YkkMPyN1R9p9yTUwpzb5&branch=master)](https://travis-ci.com/mapbox/mapbox-gl-redux)\n\n---\n\nAdd middleware to your Redux store and a control to your Mapbox GL JS map to\nsync your application state with the map's internally managed state, while\nmaintaining clean one-way data-flow.\n\n## API\n\n- `ReduxMapControl`: Add this to the Mapbox GL JS map. It subscribes to map\nevents and dispatches corresponding Redux actions.\n- `mapMiddleware`: Add this to the Redux store. When `MapActionCreators`\nare used, mapMiddleware will translate those actions into method invocations on\nthe map.\n- `MapActionCreators`: Use these to programmatically change the map's state.\n- `bindMapActionCreators`: Returns a set of `MapActionCreators` scoped to a\nspecific map.\n- `MapActionTypes`: Use these in your reducer to identify actions triggered by\nmap events.\n\n## Usage\n\nLet's say you have a button to zoom out and a display of the map's zoom level.\nWhen you click the zoom out button, the data flow will look like this:\n\n- A click handler invokes `MapActionCreators.zoomOut()` to create a zoomOut\naction.\n- `mapMiddleware` detects the zoomOut action and tells the map to zoom out.\n- While the map zooms, it fires 'zoom' events that `ReduxMapControl` converts\nto actions.\n- Your reducer hears of these 'zoom' actions and updates the displayed zoom\nlevel accordingly.\n\nSo: `UI -> click -> action -> map -> map event -> action -> reducer -> UI`\n\nThe `MapActionCreators` correspond to Mapbox GL JS methods, with a few special \ncases. You can use them with the same function signature documented for the GL \nJS methods.\n\nThe `MapActionTypes` correspond to Mapbox GL JS events, with a few special \ncases. Actions of these types will include the following properties:\n\n- `map`: Use this to gather information about the map, e.g. on \n`MapActionTypes.zoom`. You probably want to update your zoom state with the \nvalue from `map.getZoom()`.\n- `mapId`: You'll want to ignore the action if it doesn't pertain to your map.\n- `event`: The Mapbox GL JS map event type.\n- `eventData`: The Mapbox GL JS map event data.\n- `type`: The action type.\n\n### `MapActionCreators`\n\nThese action creators correspond directly with Mapbox GL JS methods:\n\n- `setCenter`\n- `panBy`\n- `panTo`\n- `setZoom`\n- `zoomTo`\n- `zoomOut`\n- `zoomIn`\n- `setBearing`\n- `rotateTo`\n- `resetNorth`\n- `snapToNorth`\n- `setPitch`\n- `fitBounds`\n- `jumpTo`\n- `flyTo`\n- `easeTo`\n- `stop`\n- `setProjection`\n\n### Special actions\n\nThere are a few special action creators that do not directly correspond to\nMapbox GL JS map methods.\n\n#### `sync`\n\nDispatch a `MapActionCreators.sync(`) action at any time to give your reducer \nan opportunity to sync up with map state.\n\nWhen the middleware detects this action it dispatches a `MapActionTypes.sync`\naction that you can use in your reducer.\n\n#### `setShowCollisionBoxes`\n\nDispatch `MapActionCreators.setShowCollisionBoxes(true)` to turn on collision \nboxes, or `MapActionCreators.setShowCollisionBoxes(false)` to turn them off.\n\nAfter the middleware has adjusted the map's setting, it dispatches a \n`MapActionTypes.setShowCollisionBoxes` action that you can use in your reducer.\n\n#### `setShowTileBoundaries`\n\nDispatch `MapActionCreators.setShowTileBoundaries(true)` to turn on collision \nboxes, or `MapActionCreators.setShowTileBoundaries(false)` to turn them off.\n\nAfter the middleware has adjusted the map's setting, it dispatches a \n`MapActionTypes.setShowTileBoundaries` action that you can use in your reducer.\n\n\n### `MapActionTypes`\n\nThese action types correspond directly with Mapbox GL JS events:\n\n- `move`\n- `movestart`\n- `moveend`\n- `zoom`\n- `zoomstart`\n- `zoomend`\n- `rotate`\n- `rotatestart`\n- `rotateend`\n- `pitch`\n- `load`\n\nThese ones correspond with the special action creators described above:\n\n- `sync`\n- `setShowTileBoundaries`\n- `setShowCollisionBoxes`\n","maintainers":[{"email":"yannick.meeus+npm+production+ci@mapbox.com","name":"mbx-npm-ci-production"},{"email":"yannick.meeus+npm+staging+ci@mapbox.com","name":"mbx-npm-ci-staging"},{"email":"yannick.meeus+npm+prod+advanced+actions@mapbox.com","name":"mbx-npm-advanced-actions-production"},{"email":"yannick.meeus+npm+staging+advanced+actions@mapbox.com","name":"mbx-npm-advanced-actions-staging"},{"email":"yannick.meeus+npm+prod+09@mapbox.com","name":"mbx-npm-09-production"},{"email":"yannick.meeus+npm+prod+08@mapbox.com","name":"mbx-npm-08-production"},{"email":"yannick.meeus+npm+prod+07@mapbox.com","name":"mbx-npm-07-production"},{"email":"yannick.meeus+npm+prod+06@mapbox.com","name":"mbx-npm-06-production"},{"email":"yannick.meeus+npm+prod+05@mapbox.com","name":"mbx-npm-05-production"},{"email":"yannick.meeus+npm+prod+04@mapbox.com","name":"mbx-npm-04-production"},{"email":"yannick.meeus+npm+prod+03@mapbox.com","name":"mbx-npm-03-production"},{"email":"yannick.meeus+npm+prod+02@mapbox.com","name":"mbx-npm-02-production"},{"email":"yannick.meeus+npm+prod+01@mapbox.com","name":"mbx-npm-01-production"},{"email":"yannick.meeus@mapbox.com","name":"mbx-npm-02-staging"},{"email":"accounts+npmjs-01@mapbox.com","name":"mapbox-npm-01"},{"email":"accounts+npmjs-02@mapbox.com","name":"mapbox-npm-02"},{"email":"accounts+npmjs-07@mapbox.com","name":"mapbox-npm-07"},{"email":"accounts+npmjs-03@mapbox.com","name":"mapbox-npm-03"},{"email":"accounts+npmjs-04@mapbox.com","name":"mapbox-npm-04"},{"email":"accounts+npmjs-09@mapbox.com","name":"mapbox-npm-09"},{"email":"accounts+npmjs-05@mapbox.com","name":"mapbox-npm-05"},{"email":"accounts+npmjs-06@mapbox.com","name":"mapbox-npm-06"},{"email":"accounts+npmjs-08@mapbox.com","name":"mapbox-npm-08"},{"email":"accounts+npmjs-advanced-actions@mapbox.com","name":"mapbox-npm-advanced-actions"},{"email":"accounts+npmjs-npm-ci@mapbox.com","name":"mapbox-npm-ci"},{"email":"accounts+npmjs@mapbox.com","name":"mapbox-npm"},{"email":"accounts@mapbox.com","name":"mapbox-admin"},{"email":"accounts+npm-mapbox-machine-user@mapbox.com","name":"mapbox-machine-user"}],"time":{"modified":"2023-01-12T12:43:07.751Z","created":"2017-10-03T20:18:25.170Z","0.1.0":"2017-10-03T20:18:25.170Z","0.2.0":"2019-05-30T17:57:40.702Z","0.3.0":"2021-10-27T16:32:28.187Z"},"homepage":"https://github.com/mapbox/mapbox-gl-redux#readme","repository":{"type":"git","url":"git+https://github.com/mapbox/mapbox-gl-redux.git"},"author":{"name":"Mapbox"},"bugs":{"url":"https://github.com/mapbox/mapbox-gl-redux/issues"},"license":"BSD-2-Clause","readmeFilename":"README.md"}