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
Viewport not correct when starting Map from search results (basic member) #7584
Comments
Geocoding with Polygon output, just for my own reference: |
You are refering to a basic member scenario, are you? |
Yes, this is a basic member scenario. |
additional information: This seems to happen only if
(because as soon as you enable a different service which returns reliable results (eg.: oc.de), map will have something to determine the bounding box) |
Have a look at This works by transferring the address to the click listener
which is implemented in
Maybe this principle can be reused by preserving the location info during the search steps, promoting it to the cache list and using it there for centering the map, if there is no cache in the list with reliable coordinates? |
This looks like a feasible idea. I will give it a shot. |
This should be outdated as we now utilize the new search which returns coords also to basic members. |
Detailed steps causing the problem:
Actual behavior after performing these steps:
The map is (most of the time) zoomed out to zoom level 0.
Expected behavior after performing these steps:
The map is somewhat centered on the found caches and appropriately zoomed.
Version of c:geo used:
master
Is the problem reproducible for you?
Yes
Other comments and remarks:
This is caused by the code performing the search by center. The results most of the time do not contain reliable coordinates or don't contain any coordinates at all. The layer can not be zoomed to.
I already tested a workaround that creats a Viewport of 1.0x1.0 degrees around the center and invokes the new live map search. The search result contains the necessary coordinates to correctly show the map.
The optimal solution would get the bounding box for the given address (e.g. city/state limits) and search within that box. The live map code could be easily extended to handle the paging.
The text was updated successfully, but these errors were encountered: