Skip to content
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

Bug: embedded share link of tabular-collection (map only containing tabular datasets) is refering to a map instead of tabular-collection #16

Open
mwallschlaeger opened this issue Jul 16, 2024 · 2 comments
Labels
52n bug Something isn't working

Comments

@mwallschlaeger
Copy link

Image belows shows Embed this Map: linkes to map (https://172.18.0.1/maps/12/embed), should be tabular-collection (https://172.18.0.1/tabular-collection/12/embed), but /tabular-collection/12/embed is generally missing

image

@mwallschlaeger mwallschlaeger added bug Something isn't working 52n labels Jul 16, 2024
@mwallschlaeger
Copy link
Author

this is also part of the api entries for: "link": "https://172.18.0.1/api/v2/maps/12", and "embed_url": "https://172.18.0.1/maps/12/embed", for tabular-collection maps

@ridoo
Copy link
Member

ridoo commented Aug 12, 2024

/tabular-collection/12/embed would require additional routing hooks in both geonode client hooksets and geonode-mapstore-client hooksets (which in fact is the implementation the former linked interface). Additionally, we would have to register new URLs in urls.py which serves at /tabular-collection or /tabular, respectively. This can be done via datapackage contrib app which had been created by #12.

For now, I have just "hacked" the existing embed routes for /datasets and /maps checking for subtype tabular. See here:

Image

However, extending the contrib app approach by adding url routes might provide cleaner integration/separation, but would require broader implemenation efforts (views, templating, database queries and the like). If you'd prefer to route via /tabular or /tabular-collection just let me know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
52n bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants