-
Notifications
You must be signed in to change notification settings - Fork 364
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
Fix sharing when using initfile #7270
base: main
Are you sure you want to change the base?
Conversation
Hi @glughi, thanks for the PR. We are keen to know how you use the init file from URL feature. Internally, we were thinking of introducing some controls around how this feature works, because it is not ideal for all maps to allow others to modify the catalog. So maybe we could restrict it by default or disallow init files from URLs from modifying existing catalog items. Any insights on your specific use case for this feature could help us decide. Is there a reason you can't have the init URL be part of your config.json? Cheers |
Hi @na9da, we make great use of TerriaJS ability to use different catalogs in addition to the default ones (added through the config.js file), defining them via URL. This way, we don't have just one gigantic catalog, which could be inconvenient for users, but in addition to the standard catalogs, we have some thematic catalogs. For example, the Emilia-Romagna Region has its standard catalog, but it has added one specific for the 2023 flood emergency. Some catalogs are used only by regional technicians and are not available to other users. Working in this way, it becomes necessary to have the ability to share the map without losing a catalog name added by the URL. |
Thanks for sharing your use case @glughi We do have a type of catalog item called terria-reference which lets you pull items from another catalog. It doesn't let you modify the catalog dynamically, but allows referencing external catalogs without adding init file to the URL. Not sure if it exactly suits your needs though. |
Hi, we know terria-reference but it is not what we need in this case. Thanks to URL catalog management, we can put links in web pages all using the same instance of Terria but load a catalog rather than another depending on the page's topic and target. |
What this PR does
Fixes #7269
Checklist
doc/
.