-
Notifications
You must be signed in to change notification settings - Fork 380
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
Widget options #41
Comments
If I understand you correctly, Refer to #46 You can get the map object from there and use that to set whatever options you need. If the answer not correct, please give an example of what you are trying to achieve. |
I'm trying to override the default widget options in http://leafletjs.com/reference-1.0.3.html#control and http://leafletjs.com/reference-1.0.3.html#control-zoom, like 'position': 'top-right', for example. |
Would the following help?
|
Yes, it helps indeed! I guess it's reasonable to do so, but in the future those widget options should be customizable using :props, don't you think? Thank you for your help. |
You may be right, but this Vue library is still pretty new to me so I can't make a good opinion on this. The author of this library may be in a better position to explain why things are done in a certain way, but so far I do see this library being improved actively. |
Hi @fergardi, Zoom and Scale Controls in Leaflet are not implemented yet as I didn't have time to do it. You will be able to modified Attributions via a prop on each TileLayer in the v0.0.50 thanks to @EyMaddis pull request. Mickaël |
It's nice to know. Thanks for your work! |
So, is it not possible to disactivate zoomControl? |
You can remove the control this way : |
YEAH, perfect! |
ok, time to update package... |
Thanks for the notice, I have updated my code base (vue2-leaflet-tracksymbol v1.0.11) to work on Vue2Leaflet v1.0.1 in my develop branch, seems to be working fine. https://github.com/ais-one/vue2-leaflet-tracksymbol/tree/develop Will push it to master once further testing is done. |
Done its on master branch now. |
Closing as no comments for 3 weeks. |
How to set original Leaflet widget zoom, navigation, scale options like position, attributes, etc?
The text was updated successfully, but these errors were encountered: