radius calculation for new panorama search based on latitude and mercator projection for google maps #36
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "feature/more-accurate-new-selection-in-mapeditor-on-google-maps"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Current state
Street View Cover layout enables accurate place selection for the MapEditor. However when searching for a panorama for the new selection, it tends to prefer road layout (blue marker on the attached image) over other view points (green marker) even if the road is further away to the selected position. Technically makes the selection of green marker impossible.
Improvement
This feature calculates the radius dynamically based on the zoom level and latitude of the selected position using Mercator projection.
The main problem is that indoor panoramas are searched first, so it doesn't matter if an indoor panorama is closer if there is any outdoor panorama in the 100m radius. (It is not always correctly determined if a panorama is indoor or outdoor, for example paromaras that are uploaded by users are mostly classified indoor.) Indoor panoramas are found only if there is absolutely no outdoor panoramas in 100m.
Maybe this searching algorithm can be changed because it was implemented for the cases when accurate place selection was not possible and I wanted to prefer outdoor panoramas over indoor.
However the change is OK because changing the radius based on the zoom level is a good solution anyways.