Skip to content

Commit

Permalink
Fix for custom basemap styles not loading
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Krebs <[email protected]>
  • Loading branch information
akre54 committed Apr 19, 2024
1 parent 40ac449 commit 741d01a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/src/modal-container.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ export default function ModalContainerFactory(
onConfirm: this._onAddCustomMapStyle,
confirmButton: {
large: true,
disabled: !mapStyle.inputStyle.style,
disabled: !mapStyle.inputStyle.url,
children: 'modal.button.addStyle'
}
};
Expand Down
2 changes: 1 addition & 1 deletion src/components/src/modals/add-map-style-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ function AddMapStyleModalFactory() {
<InputLight
type="text"
value={inputStyle.url || ''}
onChange={({target: {value}}) => this.props.inputMapStyle({url: value})}
onChange={({target: {value}}) => this.props.inputMapStyle({url: value, id: 'Custom Style' })}
placeholder="e.g. https://basemaps.cartocdn.com/gl/positron-gl-style/style.json"
/>
</StyledModalSection>
Expand Down

0 comments on commit 741d01a

Please sign in to comment.