Change width of contour lines

262 views
Skip to first unread message

Gavinx

unread,
Sep 1, 2016, 8:02:41 PM9/1/16
to Osmand
I often use OSMAnd in the back country - in National Parks.

I need to:
  1. Make contour lines more obvious - thicker and different colour 
  2. Remove the green shading of National Parks
I have checked the various map styles but they do not help.

Is there any way I can make these changes?

thanks
Gavin 

Gunnar

unread,
Sep 3, 2016, 12:30:47 PM9/3/16
to Osmand
@Gavinx: I had exactly the same need, and found a way to solve it. The solution was to make my own 'Map style'. (One of the nice properties of OsmAnd is that the map styles are defined in xml files, and we can modify the existing ones and/or add new ones without changing the OsmAnd software itself). I you want, I can attach/send the style that I made, after I have reviewed it and cleaned it a bit first. When installed (i.e., xml file copied to the rendering folder), the new map style appeares in the menu in OsmAnd, and I can select it just like any other map style (OsmAnd, Touring view, UniRS, LightRS,..., MyNewStyle) in the menu when running OsmAnd.
-Gunnar

Gavin

unread,
Sep 3, 2016, 5:42:57 PM9/3/16
to osm...@googlegroups.com
Thanks Gunnar, 

Can you please send it with a quick explanation about what you have changed. 
Is the installation procedure you have described complete? 

Gavin


Sent from Samsung Mobile
--
You received this message because you are subscribed to a topic in the Google Groups "Osmand" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/osmand/_5c7fj9YzwY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to osmand+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Gunnar

unread,
Sep 5, 2016, 4:02:16 PM9/5/16
to Osmand
Here is my contribution to Map Styles suitable for hiking.
There are two files, based on OsmAnd 2.4.6.

1. default-hiking.render.xml is based on default.render.xml. It modifies the green colors of forest and wood from fairly dark green to more light and pale green.

2. hiking.render.xml is based on Touring-view_(more-contrast-and-details).render.xml. It depends on default-hiking and enhances the contour lines. (Note: The paths were already enhanced in Touring-view).

Installation:
Copy the two files to the 'rendering' folder of the OsmAnd installation.
Restart OsmAnd.

Use:
Select Map style in the menu in OsmAnd.
Now, there should be two new elements there: 'default hiking' and 'hiking'
Select 'hiking'.

This is what the Map styles will give you:
- Touring view (contrast and details): (the original one that you already had): enhanced paths (etc...)
- default hiking: Lighter green color of wood and forest, and the rest from 'OsmAnd' default, but not the stuff from Touring view.
- hiking: The lighter green from 'default hiking', the enhanced paths from 'Touring view' + enhanced contour lines.

I hope that you will find it useful.

- Gunnar

default-hiking.render.xml
hiking.render.xml

Gavinx

unread,
Sep 6, 2016, 7:26:01 AM9/6/16
to Osmand
Hi Gunnar,

Those files make a great improvement. 
I might even make the green lighter.

I also notice that the contours start out at lesser magnification to be nice and obvious but as the magnification increases the contour lines become finer. Think I will look at that to determine how it works.

Like I said, thanks for your files, they make a great improvement.

regards
Gavin

Richard Z.

unread,
Sep 10, 2016, 8:34:10 AM9/10/16
to osm...@googlegroups.com
On Mon, Sep 05, 2016 at 01:02:16PM -0700, Gunnar wrote:
> Here is my contribution to Map Styles suitable for hiking.
> There are two files, based on OsmAnd 2.4.6.
>
> 1. default-hiking.render.xml is based on default.render.xml. It modifies
> the green colors of forest and wood from fairly dark green to more light
> and pale green.
>
> 2. hiking.render.xml is based on
> Touring-view_(more-contrast-and-details).render.xml. It depends on
> default-hiking and enhances the contour lines. (Note: The paths were
> already enhanced in Touring-view).

for outdoor purposes, would it be possible to do a better rendering
of the cliffs like the typical line with triangles used in mapnik?


Richard
Reply all
Reply to author
Forward
0 new messages