GNOME Bugzilla – Bug 739363
Scale should be displayed
Last modified: 2016-02-01 20:01:44 UTC
Hi, I think it would be great to display the scale of the displayed map : - this is one of the more important data about a map - if I Thanks, Yvan
Hi, I just thought again to this enhancement request, and I saw that I forgot to finish the second sentence to justify it. Sorry for that.Here it is: If, say, I want to know if my destination is within walking distance or if I have to go by car, it is very difficult without scale. The remaining solution would be to ask for a route in Maps, but many times it returns a different path that the one I want, and it needs the user to ask for it. Anyway, in my opinion, a map without scale is very frustrating. And the second thing I wanted to say is that this bug report is still concerning version 3.14, although it is still valid for 3.16. Correct me if I do wrong, but I set the version to 3.16. Regards, Yvan
We can now click one point chose route from here, and another point and chose route to here, this will show you distance and time for walk, bike car.
Thanks for you explanation Jonas. Even if I understand you point of view, I do not think that asking for a route to get a distance can provide the same information than having the scale of the map : - What if I want the approximate distance between Europe and North America ? - What if I want an approximate distance between two mountains ? - What if I want the approximate length of a lake ? -What if the route suggested is not the one I want to take ? I set this to "reopened", but feel free to close if you think the "asking for a route" is sufficient. Regards, Yvan
Oh and I forgot to say that this bug affects now gnome-maps 3.18.2.
(In reply to yvan.masson from comment #3) > Thanks for you explanation Jonas. > > Even if I understand you point of view, I do not think that asking for a > route to get a distance can provide the same information than having the > scale of the map : > - What if I want the approximate distance between Europe and North America ? > - What if I want an approximate distance between two mountains ? > - What if I want the approximate length of a lake ? > -What if the route suggested is not the one I want to take ? > Well, I do not mean to sound harsh, but then I think Maps is not the application for you right now. Maps wants to remain a simple map application and I do not want any feature creep. I do not feel there is enough of push for a feature like this to warrant its inclusion. > I set this to "reopened", but feel free to close if you think the "asking > for a route" is sufficient. I will close it. But I would recommend you to file a similar bug on the libchamplain product in this bugzilla. That is the library that provides the map widget that we use. Maybe you can get champlain to implement a scale that you can activate via some keybinding? Thank you! > > Regards, > Yvan
Right now perhaps not, but showing the scale on a map is a pretty common thing. Google maps does it Bing maps does it, and mapquest does it. For feature parity we should have it, and it is useful from time to time. http://imgur.com/a/pjAtX
(In reply to Hashem Nasarat from comment #6) > Right now perhaps not, but showing the scale on a map is a pretty common > thing. Google maps does it Bing maps does it, and mapquest does it. For > feature parity we should have it, and it is useful from time to time. > > http://imgur.com/a/pjAtX Sure, but I do not think the code belongs in Maps eitherway. It is libchamplain who should do such calculations! Thanks
Instead of opening a new bug we can just move it :)
*** Bug 760775 has been marked as a duplicate of this bug. ***
Hmm, maybe I miss something but libchamplain contains an implementation of scale: https://developer.gnome.org/libchamplain/unstable/ChamplainScale.html You can just check the launcher-gtk demo to see it in action and to see how to use it.
Hello Jiri, I opened a similar ticket in the GNOME-Maps tracker. Subsequently I was asked to file a bug/enhancement against libchaplain. https://bugzilla.gnome.org/show_bug.cgi?id=760775 I will move my duplicate report back to the Maps queue with a reference to your comment.
(In reply to Jiri Techet from comment #10) > Hmm, maybe I miss something but libchamplain contains an implementation of > scale: > > https://developer.gnome.org/libchamplain/unstable/ChamplainScale.html > > You can just check the launcher-gtk demo to see it in action and to see how > to use it. Hah! Sorry for this Jiri! Will move back to Maps!
Created attachment 320172 [details] [review] Add scale ruler Champlain has support for adding a scale ruler. It also supports different units. Miles vs Kilometers. This commit adds a scale to Maps and checks the LC_MEASUREMENT locale to determine the unit.
Created attachment 320173 [details] Cast of scale
Created attachment 320174 [details] Cast of scale with imperial units and help overlay
I like this! I was hesitant at first but it seems low profile enough to not take focus off the map. Andreas what do you think?
(In reply to Mattias Bengtsson from comment #17) > I like this! I was hesitant at first but it seems low profile enough to not > take focus off the map. Andreas what do you think? I agree! One thing, though. Maybe the scale should only show up higher zoom levels? The scale will for example only be accurate around the equator when showing the whole world, I think…
(In reply to Marcus Lundblad from comment #18) > (In reply to Mattias Bengtsson from comment #17) > > I like this! I was hesitant at first but it seems low profile enough to not > > take focus off the map. Andreas what do you think? > > I agree! > One thing, though. Maybe the scale should only show up higher zoom levels? > The scale will for example only be accurate around the equator when showing > the whole world, I think… Fair point! Any suggestions on zoom-level?
(In reply to Jonas Danielsson from comment #19) > (In reply to Marcus Lundblad from comment #18) > > (In reply to Mattias Bengtsson from comment #17) > > > I like this! I was hesitant at first but it seems low profile enough to not > > > take focus off the map. Andreas what do you think? > > > > I agree! > > One thing, though. Maybe the scale should only show up higher zoom levels? > > The scale will for example only be accurate around the equator when showing > > the whole world, I think… > > Fair point! Any suggestions on zoom-level? Google seems to always have one tho.
Review of attachment 320172 [details] [review]: Looks good to me apart from the indentation. ::: data/ui/help-overlay.ui @@ +64,3 @@ + <property name="accelerator"><Primary>S</property> + </object> + </child> The indenting in this block is off
I know it might not be the right place to do so, but thanks very much for implementing this! And about zoom-level, my opinion would be to display the scale anyway: it is done on Google Maps, on OpenStreetMap, on mappy.com, on viamichelin.fr... and I suppose they provide "good" maps.
Attachment 320172 [details] pushed as ec85127 - Add scale ruler