Package detail
ngx-mapbox-gl
A Angular binding of mapbox-gl-js
readme
changelog
Changelog
All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
13.0.0 (2025-06-16)
⚠ BREAKING CHANGES
- Now support only Angular 20
Features
- dependencies: update to angular 20 (c2bb04e)
Bug Fixes
- map: support number in addition to [number] for zoom, ptich, bearing (fix #433) (da7664a)
- update_version: fix release script on mac os (f0e6be6)
12.0.0 (2025-04-21)
⚠ BREAKING CHANGES
- markers-for-clusters: failbackPointIdKey => customPointIdKey
- Remove deprecated inputs
- Now support only mapbox >3.5
- Now support only Angular >19
- NgxMapboxGLModule removed
Features
- Support Zoneless mode (showcase app run in zoneless mode)
- Support Angular 19
- All components are now standalone
Bug Fixes
- markers-for-clusters: rename input to customPointIdKey (377b91f)
- showcase: fix custom-marker-icons example (e6d24b1)
- showcase: fix edit mode (77820ca)
- showcase: fix live-update-feature (b315bfc)
- showcase: update all examples (631c3ee)
12.0.0-beta.0 (2025-04-18)
⚠ BREAKING CHANGES
- Remove deprecated inputs
- Now support only mapbox >3.5
- Now support only Angular >19
- NgxMapboxGLModule removed
Features
- Support Zoneless mode
- Support Angular 19
- markers-for-cluster: add failbackPointIdKey (4ef70e3)
- move to mapbox-gl v3.11 (5753307)
- switch to standalone (42300b7)
Bug Fixes
- fix some eslint issues (fa7ed23)
- showcase: clean/refactor and maybe fix edit mode (1b21d7b)
- Move to input() (407a6ee)
11.0.1 (2024-08-19)
Bug Fixes
- update package peerDependencies (b096908)
11.0.0 (2024-08-18)
⚠ BREAKING CHANGES
- Updated to Angular 18
Features
10.0.0 (2023-06-13)
⚠ BREAKING CHANGES
- Updated to Angular 16
- map: Change mapLoad event to a MapboxEvent for consistency
Features
- map: add mapCreate event (2bf954f)
Bug Fixes
- adjust package json compat (ed3ab67)
- set baseApiUrl rather than assign config.API_URL which is now a getter (#395) (2078155)
9.1.0 (2022-08-06)
Features
- Upgrade mapbox-gl support to v2.9.2 (606a7eb)
9.0.0 (2022-07-27)
⚠ BREAKING CHANGES
- Remove ngx-mapbox-gl-geocoder
Update to Angular 14
Move to nx & Update to Angular 14 (301f0bf)
- remove ngx-mapbox-gl-geocoder (PR welcome) & e2e tests (for now) (53d2f1c)
8.0.0 (2022-06-11)
⚠ BREAKING CHANGES
- Update to Angular 13
build
7.1.2 (2021-10-08)
Bug Fixes
7.1.1 (2021-10-07)
Bug Fixes
7.1.0 (2021-08-13)
Features
7.0.1 (2021-06-24)
Bug Fixes
7.0.0 (2021-06-23)
⚠ BREAKING CHANGES
Bug Fixes
6.0.4 (2021-02-17)
6.0.3 (2021-02-09)
Bug Fixes
6.0.2 (2021-02-09)
Bug Fixes
6.0.1 (2021-02-03)
Bug Fixes
6.0.0 (2021-01-29)
⚠ BREAKING CHANGES
- Updating mapbox-gl from 1.1.0 to 2.0.1 may break existing code
- Dropped Angular 8 support
Features
- Update to mapbox-gl 2.0.1
- Add Angular 11 support
5.0.0 (2020-12-13)
⚠ BREAKING CHANGES
- mglDraggable: Remove marker support for mglDraggable (use draggable input instead)
- Remove undocumented resize API
- Updating mapbox-gl from 1.1.0 to 1.12.0 may cause breaking change
Features
- update to mapbox-gl 1.13.0 (a8b7eea)
- mglDraggable: remove marker support (7e14744)
- update to mapbox-gl 1.12.0 (#253) (eddbda7)
Bug Fixes
- draggable: fix incorrect use of takeUntil (f8a7698)
- Change many outputs to avoid confusion (fix #107) (7b50fd8)
showcase
- refactor whole app & add doc versionning (33bb369)
4.8.1 (2020-07-24)
Bug Fixes
- attempting to delete a custom control to the map if it was not actually added there (happens if there was an exception during markers initialization) #199 (503730b)
4.8.0 (2020-07-20)
Features
- add Angular 10 support (3976db7)
Bug Fixes
- showcase: a typo in 'Add custom localization for controls' example (cb7b3af)
4.7.1 (2020-07-20)
Features
Bug Fixes
- definition of NgxMapboxGLModule so it works with Angular 10 (9646f98)
- rjxs subscription leaks resulting in attempts to create sources multiple times (beddec1)
4.6.0 (2020-06-18)
Features
4.5.0 (2020-03-02)
Features
4.4.2 (2020-02-11)
Bug Fixes
4.4.1 (2020-02-09)
Bug Fixes
- markers-for-cluster: fix regression (0356a9c)
4.4.0 (2020-02-09)
Features
4.3.0 (2019-12-06)
Features
- add support for map controls localization (requires mapbox-gl >= 1.6.0) (c669619)
4.2.0 (2019-11-19)
Features
4.1.0 (2019-10-23)
Features
- add
clickToleranceas an Input for MapComponent #135 (#190) (055f90e) - allow using mapbox-gl >= 1.1.0 (80cdfab)
Bug Fixes
- make sure showcase works with TypeScript 3.5.3 (cbaa95c)
4.0.1 (2019-10-13)
Bug Fixes
- popup: actually remove the popup from the map when a "feature" is used as an anchor (89f4aa4)
4.0.0 (2019-10-11)
Bug Fixes
- controls: Fix control order when using custom controls alongside built-in controls (fix #75) (10612f0)
- geocoder: change property name for country option to countries (781adc4)
Features
- update to angular 8 & other deps (57f6d6e)
- update to mapbox-gl 1.1.0 (1043b4f)
- marker: Add ability to specify className (close #172) (f7602c2)
- popup: Add support for className (#111) (#161) (3b30c90)
- popup: Add support for maxWidth (#180) (04d910b)
Refactor
BREAKING CHANGES
- Update to angular 8. Drop support of Angular 7 Also drop support of rxjs < 6.5.0
- Since mapbox-gl 1.0, there's a new pricing model. If you use mapbox services, please check https://github.com/mapbox/mapbox-gl-js/releases/tag/v1.0.0 for more info
- marker: You may be affected by this change, if you use html markers with custom css.
3.3.0 (2019-07-03)
Bug Fixes
- image: Handle coordinate update correctly (close #139)
Features
- controls: added input for customAttributions to attribution-control directive (c93e118)
- map: support antialias option (close #148) (b03d8f8)
- map: support styleimagemissing event (056b61f)
- update mapbox-gl to 0.54.0 (fcc0a58)
3.2.0 (2019-06-08)
Bug Fixes
- map: Add safety check for MapService.mapInstance before attempting to remove (close #142) (cddeb2af)
Features
- expose MAPBOX_GEOCODER_API_KEY (close #152) (67be0b4)
- markers-for-cluster: new component markers-for-cluster (a5b97f6)
- geojson-source: expose getClusterExpansionZoom getClusterChildren getClusterLeaves functions (40bf0852)
Deprecate mgl-marker-cluster
3.1.0 (2019-04-07)
Bug Fixes
Features
- map: add bounds input (new as mapbox-gl 0.53.0) (157b28f)
- update to mapbox-gl 0.53.1 and fix compilation errors (#128) (ed6634c)
- marker: Add popupShown Input binding to marker.component (#113) (1b0fed8)
3.0.1 (2019-01-27)
Bug Fixes
- correct package.json (4a42008)
3.0.0 (2019-01-27)
Bug Fixes
- layer: use new interface MapLayerMouseEvent (1a5f369), closes #89
- map: add an additional setStyle() call (IE and Edge only) to prevent map loading issues on IE11 (see https://github.com/mapbox/mapbox-gl-js/issues/4821#issuecomment-358998674) (#87) (4aa72dc), closes /github.com/mapbox/mapbox-gl-js/issues/4821#issuecomment-358998674
- markerCluster: update change after data change (a71a79c), closes #71
build
Features
- update mapbox-gl to 0.52.0 (39a0f30)
BREAKING CHANGES
- Now support angular >= 7.2
2.3.2 (2018-12-17)
Bug Fixes
- layer: fix layer event not being binded (b7fbb89), closes #84
- map: fitBounds: handle fitBounds at init (d10ff55), closes #74
- map: fitScreenCoordinates: handle fitScreenCoordinates at init (1126410)
2.3.1 (2018-12-10)
2.3.0 (2018-12-09)
Bug Fixes
- geocoder: workaround mapbox-gl-geocoder result issue firing twice (857ab77), closes #59
- mglImage: re-add image when style change (99a5bb7), closes #76
Features
- Export control component, for custom control directives (#79) (458c3f7), closes #78
- update support to mapbox-gl 0.51 (2dddec8)
2.2.0 (2018-10-09)
Bug Fixes
Features
- update support to mapbox-gl 0.49 (f45d965)
2.1.1 (2018-09-09)
2.1.0 (2018-09-09)
Bug Fixes
Features
- update support to mapbox-gl 0.48 (063f67c)
- mglNavigation: add showCompass & showZoom inputs (b1428b0), closes #55
2.0.0 (2018-08-04)
Bug Fixes
- re-add sources and layers after style change (4c49629), closes #43
- popup: do not send open/close event when moving an opened popup (2b6f712), closes #48
Features
BREAKING CHANGES
- Update mapbox-gl to 0.47.0
- Deprecate mglDraggable on Marker (now supported by mapbox-gl directly)
2.0.0-beta.0 (2018-06-16)
Features
- full upgrade to angular 6 (& rxjs 6) (18577cf)
BREAKING CHANGES
- Now angular 6 compatible only
NgxMapboxGLModule.forRoot changed to NgxMapboxGLModule.withConfig
1.2.1-beta.0 (2018-06-16)
1.2.0 (2018-05-21)
Bug Fixes
Features
- geocoder: add searchInput (dfd1cd2), closes #37
- markerCluster: expose supercluster by Ouput load event (a87bd6f)
1.1.0 (2018-05-11)
Features
- update mapbox-gl to 0.45.0 (339562c)
- map: add wheel event (from mapbox-gl v0.45.0) (8daaebe)
- marker: add anchor input (new with mapbox-gl v0.45.0) (e4920ad)
- popup: add open event (from mapbox-gl v0.45.0) (c417d82)
- scaleControl: unit is now dynamic (new with mapbox-gl v0.45.0) (3d72ac0)
1.0.0 (2018-05-01)
Bug Fixes
- marker: remove line-height as it can incorrectly change the height (thus the position) of a marker (550f665)
Code Refactoring
- map: rename flyToOptions to movingOptions (5bd8982)
Features
BREAKING CHANGES
- map: Rename flyToOptions to movingOptions
1.0.0-rc.3 (2018-04-05)
Features
- markerCluster: expose getChildren, getLeaves, getClusterExpansionZoom methods (11a0604)
1.0.0-rc.2 (2018-03-18)
Bug Fixes
- geojsonSource: add missing input (#23) (a38d06e)
- update mapbox-gl to 0.44.1 (814fc3a)
- map: wait for map created before handling changes (87a5da9)
Features
- new control mglGeocoder
- public_api: Expose MapComponent (74d3886)
1.0.0-rc.1 (2018-02-11)
Bug Fixes
- popup: now easier to use (1ca82c1)
Features
- draggable: add drag event emitters
1.0.0-rc.0 (2018-01-28)
Bug Fixes
- draggable: works again (9ae98df)
- markerCluster: include custom supercluster version (6ad4526)
- custom control ignored a supplied position (3253776)
Features
1.0.0-beta.5 (2018-01-16)
1.0.0-beta.4 (2018-01-16)
Bug Fixes
- map: add display block :man_facepalming: (9f40d12), closes #11
- map: ensure layer are removed before source (9779693), closes #10
- corrected type definitons (853e4de)
build
- deps upgrade (2879c5d)
Features
- cluster: add clusterComponent! (1cb6daa)
Performance Improvements
- also buffer popup and images to remove (2534739)
BREAKING CHANGES
- Update to mapbox-gl 0.43.0
1.0.0-beta.3 (2017-12-18)
Bug Fixes
- add guard to ngOnDestroy of each components (311cbb9)
- use rxjs lettable operators (73530cd)
- image: add a loaded event (32c4557)
- map: implement fitBounds (0234881)
- map: wait for onStable before initializing mapbox-gl (ebc2fe9)
build
- update deps (9f42a60)
Performance Improvements
- map, layer: only listen observed event (57bd275)
BREAKING CHANGES
- rxjs >=5.5.0 is now required
- Now require angular 5 (sorry !)
1.0.0-beta.2 (2017-11-20)
Bug Fixes
- geojsonSource: protect onDestroy (ac8172e), closes #6
- image: addImage seems to need to wait for mapLoaded now (cd51115)
- layer: type is not optional (b9edaac), closes #4
- map: rename zoomChange and pitchChange events (0142f88)
- map: zoom/bearing/pitch inputs are now an array (0c19c5f), closes #2
Features
- update to mapbox-gl 0.42.0 (3ae818f)
BREAKING CHANGES
- map: zoom/bearing/pitch inputs are now an array. This allow to force input changes for theses inputs
- map: Rename zoomChange and pitchChange events to zoomEvt and pitchEvt, because the "Change" suffix allow incorrecty two-way binding.
1.0.0-beta.1 (2017-11-15)
Bug Fixes
1.0.0-beta.0 (2017-11-14)
Bug Fixes
- canvas: remove contextType (3ca702c)
- geojsonSource: adjust cluster input type (4ae0151)
- use AsyncSubject for internal load event (456013a)
- geojsonSource: fill data with empty FeatureCollection (a8df1cd)
- map: customMapboxApiUrl now correctly set API_URL (ef295a3)
- map: remove duplicate load event listener (c92da66)
- marker: set offset as optionnal (4f60ce1)
Features
- layer: add mouseMove event (45f99ff)
- emit map instance on load output (17e9fe2)
- map: add cursorStyle input (3848618)
- popup: add close output (7e93c5a)
BREAKING CHANGES
- MapComponent is no longer exposed in the package
- canvas: remove contextType
0.1.0-beta.0 (2017-10-29)
Features
- feature draggable directive + example (1166346)
0.1.0-alpha.2 (2017-10-19)
Bug Fixes
- map: run output event inside ngZone (66f2caf)
- sources: add a guard to ensure that the source is added before onChanges (64f3f97)
Features
- layer: add click/mouseEnter/mouseLeave Output (2dbabf4)
0.1.0-alpha.1 (2017-10-18)
Bug Fixes
- remove protractor-browser-logs from depenencies (52afa55)
0.1.0-alpha.0 (2017-10-18)
First release !