leaflet-search icon indicating copy to clipboard operation
leaflet-search copied to clipboard

Controls disappear sometimes

Open NeilSelkirk opened this issue 8 years ago • 4 comments

Hi,

I was testing the leaflet-search and noticed that the controls disappear sometimes.

Try this:

  1. Go to (http://labs.easyblog.it/maps/leaflet-search/examples/nominatim.html) [http://labs.easyblog.it/maps/leaflet-search/examples/nominatim.html]

  2. In the search field, enter southwark

  3. Select first option Result: Map moves & controls disappear User is then unable to continue the test...

  4. In the search field, enter waterloo east

  5. Select first option

Here's a video of the controls disappearing when southwark is entered: http://screencast.com/t/CGXGfD8WuoGS

Chrome version: Version 50.0.2661.102 m

Please note: I was unable to consistently demonstrate this error, so it may be a timing related bug due to Internet response times.

The only error thrown on the Chrome Developer Tools console is a not found for http://labs.easyblog.it/favicon.ico (which is unrelated).

Neil

NeilSelkirk avatar May 18 '16 06:05 NeilSelkirk

uoh!! strange! Idon't know! may be it happen when the string in tooltips items is too long! try to ise items titles more short.... and retry.

It could be that the solution is simple css to limit max-width of item... if you can fork and send me a pull request please!

stefanocudini avatar May 18 '16 12:05 stefanocudini

Hi Stefano, Here's another example that seems to fail. Just paste the following into the search field and then choose the only (short) result.

Katoope street, Wanguri

NeilSelkirk avatar May 18 '16 14:05 NeilSelkirk

mmmhh then is not a problem of length of string

stefanocudini avatar May 18 '16 16:05 stefanocudini

same problem here.

look like the controler is move outside the view (to the left if we have the default setting "position: topleft"). And you can eventually get it back if you play with the zoom for a few minutes.

I can't reproduce the problem with "position: topright" (but the options display is broken).

Edit : i don't have any problem with firefox or IE... it's only happen on Chrome.

yporret avatar Sep 02 '16 09:09 yporret