Locus Map - forum

Content & Tools => Themes - Vector maps => Topic started by: barbudor on February 21, 2016, 21:12:50

Title: [Theme] elevation contour only
Post by: barbudor on February 21, 2016, 21:12:50
Hello

Does anyone knows about an on-line map source for transparent elevation contour lines that could be used as an overlay over satellite imagery maps ?

I am looking to achieve something like in Strava (see below) by adding elevation contour on-top of Google or others satellite  maps.

Thanks in advance

best regards

barbudor

(http://barbudor.free.fr/files/strava-sat+elevation.png)
Title: Re: Looking for online map source for elevation contour only (as overlay on satellit
Post by: john_percy on February 21, 2016, 22:28:42
It would be quite easy to do that with a custom theme for an offline vector map.

In the screenshot below, the overlay map is an appropriate vector map, the theme is contours (attached). Blend mode is SRC_OVER.

Both Locus Maps and OpenAndroMaps maps have contour lines with height marked for major intervals.

(http://s7.postimg.org/p57tcpzg7/Screenshot_2016_02_21_22_06_59.jpg) (http://postimg.org/image/p57tcpzg7/)

Updated upload
Title: Re: Looking for online map source for elevation contour only (as overlay on satellit
Post by: Menion on February 22, 2016, 17:55:55
Thanks @john_percy! My suggestion may be exactly same, there is probably no better solution (at least I'm not aware of any better).
Title: Re: Looking for online map source for elevation contour only (as overlay on satellit
Post by: barbudor on February 22, 2016, 19:07:20
Hi John

Thanks, it's working great.

I am not yet much aware about XML theme files.
I would like to try to make the lines more visibles.
What should I look for in the XML file (color, thickness, ...) ?

It would be great if I could make the countour line as a pair of black+white lines side by side to increase the contrast.

If you know a good place to learn about tweaking XML files, that would me much appreciated.

EDIT : Question : There are 2 contoursxml files in the ZIP. Is that normal ? Shall I keep both ?


Thanks a lot

Best regards

Barbudor
Title: Re: Looking for online map source for elevation contour only (as overlay on satellit
Post by: barbudor on February 22, 2016, 19:11:27
@Menion

I am trying to use this over offline map too.
It appears that sqlitedb files supports overlay but rmap doesn't.
Both have been made by MobAC.

Thanks
Title: Re: Looking for online map source for elevation contour only (as overlay on satellit
Post by: john_percy on February 22, 2016, 19:52:35
I am not yet much aware about XML theme files.
I would like to try to make the lines more visibles.
What should I look for in the XML file (color, thickness, ...) ?
It would be great if I could make the contour line as a pair of black+white lines side by side to increase the contrast.
I'm sorry about the two contour.xml files in the zip. My fault. I've now uploaded a corrected zipfile in my previous post above.
The lines are a very pale green with a grey outline.
The colours are defined by
Code: [Select]
stroke="#4A5255" and
Code: [Select]
stroke="#B5C7A1 and
Code: [Select]
fill="#B5C7A1" Two colours appearing several times. You can do a global search and replace: for example, #FFFFFF would be white and #000000 would be black.

The thickness is defined by
Code: [Select]
stroke-width="1.4dp" with various thicknesses for differing zoom levels. That needs approaching with some care, seeing what gives you the look you want.
Title: Re: Looking for online map source for elevation contour only (as overlay on satellit
Post by: Menion on February 22, 2016, 20:51:35
It appears that sqlitedb files supports overlay but rmap doesn't.

Correct. That's how it's done.
Title: Re: Looking for online map source for elevation contour only (as overlay on satellit
Post by: barbudor on February 22, 2016, 21:48:11
@John

Many thanks. I'll experiment with this.

@Menion

Ok. I was moving more to rmap because I can share the same file between Locus and desktop CompeGPSLand application.

Many thanks.

Best regards
Title: Re: Looking for online map source for elevation contour only (as overlay on satellit
Post by: gynta on June 08, 2016, 21:22:24
It would be quite easy to do that with a custom theme for an offline vector map
@john_percy
Hi John
' don't know why - but this theme doesn't work for me.
(http://s33.postimg.org/e6naa4a3v/2016_06_08_211637.jpg) (http://postimg.org/image/e6naa4a3v/)
any ideas?
Title: Re: [Theme] elevation contour only
Post by: john_percy on June 08, 2016, 21:45:20
It's not working properly for me now. Zooming in or out results in incorrect segments of contour lines on the map.
If you choose the theme again, it redraws correctly. So it's some kind of bug?
Title: Re: [Theme] elevation contour only
Post by: john_percy on June 09, 2016, 09:17:23
The problem I find is connected to the rendering of the transparency of the fill defined in the theme. Used as a theme on its own, contours is rendered with spurious segments of contours when the zoom level is changed.
However, it seems to work as an overlay:
1. Select a non-vector map as the base
2. Select a vector map as the overlay
3. Blend=disabled, etc
4. Select contours as the theme
5. Zoom in and out.

As an alternative, set the background fill in the contours theme to #FFFFFF, and the blend to multiply in the overlay. That way the theme works as a standalone map and as an overlay.

I attach a slightly simplified theme as well as an opaque version.