Saturday, 12 December 2015

What's cooking in Maps in GNOME 3.20

We are coming up on the 3.19.3 release this Monday and 3.19.4 will be January 14th which will also be the start of the UI freeze.

I wanted to take some time and give an update on what we have done for Maps this cycle and what we can expect in Maps 3.20.

Open with browser

We have had support to open a location with other applications for a while. New in 3.20 will be Open with browser. That will send you to the OpenStreetMap page for the location in question.



Fun with URIs

Maps in 3.20 will be able to handle the 'geo' URI scheme. That means that if you follow the link in the previous sentence and go to the wiki page and click on a geo: URI, your browser will suggest that you open the URI with Maps.

The GNOME IRC application Polari has also gotten support to linkify the geo: URI.


Geojson

I wrote about this in an earlier blog post we now have support for opening GeoJSON file, that contain simple geometric shapes and annotations. Since then contributor Alaf Azam added initial support for the Mapbox simple style specification for styling GeoJSON data. Which mean we can have stuff looking pretty like below.



Export to PNG

We added functionality to export the current view to PNG.



 

Editing OpenStreetMap from Maps

One thing I have wanted for a while now is happening thanks to Marcus Lundbladh we will have the possibility to do simple editing of OpenStreetMap from GNOME Maps. He has written a more in-detail blog post about it here.

Right now we have merged support to add/alter fields of information in places that already exist. And we will expand on that and maybe add functionality to add points of interest. A reason to use GNOME Maps is that we use the open data from OpenStreetMap and it feels good to offer a way to give data back.










So all of this and more, like going to your last previous location on start-up is what is happening in Maps for 3.20. And we also got two Outreachy interns for Maps for this round! I will introduce them and what they will work on in a later blog installment!

6 comments:

  1. You scared me, the UI freeze is not in January but in February!

    ReplyDelete
  2. I'd like to add geo uri support to darktable[1] with a Lua script. Is there a command line or dbus command I can use?

    [1] http://www.darktable.org/

    ReplyDelete
    Replies
    1. Hi, neat!

      Well just

      $ gnome-maps

      Should work and present the current window if there is one and go to location, and start a new instance of maps if there is none.

      See documentation here on the syntax of geouri we support: https://developer.gnome.org/geocode-glib/stable/GeocodeLocation.html#geocode-location-set-from-uri

      Delete
    2. Something fell away, should be:

      just

      $ gnome-maps "geo:12.4,12.4"

      for example

      Delete
    3. Also Maps is registered as a handler for the geo uri in its desktop file, so a general launch of the uri with GNOME API should work.

      Delete
    4. The script is done:
      https://github.com/supertobi/lua-scripts/blob/master/contrib/geo_uri.lua

      I haven't tested it, because I don't have the latest Gnome Maps version. But feel free to do it and report bugs.

      Delete