Cycle Map with OpenFietsMap render style

2,296 views
Skip to first unread message

Harry van der Wolf

unread,
Oct 30, 2013, 9:47:39 AM10/30/13
to osmand
Hi,

I updated the Cycle Map render.
The biggest change is the OpenfietsMap rendering style which I added to it. OpenFietsMap (https://sites.google.com/site/openfietsmap/) is a big community of Dutch (and Flemish?) fietsers (and possibly also other nationalities). OpenfietsMap is Garmin based but more and more cyclists are moving to OsmAnd or thinking about a move to Osmand. But they do like the OpenFietsMap render style.

NOTE: This version is not yet builtin to OsmAnd. I'd like to have some feedback before doing a pull request.

Note that this is version 1 (or beta or alpha or version 0.1, whatever you like) of the OpenfietsMap rendering style.
Copy/Save the attached "Cycle-Map-OFM.render.xml" into the rendering folder inside the osmand folder.
The Cycle Map always starts in Mapnik CycleMap rendering style (as the rest of the world is maybe used to that style).
To get the OpenFietsMap rendering style, you go to the menu from inside the map, select Configure screen, Select bottom option "OpenFietsMap style".

Unfortunately mountain bikers can't be served yet as the mtb tags in OpenStreetMap (http://wiki.openstreetmap.org/wiki/Mountainbike) are not yet added to OsmAnd(MapCreator).

For those who can "read" the render files: A lot of things can be optimized and grouped together, but I have split up a lot for the moment to be able to tweak and debug every option.

Please give me your feedback. I know that the cycling season is almost over, unless you are a mountain biker, or if you go cycling in the south of Spain (or so) in the winter. In that case you can use an OsmAnd map.

Harry
Cycle-map-OFM.render.xml

Harry van der Wolf

unread,
Oct 30, 2013, 12:49:06 PM10/30/13
to osmand
Based on feedback (already) from the OpenFietsMap render creator Minko, already a new updated one.
More changes to follow in the coming time.

Harry

Cycle-map-OFM.render.xml

Bernhard Bannink

unread,
Nov 1, 2013, 8:34:12 AM11/1/13
to osm...@googlegroups.com
Very good initiative!
I will try it and give a review.

Op woensdag 30 oktober 2013 14:47:39 UTC+1 schreef Harry van der Wolf:

Harry van der Wolf

unread,
Nov 1, 2013, 8:39:09 AM11/1/13
to osmand
I'm in direct contact with Minko, the "owner" of OpenFietsMap. In the past 2 days a few updates already took place.

See attached.


2013/11/1 Bernhard Bannink <bban...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "Osmand" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osmand+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Cycle-map-OFM.render.xml

OpenFietsMap *

unread,
Nov 1, 2013, 9:52:08 AM11/1/13
to osm...@googlegroups.com
Thanks Harry,

I'm not very familiar with Osmand yet nor the rendering styles but will do my best to understand it and help to improve it.

Minko

http://www.openfietsmap.nl

Op vrijdag 1 november 2013 13:39:09 UTC+1 schreef Harry van der Wolf:

Bernhard Bannink

unread,
Nov 2, 2013, 9:43:30 AM11/2/13
to osm...@googlegroups.com
Red lines for cycle paths are very visible, that is good!
I am quite sure the data for the fietsknooppunten is there as well. I would really like to see the fietsknooppunt/numbers

Thanks, 

Best regards, Bernhard

Gavinx

unread,
Nov 3, 2013, 1:36:30 AM11/3/13
to osm...@googlegroups.com
On a galaxy note I installed the xml file in osmand/rendering removing the "." in the name between  OFM and render and cannot see any option in Configure Screen to "OpenFietsMap style".

What am I doing wrong?

thanks

Gavin

Andre

unread,
Nov 3, 2013, 2:14:37 AM11/3/13
to osm...@googlegroups.com

You said it yourself.  Removing the point ;-)

Op 3 nov. 2013 07:36 schreef "Gavinx" <denisea...@gmail.com>:
--

Harry van der Wolf

unread,
Nov 3, 2013, 3:40:05 AM11/3/13
to osmand
As Andre also mentioned, but to state it a little more clear.
The file needs to have the double extension .render.xml. 
It was definitely not a mistake on my part.

And again: already new updates have been added to the .render.xml.
See attached.

Harry
Cycle-map-OFM.render.xml

OpenFietsMap *

unread,
Nov 3, 2013, 4:30:56 AM11/3/13
to osm...@googlegroups.com
Thanks Harry,

The cyclenodes (fietsknooppunten) are also on my wish list.
I tried to render them in the points section with a tourism info poi (which shows up)

    <point>
               <!-- Bicycle profile priority icons -->
                <group appMode="bicycle" iconOrder="90">
                <filter minzoom="11" icon="tourism_information" tag="rcn_ref" value=""/>
                </group>
    </point>

And I had to set this line to true
<filter appMode="bicycle" NodeNumber="true" tag="rcn_ref" value="rcn" nameTag="rcn_ref" textColor="#ff00ff" textOrder="8"/>

But this wont render the numbers, only a few names in case the rcn_ref tag has also a name.


Op zondag 3 november 2013 09:40:05 UTC+1 schreef Harry van der Wolf:

OpenFietsMap *

unread,
Nov 3, 2013, 4:40:00 AM11/3/13
to osm...@googlegroups.com


