GNOME Bugzilla – Bug 746953
zoom-level of the libchamplain map_view widget not respected
Last modified: 2018-05-22 18:59:27 UTC
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 ?
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/empathy/issues/826.