I show OSM-maps on my website with the Open Layers or Leaflet environment using the Tesla theme.
However when ‘sidebar hidden’ is selected the maps won’t show correctly on opening the page. When the browser window is resized everything snaps in place and functions correctly. This happens in all browsers (Mac & Windows).
Examples of both pages:
Open layers API: resolution is not correct and popup on marker doesn’t respond until window is resized
Leaflet API: map isn’t drawn completely on the right side and marker is not centered until window is resized
When using left or right sidebar all is well.
Can anyone help with this problem?