Op zondag 3 november 2013 10:30:56 UTC+1 schreef OpenFietsMap *:
But this wont render the numbers, only a few names in case the rcn_ref tag has also a name.

Sorry, it only shows the rcn_ref label if the node also has a note=*
http://www.openstreetmap.org/browse/node/823367667

OpenFietsMap *

unread,
Nov 3, 2013, 6:04:36 AM11/3/13
to osm...@googlegroups.com
A few things with minor priority that are on my "wish list":

- Render tracks with tracktype=grade1 the same as unclassified roads (mostly paved roads, very good to cycle on)

- The rendering of other tracks are not differentiated like the default mapnik layer. Somehow the dash pattern does not work
                    <filter additional="tracktype=grade1" pathEffect=""/>
                    <filter additional="tracktype=grade2" pathEffect="10_3"/>
                    <filter additional="tracktype=grade3" pathEffect="5_3"/>
                    <filter additional="tracktype=grade4" pathEffect="4_3_2_3"/>
                    <filter additional="tracktype=grade5" pathEffect="2_3"/>

-The tracks are a bit too dark and prominent, maybe replace it for the default code (except tracktype=grade1)?

                        <filter tag="highway" value="track" color="#996600" pathEffect="4_2">
                                <filter appMode="pedestrian" test="$hmRendered" minzoom="14" strokeWidth="2"/>
                                <filter appMode="pedestrian" minzoom="15" strokeWidth="2"/>
                                <filter test="$hmRendered" minzoom="12" maxzoom="12" strokeWidth="0.5"/>
                                <filter test="$hmRendered" minzoom="13" strokeWidth="1"/>
                                <filter minzoom="14" strokeWidth="1"/>
                                <groupFilter>
                                        <!-- Dash pattern: solid(100%), long-dashed(77%), short-dashed(63%), dash-dotted(50%), dotted(50%), dotted2(40%), short-dashed-narrow-spaced(66%) for not-specified -->
                                        <filter additional="tracktype=grade1" pathEffect=""/>
                                        <filter additional="tracktype=grade2" pathEffect="10_3"/>
                                        <filter additional="tracktype=grade3" pathEffect="5_3"/>
                                        <filter additional="tracktype=grade4" pathEffect="4_3_2_3"/>
                                        <filter additional="tracktype=grade5" pathEffect="2_3"/>
                                </groupFilter>

- Render highway=path & bicycle=designated as highway=cycleway, this combination is used frequently in Germany
- Add a dashed pattern on highway=primary/secondary/tertiary/unclassified with bicycle=no
 

Harry van der Wolf

unread,
Nov 3, 2013, 11:26:41 AM11/3/13
to osmand



2013/11/3 OpenFietsMap * <openfie...@gmail.com>

Thanks Harry,

The cyclenodes (fietsknooppunten) are also on my wish list.

Also on mine. Already quite some time. Currently either the route number (like LF15) is printed, or when available, the nodenumber.
The node number, when available, is only displayed on low zoom numbers. On higer zoom numers the route name is displayed (like LF15)

 
I tried to render them in the points section with a tourism info poi (which shows up)

    <point>
               <!-- Bicycle profile priority icons -->
                <group appMode="bicycle" iconOrder="90">
                <filter minzoom="11" icon="tourism_information" tag="rcn_ref" value=""/>
                </group>
    </point>


As such this is an excellent idea. It will not work like this, but as a temporary solution and work-around I filtered the netherlands osm file for rcn_ref, converted that into a POI style kind of osm, with OsmAndMapCreator I created a POI database obf  Netherlands_rcn_ref.obf

If you create your own poi filter on the tourism information section you will see the fietsknooppunten always on the map.
see http://code.google.com/p/osmand/wiki/HowToFilterPOIs.

I just found out though that the personal poi filters can't be saved anymore and are therefore not active anymore upon restart of Osmand. I filed a bug for it: https://code.google.com/p/osmand/issues/detail?id=2211

Anyway: If you download the attached render.xml into the osmand/rendering folder and if you download and unzip the Netherlands_rcn_ref.obf.zip in the osmand folder, you can search on "fietsknooppunt" and with the layers option you can display them in the map.

Harry
Cycle-map-OFM.render.xml
Netherlands_rcn_ref.obf.zip

Harry van der Wolf

unread,
Nov 3, 2013, 11:31:52 AM11/3/13
to osmand
And a low-quality screen capture for the visually oriented types.

Harry


2013/11/3 Harry van der Wolf <hvd...@gmail.com>
fietsknooppunt.jpg

Andre

unread,
Nov 3, 2013, 11:49:46 AM11/3/13
to osm...@googlegroups.com

Nice! But why can't I download or open the zip in google mail? An I the only one?

Andre.oid.

Op 3 nov. 2013 17:26 schreef "Harry van der Wolf" <hvd...@gmail.com>:
--

Poiz Phil

unread,
Nov 16, 2019, 2:07:23 PM11/16/19
to Osmand
Hello all, I'm new to OSMand and interested in developping a render file with a look similar to the opencyclemap one.
The openfietsmap is an excellent debut for what I'm looking for, thank you Harry for your job. 
Googling a bit around, I found a version of it dated  07 may 2014. Is there a more recent version available? 
Something of lesser importance : the highway:byway tag is deprecated, maybe some other enhancements were made that could save me some time redesigning the render.xml .
Thank you!
Phil
Reply all
Reply to author
Forward
0 new messages