It'd be useful if overlays would open in a direction which keeps them within the currently shown map viewport. I think this corresponds to the keepInMap property in OL2. This is in particular relevant as long as #2180 isn't possible.
A possible sketch would be:
automatic as possible ol.OverlayPositioning.x=3, y=2.Does that make sense? Are there already other plans for this? Would you interested in a Pull Request with the above proposal?
Want to back this issue? Place a bounty on it! We accept bounties via Bountysource.
We now have autoPan with #3256
by using autopan we force the underlying map to move, is there any way pop should auto adjust its location. (like windows right click menu )(Because at the topmost corners of the map,where there is not enough space for popup to stay on maps, popups gets outside the maps.)
I enabled autoPan , but the users logged it as a bug! They really disliked it.
A suggested solution would be for autoPan (or some other option) to move the popup window instead of pan the base view.
Something like this fiddle.
Its a poorly implemented reversal of ol.Overlay.panIntoView().
The real use case if for hover over features near the edge of the map.
Most helpful comment
by using autopan we force the underlying map to move, is there any way pop should auto adjust its location. (like windows right click menu )(Because at the topmost corners of the map,where there is not enough space for popup to stay on maps, popups gets outside the maps.)