-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Maps] Added options to disable zoom, hide tool tips, widgets/overlays in embeddable maps #50663
[Maps] Added options to disable zoom, hide tool tips, widgets/overlays in embeddable maps #50663
Conversation
Pinging @elastic/kibana-gis (Team:Geo) |
Pinging @elastic/uptime (Team:uptime) |
💔 Build Failed |
💔 Build Failed |
Thanks for opening a PR for #49871 Users can still zoom in by holding shift and dragging over an area. You may want to set This PR introduces a lot of variables for the embeddable input:
How about simplifying them into a single key, @thomasneirynck This PR hides attribution. Is that a good idea? I think attribution should never be allowed to be hidden. For uptime, none of the sources have attribution so it should not matter but I think there are legal requirements to show attribution for EMS layers using OSM data. |
The more I think about, maybe the redux state should be simplified as well and only have a single boolean |
@nreese i agree about simplifying redux state, though about first point, or accumulating all booleans into single booleans, i also thought of it. Why i opted for keeping all options separate to keep it more flexible, if different needs arises, i mean if someone wants to keep some toolbar or widget , or zooming. They can individually disable/enable those. Combining them will keep code clean, but it won't be as flexible. Maybe we can have a one redux action to pass whole object, something like Though just having isNonInteractiveMap does looks way more clean. WDYT? |
💚 Build Succeeded |
FWIW I'm +1 for flexibility too, combining the boolean flags seems like something a future consumer could run up against and want to change: "I want to enable tooltips but disable zooming". |
I agree having some level of granularity over controls (zoom, pan, tooltips, legend etc.) makes sense. As for attribution: generally, it's going to be required that we show it somewhere, but it does not necessarily need to be on the map itself, e.g. it could be nearby on the page, or sometimes apps that have other non-map components will group all attribution together in a single "Data sources" link. But, there's nuance there and concern that a client from another group wouldn't know the requirements, so we may want to be more conservative and not allow it to be disabled for now, wait and see if it comes up in practice. |
👍 |
@nreese @bcamper i don't understand the attribution part, i think
was already there, i haven't changed that. |
This line in
|
@nreese i have removed the option to hide attribution, i think we can keep widgetOverlay, it shouldn't be a problem. I have also refactored redux state and have moved all props to redux. Have also consolidated zooming control and options into interactive bool. |
💔 Build Failed |
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.
Thanks for all of the changes. This is looking really nice.
Could you please add the new map embeddable input parameters to https://github.com/elastic/kibana/blob/master/x-pack/legacy/plugins/maps/public/embeddable/README.md
💚 Build Succeeded |
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.
Thanks for making these changes.
LGTM with green CI
💔 Build Failed |
https://github.com/shahzad31/kibana into feature/issue-49871--added-options-in-embeddable-maps
💔 Build Failed |
@elasticmachine merge upstream |
💚 Build Succeeded |
…s in embeddable maps (elastic#50663) * added options to disable zoom, hide tool tips, widgets/overlays in embeddable maps * revert panel changes * added disable interactive * remove redundant code * update redux state and removed widget over lay hiding * update readme with added map props
* upstream/7.x: Fix infinite redirect loop when multiple cookies are sent (elastic#50452) (elastic#51821) [Console] Proxy fallback (elastic#50185) (elastic#51814) Added endgame-* index and new heading 3 Elastic Endpoint SMP. (elastic#51071) (elastic#51828) [Maps] Added options to disable zoom, hide tool tips, widgets/overlays in embeddable maps (elastic#50663) (elastic#51811) Move errors and validate index pattern ⇒ NP (elastic#51805) (elastic#51831) [SIEM][Detection Engine] Adds ecs threat properties to rules (elastic#51782) (elastic#51827) [Lens] Remove client-side reference to server source code (elastic#51763) (elastic#51825) fixes drag and drop in tests (elastic#51806) (elastic#51813) [Uptime] Redesign/44541 new monitor list expanded row (elastic#46567) (elastic#51809) [7.x] [Telemetry] collector set to np (elastic#51618) (elastic#51787) [Uptime] added test for chart wrapper (elastic#50399) (elastic#51808) Expressions service fixes: better error and loading states handling (elastic#51183) (elastic#51800) Query String(Bar) Input - cleanup (elastic#51598) (elastic#51804) [ML] Adjust and re-enable categorization advanced wizard test (elastic#51005) (elastic#51017) fixes url state tests (elastic#51746) (elastic#51798) fixes browser field tests (elastic#51738) (elastic#51799) [Task Manager] Tests for the ability to run tasks of varying durations in parallel (elastic#51572) (elastic#51701) [ML] Fix anomaly detection test suite (elastic#51712) (elastic#51795) [SIEM] Fix Timeline drag and drop behavior (elastic#51558) (elastic#51793)
Fixes: #49871
Summary
To achieve the skimmed down version to be used in Uptime app,
Following configurable options are added into embeddable maps API
Checklist
Use
strikethroughsto remove checklist items you don't feel are applicable to this PR.For maintainers