• Resolved wordmax

    (@wordmax)


    On small phones or mobile screens this is not an issue because the info window for marker opens into a full screen when map marker is clicked.

    However, when you are working on larger screen, like laptop, if you click on a map marker to open the info popup it opens but usually the top half-of the popup is hidden outside the top of the map view area… so the user will have to drag down the map each time in order to bring the top of the info popup window into view. Ideally, you would want the map to slightly re-position itself so that the top of the info popup window is in full view and requires no dragging to see it by the user. I’ve seen this done on other mapping sites, so it must be a common thing for map devs, especially all the resources available for Leaflet.

    Perhaps the Leaflet map panning answer lies here…

    https://gis.stackexchange.com/questions/261142/leaflet-mouseover-popup-makes-whole-map-move

    I do notice that the map does not pan to include the info popup on the initial map view, but after the first marker popup has been opened and closed, the next marker opened popup map is pans to include it in the map view in windows. however even in this case the top of the popup info window is covered up by the map search box at the top of the map view.

    • This topic was modified 1 year, 9 months ago by wordmax.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Reposition map to show top of pop-up window in map view’ is closed to new replies.