Opened 7 years ago

Closed 7 years ago

#4600 closed defect (wontfix)

blank/partial map

Reported by: porjo Owned by: geocoding@…
Priority: minor Milestone:
Component: nominatim Version:
Keywords: Cc:

Description

If I search for 'maugham court' on the Nominatim page, I get 2 results displayed in the left-hand panel:

  • Maugham Court, Sacramento, California, 95632, United States of America
  • Maugham Court, Lower Island, Whitstable, Canterbury, Kent, South East England, England, CT5 1DA, United Kingdom

If I click on the second result from the left-hand panel the map areas goes blank in Firefox (15.0.1). In Internet Explorer 9 I see a strip of the map on the left of the map area and the rest of the map area is blank. (I haven't tested any other browser)

If I search for 'maughum court whitstable' the map area shows a complete map i.e. no error

Change History (4)

comment:1 Changed 7 years ago by porjo

I've tested this on Linux using Firefox 15 with the same result (original test was on Windows 7)

I've just discovered that if I resize the browser window, this causes the map area that was previously blank to display the correct map...so perhaps a CSS/JS bug?

Last edited 7 years ago by porjo (previous) (diff)

comment:2 Changed 7 years ago by Sarah Hoffmann

I can reproduce that with Firefox and Opera (chromium works fine) and the same thing also happens on the main OSM site. So I suspect there is a bug somewhere in OpenLayers?. But why exactly for 'Maugham Court' and only for 'Maugham Court' leaves me completely confused. It might help to find a second case where the bug appears.

comment:3 Changed 7 years ago by Tom Hughes

Yes I looked at this last night on the main site and I'm pretty sure it's an OpenLayers? bug. My best guess is that it relates to this code:

https://github.com/openlayers/openlayers/blob/master/lib/OpenLayers/Layer/Grid.js#L469

which as you can see from the comment is supposed to force a retile when you warp from one side of the world to another.

What you will see if you look at a failed case is that the tiles are positioned at massively crazy offsets in the back buffer - hundreds of thousands of percent and things. Zooming out or changing window size will cause a retile and fix it.

comment:4 Changed 7 years ago by Sarah Hoffmann

Resolution: wontfix
Status: newclosed

I can see the offsets but can't really make sense of the code. I've extracted the example and filed a bug against OpenLayers?. Follow-ups should go there: https://github.com/openlayers/openlayers/issues/696

Note: See TracTickets for help on using tickets.