Skip to content

Commit

Permalink
Merge pull request #117 from Dataport/feature/meldemichel-address-sea…
Browse files Browse the repository at this point in the history
…rch-single

Add AddressSearch and ReverseGeocoder to 'SINGLE' mode of meldemichel
  • Loading branch information
dopenguin authored Mar 5, 2024
2 parents d6d3f9d + 7875ec0 commit 868fa97
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
4 changes: 4 additions & 0 deletions packages/clients/meldemichel/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## unpublished

- Feature: Add `@polar/plugin-address-search` and `@polar/plugin-reverse-geocoder` to mode `SINGLE`.

## 1.0.0-beta.5

- Fix: Add missing API.md change. No further changes to previous version.
Expand Down
13 changes: 6 additions & 7 deletions packages/clients/meldemichel/src/addPlugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,12 @@ export const addPlugins = (core, mode: keyof typeof MODE) => {

core.addPlugins(
[
mode !== MODE.SINGLE &&
AddressSearch({
displayComponent: true,
layoutTag: NineLayoutTag.TOP_LEFT,
addLoading: 'plugin/loadingIndicator/addLoadingKey',
removeLoading: 'plugin/loadingIndicator/removeLoadingKey',
}),
AddressSearch({
displayComponent: mode !== MODE.SINGLE,
layoutTag: NineLayoutTag.TOP_LEFT,
addLoading: 'plugin/loadingIndicator/addLoadingKey',
removeLoading: 'plugin/loadingIndicator/removeLoadingKey',
}),
Pins({
displayComponent: true,
appearOnClick: { show: true, atZoomLevel: 0 },
Expand Down
2 changes: 2 additions & 0 deletions packages/clients/meldemichel/src/mapConfigurations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -248,11 +248,13 @@ const mapConfigurations: Record<
}),
[MODE.SINGLE]: () => ({
...commonMapConfiguration,
addressSearch,
layers: commonLayers,
attributions: {
...commonAttributions,
},
pins: commonPins,
reverseGeocoder,
}),
}

Expand Down

0 comments on commit 868fa97

Please sign in to comment.