-
-
Notifications
You must be signed in to change notification settings - Fork 60
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
zoom, marker, adress issue #156
Comments
Hi @wuk986,
We have a code snippet showing how you can customize how the map view works after someone selects a a result: https://github.com/mapzen/leaflet-geocoder/tree/master/examples#customize-map-view-when-a-result-is-selected It uses events to listen for the selection and then responds by panning the map to the correct point and sets the desired zoom level. If you want to set the zoom immediately after a search, and not a selection, you can listen for the
The easiest way to do this is to set the With custom coding, you can also use events to listen for a selection, examine them to see if the
Setting custom popup content via geocoder options is an open issue and still on the roadmap for a future release. Please weigh in there if you have any thoughts about how this might work. In the meantime, this can only be done by listening for a selection event, then handling it yourself by dropping a Leaflet marker and popup with the desired content. (Similarly to above, markers and popups made in this way must also be cleaned up yourself because the plugin does not know about them.)
It is possible for an interaction with the results list to switch the map's I hope this is helpful! Please feel free to follow up with any further questions. |
Regarding this bug:
I have determined that one way to cause this reliably is to do the following:
I do not know if this is the only way to cause this bug to appear. Are you able to retrace step-by-step how this bug occurs on your end and can confirm whether this is how you're encountering it, or through some other way? |
Scroll wheel zoom issue fixed in 374e3b7 and released in https://github.com/mapzen/leaflet-geocoder/releases/tag/v1.8.2! |
I have some issues and i can not figure it out how to solve this by my own.
My issues short discriptive:
And last but not least, sometimes after some search requests it is not possible to zoom in and out by the mouse wheel, only the zoom buttons work. After a page reload can solve this for the moment.
I haven't figured what i have done before this occurs.
I am using leaflet 1.0.3, firefox 52, chrome 57
thanks for helping in advance.
The text was updated successfully, but these errors were encountered: