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).
Both maps and markers look fine here under Chrome on a Mac. I’m seeing the whole map on page load and the marker. When I click the first one it says something about parking. When I click the second, I get the name of the location. Could you grab a screenshot of what you’re seeing to compare?
These are screenshots of the maps after initial page load (no window resizing)
The Open Layers page:
The resolution is not correct (marker too big and not responding)
(Sorry, as a new user, I can apparently only put one picture in the post)
The Leaflet page:
Resolution is ok and marker responding but map not centered and drawn on the right side
No, it’s not a High Sierra problem.
Tested it at work today on several computers (Mac - Mountain lion, Sierra, High Sierra & Windows 10) and different browsers (Safari, Chrome, Firefox, Edge), always with the same result.
In the preview mode in RW (7.5.5) the behavior is as in the browser:
Map not fully drawn on the right side on page load, everything snaps in place after window resize (see screenshot)
Still think it’s related to the ‘hidden sidebar’ option in the Tesla theme because I can’t reproduce it with any other theme and the problem disappears when the option ‘sidebar left’ or ‘sidebar right’ is on.
Would be quite interesting for me if you encounter same problems with the OpenStreetMap Stack, which also uses Leaflet. Let me know if you are interested to test this