Requirements
- Disable dynamic features (zooming, panning) so that it becomes a static thumbnail, on wikis where the final mapframe will also be static
- Full screen button and double-click must still work for full screen testing and to match final map
Technical background
When a site is configured to show only a static map thumbnail ($wgKartographerStaticMapframe = true), the preview mapframe should behave the same as the pulished map. When previewing, the thumbnail should be static and double-clicking into the map should show a dynamic, full-screen map.
For technical reasons, we can't show a true static thumbnail (because these are rendered on the maps server and it can only be done for saved article content, accessed via the MediaWiki API). But we could make the dynamic thumbnail behave mostly like a static map by disabling all interactions except for the double-click to open a full-screen map.
Opening as full-screen in the preview view already works as expected.
Demo for fix:
https://en.wikipedia.beta.wmflabs.org/w/index.php?title=Maptests/Inline_marker&action=edit
- Click preview, see the "fake" static preview that cannot be moved around or zoomed