Skip to content

Commit

Permalink
add map control buttons back (#2709)
Browse files Browse the repository at this point in the history
- [Bug] add map control buttons back 

Signed-off-by: Shan He <[email protected]>
  • Loading branch information
heshan0131 authored Oct 17, 2024
1 parent 97df4c9 commit a743a27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/demo-app/src/factories/map-control.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ CustomMapControlFactory.deps = [
];
function CustomMapControlFactory(EffectControl, EffectManager, ...deps) {
const MapControl = MapControlFactory(...deps);
const actionComponents = [...(MapControl.defaultProps?.actionComponents ?? []), EffectControl];
const actionComponents = [...(MapControl.defaultActionComponents ?? []), EffectControl];

const CustomMapControl = props => {
const showEffects = Boolean(props.mapControls?.effect?.active);
Expand Down

0 comments on commit a743a27

Please sign in to comment.