zoom-level of the libchamplain map_view widget not respected
Submitted by Fabrice Bellet
Link to original bug (#746953)
Description
The problem comes from the call to champlain_view_ensure_layers_visible(), that is done before the priv->map_view view has a viewport_width and height. So zoom_level is decremented until min_y-max_y and max_x-min_x both become equal to zero (they cannot be negative), meaning the bounding box is a single pixel at this zoom level. So the Ideal zoom level is much lower than the zoom-level provided initially.
https://git.gnome.org/browse/libchamplain/tree/champlain/champlain-view.c#n2398
Possible workaround may be to set a dummy size to priv->map_view when creating it ?