Skip to content

Commit

Permalink
✨ [open-formulieren/open-forms#2173] Using the component defined map …
Browse files Browse the repository at this point in the history
…background
  • Loading branch information
robinmolen committed Nov 25, 2024
1 parent 5ca3c4b commit 205cdef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/Map/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ const LeaftletMap = ({
defaultCenter = DEFAULT_LAT_LNG,
defaultZoomLevel = DEFAULT_ZOOM,
disabled = false,
url = TILE_LAYER_RD.url,
}) => {
const intl = useIntl();
const defaultCoordinates = useDefaultCoordinates();
Expand Down Expand Up @@ -99,7 +100,7 @@ const LeaftletMap = ({
duration: 3000,
}}
>
<TileLayer {...TILE_LAYER_RD} />
<TileLayer {...TILE_LAYER_RD} url={url} />
{coordinates ? (
<>
<MapView coordinates={coordinates} />
Expand Down
1 change: 1 addition & 0 deletions src/formio/components/Map.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ export default class Map extends Field {
onMarkerSet={this.onMarkerSet.bind(this)}
defaultCenter={defaultCenter}
defaultZoomLevel={zoom || DEFAULT_ZOOM}
url={this.component.url}
/>
</ConfigContext.Provider>
</IntlProvider>
Expand Down

0 comments on commit 205cdef

Please sign in to comment.