Skip to content

Certain Nominatim searches force the map to an unrenderable zoom (e.g. z=23) #188

Closed

Description

@jeffreyameyer

Bug description
What is happening?
Using the search function sometimes takes the user to a blank map, even with a valid search result.

What should be happening?
Ideally, the user will be taken to an appropriate location, zoom, and time, using start_date for non-natural features. For natural features, the time should not change from prior to the search.

Repro Steps
Steps to reproduce the behavior:

  1. Go to openhistoricalmap.org

  2. Search on 'pony saloon'

  3. See results. (https://www.openhistoricalmap.org/search?query=pony%20saloon#map=23/47.60019/-122.33405&layers=O)
    image

  4. Click on results.
    https://www.openhistoricalmap.org/way/198099674
    image

Activity

  1. danrademacher commented on Jan 25, 2021

    @danrademacher

    The main issue - gray tiles - will be solved by this PR that we need to push to staging and then production: OpenHistoricalMap/ohm-website#26. This will cap our maxZoom to 20.

    The other issue, of picking the right time for a search result, will take more effort. I think we don't want to always change to start_date. For example, if I am looking at London in 1852 and I click on a building built in 1607, I wouldn't expect the timeslider to go to 1607.

  2. jeffreyameyer commented on Jan 25, 2021

    @jeffreyameyer
    MemberAuthor

    Absolutely.

    If object exists at current time, leave time unchanged.
    If object does not exist at current time, any of start_date, end_date, start_date + end_date / 2 work for me, although the latter option has a certain appeal.

  3. danrademacher commented on Feb 2, 2021

    @danrademacher

    OK, the change to maxZoom set to 20 resolves the original purpose of this issue - no more gray tiles. The other question of linking to the correct time as well as place, that should be a separate ticket.

  4. added theissue type on Mar 16, 2025
  5. changed the issue type fromtoon Mar 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions