-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add background image configuration to map component #197
Conversation
This depends on a change in the type library. Keeping this as draft, until those have been added |
92918cd
to
9dda5d2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see something weird. I didn't manage though to test this manually (tried with npm pack
and then installed it in the backend) so I guess @sergei-maertens has to do another review here.
9dda5d2
to
f332bca
Compare
src/context.ts
Outdated
@@ -48,6 +59,7 @@ export interface BuilderContextType { | |||
getDocumentTypes: () => Promise<Array<DocumentTypeOption>>; | |||
getConfidentialityLevels: () => Promise<SelectOption[]>; | |||
getAuthPlugins: () => Promise<AuthPluginOption[]>; | |||
getMapTileLayers: () => Promise<MapTileLayers[]>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
getMapTileLayers: () => Promise<MapTileLayers[]>; | |
getMapTileLayers: () => Promise<MapTileLayer[]>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've fixed this
f332bca
to
0c13e8b
Compare
}, | ||
modal: {noModal: true}, | ||
}, | ||
} as Meta<typeof Loader>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
} as Meta<typeof Loader>; | |
} satisfies Meta<typeof Loader>; |
this should be preferred since it doesn't just cast the type, it performs the proper type checks still :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah okay cool! Yeah that sounds a lot better 👌
0c13e8b
to
7013ba4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good to merge, and then bag it and tag it! 🚀
Part of open-formulieren/open-forms#2173
The map component now has background configuration. This changes the image which is used for the leaflet tile layer (the background of the map component)