Skip to content

Commit

Permalink
remove merge from gfi plugin config
Browse files Browse the repository at this point in the history
  • Loading branch information
jedi-of-the-sea committed Feb 17, 2025
1 parent 5dd1219 commit b0e7e58
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions packages/clients/dish/src/addPlugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import PolarPluginPins from '@polar/plugin-pins'
import PolarPluginScale from '@polar/plugin-scale'
import PolarPluginToast from '@polar/plugin-toast'
import PolarPluginZoom from '@polar/plugin-zoom'
import merge from 'lodash.merge'

import {
AddressSearchConfiguration,
Expand All @@ -36,8 +35,11 @@ import { DishGfiIntern, DishGfiExtern } from './plugins/Gfi'
import DishExportMap from './plugins/DishExportMap'
import { searchMethods } from './mapConfigurations/searchConfigParams'

const gfiConfig = (mode: keyof typeof MODE): Partial<GfiConfiguration> => {
const gfiConfig: Partial<GfiConfiguration> = {
const gfiConfig = (mode: keyof typeof MODE) => {
const gfiConfig: GfiConfiguration = {
displayComponent: true,
layoutTag: NineLayoutTag.TOP_LEFT,
layers: {},
coordinateSources: ['plugin/addressSearch/chosenAddress'],
gfiContentComponent: mode === MODE.EXTERN ? DishGfiExtern : DishGfiIntern,
}
Expand Down Expand Up @@ -139,16 +141,7 @@ export const addPlugins = (core, mode: keyof typeof MODE = 'EXTERN') => {
'plugin/layerChooser/activeMaskIds',
],
}),
PolarPluginGfi(
merge(
{},
{
displayComponent: true,
layoutTag: NineLayoutTag.TOP_LEFT,
},
gfiConfig(mode)
)
),
PolarPluginGfi(gfiConfig(mode)),
PolarPluginLoadingIndicator({
displayComponent: true,
layoutTag: NineLayoutTag.MIDDLE_MIDDLE,
Expand Down

0 comments on commit b0e7e58

Please sign in to comment.