1 (edited by Sinthien 2018-02-06 21:50:59)

Topic: Stack multiple layers from different sources

Hello Team and Community,
is it possible to get somehow multiple layers/maps from different providers one above another ?

For Example:
- Layer 1: Tiles from Online OSM Server
- Layer 2: Tiles from cache Google Satelite with 60% opacity
- Layer 3: Tiles from custom folder (Pre-rendered, transparent background, with polygons on it) with 50% opacity

The Goal is that a future user with the standalone-version of my programm can pre-render a set of tiles with Quantum GIS and copy it to the resource-folder of the program.
The Program notices the new folder and add a new layer over the map where the tiles will be loaded simultaniously with the bottom layer.

I know i surely have to do coding, but i dont know the class to start with. Can someone provide some hints how to achiev this ?

Post's attachments

Attachment icon layers_map.PNG 679.41 kb, 69 downloads since 2018-02-07 

Re: Stack multiple layers from different sources

Hello.

Yes, you can do this using Tileset Control.
Tiles have two overlays layer + one reserved for traffics, which you can use too.
OnlineMapsTile.overlayBackTexture, overlayFrontTexture, trafficTexture.
http://infinity-code.com/doxygen/online … 6e065be26c
Use OnlineMaps.OnStartDownloadTile to intercept the downloading of tiles and load your overlays.
Example:
http://infinity-code.com/atlas/online-m … ample.html
To return downloading of main tile texture to the map, use OnlineMaps.StartDownloadTile.
Or you can download it yourself too.

Kind Regards,
Infinity Code Team.

Boost your productivity a lot and immediately using Ultimate Editor Enhancer. Trial and non-commerce versions available.

Re: Stack multiple layers from different sources

Thx alot for the fast answer ! I'll try that until further questions rise.