Once T158123: Deploy kartotherian-snapshot v0.3.0 to production is resolved, auto-positioned snapshots will be available in production.
Current behavior
Currently,
- when zoom is undefined, Kartographer defaults to 12
- when latitude or longitude are undefined, Kartographer defaults to lat=30, lon=0
The result is a map, centered by default on a meaningless location, most likely not centered on the map features.
New behavior
With the new snapshot service, Kartographer can set these undefined values to a, which tells the snapshot service to calculate the optimal value.
The result is a map, automatically positioned (auto-zooming and/or auto-centering) based on the map features.
Notes
See corresponding code here: https://github.com/wikimedia/mediawiki-extensions-Kartographer/blob/master/includes/Tag/MapFrame.php#L131-L146