-
Notifications
You must be signed in to change notification settings - Fork 7
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
Geolocation filtering #37
Conversation
In general: +1 for that. Didn't have the time to review yet, though. |
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.
@petschki thanks for this PR!
I have some remarks, especially regarding restructuring generic features to collective.geolocationbehavior or plone.formwidget.geolocation (where leaflet is actually integrated).
if done so, the map-related configuration options from c.venue might also be better placed c.geolocationbehavior or so.
What's your opinion on this?
"""Schema for the search filter. | ||
""" | ||
|
||
default_map_layer = schema.Choice( |
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.
+1 for the configuration, -1 for a per-tile config. This should better be defined portal-wide, like it's done in c.venue's controlpanel.
- to have better consistency,
- to not having to define an separate API key for each tile.
The API key configuration feature is on my TODO list for the c.venue controlpanel.
But maybe the controlpanel should go - similar to my remarks before - to c.geolocationbehavior or p.f.geolocation.
@thet thank you for the detailed review. Funny because yesterday I also thought that the map functionality isn‘t really the correct place here. So I‘m +1 for nearly all your comments. Map config within the tile was my idea because this makes it more flexible for the Editor to use different Maps in different contexts. Couldn‘t the API key be defined portal wide and the Maps Layout be configured locally? I like the flexibility in general and let the editor decide about consistency. So I would suggest to bring the Maps logic to The index makes sense on the behavior. I‘d move it over there. |
see discussion here collective/collective.collectionfilter#37
@thet @agitator map filtering is in alpha state but so far functional for testing. I've added a portlet too but this is not really usable in a column (I think) ... but for completeness sake. I decided to do the narrowing on move/zoom as an opt-in checkbox but maybe that's too conservative 😉 ... don't forget to checkout master from |
@petschki Thanks for your work on this! |
@thet no problem. I already use this branch in a new project of us and it works quite well. But I also need some more features like different colors of the map pins depending on some state of the article, but that belongs to Not to forget, that this PR needs collective/plone.formwidget.geolocation#12 and collective/collective.geolocationbehavior#6 too ... I suggest releasing everything together |
@petschki you might be interestend in: Patternslib/pat-leaflet@4828026 eventually also Patternslib/pat-leaflet@d342a65 |
refactored from collective.venue ... open discussion
NOTE: this needs Patternslib/pat-leaflet#3 and upgraded
…n dependencies and update checkouts for unreleased features
36b21cc
to
1075781
Compare
@petschki i'm currently working on all the collectionfilter/maps branches. |
…o use extraClasses for marker icons
…om static defaults as fallback.
refactored from collective.venue ... open discussion