After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 746953 - zoom-level of the libchamplain map_view widget not respected
zoom-level of the libchamplain map_view widget not respected
Status: RESOLVED OBSOLETE
Product: empathy
Classification: Core
Component: Geolocation
unspecified
Other Linux
: Normal normal
: ---
Assigned To: empathy-maint
empathy-maint
Depends on:
Blocks:
 
 
Reported: 2015-03-28 23:06 UTC by Fabrice Bellet
Modified: 2018-05-22 18:59 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Fabrice Bellet 2015-03-28 23:06:02 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 ?
Comment 1 GNOME Infrastructure Team 2018-05-22 18:59:27 UTC
-- 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.