3

I'm using QGIS 2.8.3-Wien in an Ubuntu14. My problem is the following:

I'm using the OpenStreetMap tiles to draw maps of some specific regions. The problem is that, for some urban/rural regions, these tiles offer very little information at non-urban regions.

By using the OCM Landscape layer, I can get more landscape information for rural areas, although the infos for urban areas is poorer.

Finally, I though I could merge both layers by setting some level of transparency on it.

However, QGIS does not offer a properties dialog for this kind of layer.

Is there any way of setting transparency for a tiles layer?

5

QGIS does not support Openstreetmap tiles natively. I assume you are using the openlayers plugin. That does not allow for transparency.

Alternatively, you can use the TileLayer plugin with the ability to set the transparency:

enter image description here

The tab delimited lines for a text file with .tsv extension are:

 Openstreetmap  OSM http://a.tile.openstreetmap.org/{z}/{x}/{y}.png 1   0   19  -180    -85.0   180.0   85.0

 OpenCyclemap   OCM http://a.tile.thunderforest.com/cycle/{z}/{x}/{y}.png   1   0   19  -180    -85.0   180.0   85.0

You can set the transparency in the Properties box:

enter image description here


Additionally, the new QuickMapServices plugin offers the same choice, without the need to edit a text file.

5
  • Great, thank you very much ! I would just add that the tab delimited file must have the .tsv extension and utf-8 encoding.
    – Alan Tygel
    Sep 25 '15 at 9:49
  • Sorry, I didn't found where to set tranparency. The new layers also do not allow properties editing.
    – Alan Tygel
    Sep 25 '15 at 9:55
  • Are you sure you have the latest version of the plugin?
    – AndreJ
    Sep 25 '15 at 10:14
  • Well, I installed it directly through QGIS. I don't know what happened, but now it works! The properties window opens, with the transparency option. Thank you very much!
    – Alan Tygel
    Sep 25 '15 at 13:07
  • The QuickMapServices (qgis plugin) allows you to set the transparency in the properties (but the OSM plugin does not have this option). This is located in the Web tab in QGIS
    – Mapperz
    Sep 25 '15 at 15:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.