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

Pop-ups when features are clicked #17

Closed
mstenta opened this issue Jul 16, 2019 · 3 comments
Closed

Pop-ups when features are clicked #17

mstenta opened this issue Jul 16, 2019 · 3 comments
Milestone

Comments

@mstenta
Copy link
Member

mstenta commented Jul 16, 2019

farmOS currently displays a popup when areas are clicked in the farm_areas map, as well as when the cluster icon is clicked in asset cluster maps.

We can use this library: https://github.com/walkermatt/ol-popup

@mstenta
Copy link
Member Author

mstenta commented Jul 16, 2019

This will require a little figuring out, with regard to how we retrieve the necessary content from the server to display in the popup. That information is coming from a Drupal View in farmOS currently. We may be able to reuse that, but I will have to review/refresh on the details.

@mstenta
Copy link
Member Author

mstenta commented Sep 18, 2019

walkermatt/ol-popup#145

@mstenta
Copy link
Member Author

mstenta commented Sep 18, 2019

This turned out to be extremely easy - just a matter of connecting a few things that already existed.

This will require a little figuring out, with regard to how we retrieve the necessary content from the server to display in the popup.

This is being handled in a behavior provided by the farm_area module in farmOS - so farmOS-map doesn't need to worry about it at all.

mstenta added a commit to mstenta/farmOS-map that referenced this issue Sep 18, 2019
@mstenta mstenta closed this as completed Sep 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant