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

Add zoom in/out button #104

Closed
jgaffuri opened this issue Sep 4, 2023 · 1 comment
Closed

Add zoom in/out button #104

jgaffuri opened this issue Sep 4, 2023 · 1 comment
Assignees

Comments

@jgaffuri
Copy link
Contributor

jgaffuri commented Sep 4, 2023

It would be nice to have a way to include easily some zoom in/out buttons. With "+" and "-" text.
Just like we have in https://ec.europa.eu/eurostat/web/gisco/geodata/reference-data/grids

Maybe something similar to what exists in openlayer and leaflet, see:
https://openlayers.org/en/latest/apidoc/module-ol_control_Zoom-Zoom.html
https://leafletjs.com/reference.html#control-zoom
https://www.tutorialspoint.com/leafletjs/leafletjs_controls.htm

@joewdavies
Copy link
Collaborator

joewdavies commented Nov 9, 2023

app.addZoomButtons() and app.addFullscreenButton() are now available: https://eurostat.github.io/gridviz/docs/reference#app-configuration.

Both classes (ZoomButtons and FullscreenButton) inherit from the Button parent class.

Can be tested here

Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants