Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-36581

Provide an easy way to use Map with a custom tilesource

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • None
    • Location
    • None

    Description

      Qt Location's Map component is used in conjunction with a MapPlugin. These plugins seem engineered to facilitate a whole large bunch of mapping related services from tiles to geocoding and routing. Most of these services are expensive and/or have difficult terms of service, which leads them to be rarely used. Tiles, however, are an exception. There is especially a large collection of differently themed OpenStreetMap tiles (e.g. opencyclemap.org, openseamap.org, hikebikemap.de) available free of charge and by reasonable terms. Also, it is very common for applications to want to just display points or lines on a map without using any geocoding, routing, etc. services.

      If I understand correctly, Qt Location currently allows one to create custom map plugins in C++ by subclassing and implementing a bunch of interfaces. This is not very convenient, especially for those not using C++ at all. I propose adding a simple OSM-tilescheme-compatible [1] map plugin that accepts a tilesource as a plugin parameter. Then, in QML, one could simply state

      Map {
          plugin: MapPlugin {
              name: "the-custom-osm-compatible-plugin"
              parameters: [
                  PluginParameter { name: "tilesource"; value: "http://a.tile.thunderforest.com/cycle/$Z/$X/$Y.png"; }
              ]
          }
      }
      

      [1] http://wiki.openstreetmap.org/wiki/Slippy_map_tilenames

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              ablasche Alex Blasche
              otsaloma Osmo Salomaa
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes