MAPSFORGE 0.30 - OpenCycleMap?
+2
chilobo
OpenCyclist
6 posters
OruxMaps :: ENGLISH :: IMPROVEMENTS
Page 1 of 2
Page 1 of 2 • 1, 2
MAPSFORGE 0.30 - OpenCycleMap?
Hello together,
MAPSFORGE 0.30 is approaching. Would it be supported by Oruxmaps? Someone of the MAPSFORGE team told me, that it might be possible with their new version to show cycle routes like in OpenCycleMap. Would Oruxmaps support this feature as well? There are some many bicyclists longing for such a feature!
Thank you very much for your marvellous app !!!
OC
PS: biking definitely is the future of transfer .
MAPSFORGE 0.30 is approaching. Would it be supported by Oruxmaps? Someone of the MAPSFORGE team told me, that it might be possible with their new version to show cycle routes like in OpenCycleMap. Would Oruxmaps support this feature as well? There are some many bicyclists longing for such a feature!
Thank you very much for your marvellous app !!!
OC
PS: biking definitely is the future of transfer .
OpenCyclist- Cantidad de envíos : 4
Fecha de inscripción : 2012-02-22
Re: MAPSFORGE 0.30 - OpenCycleMap?
OpenCyclist wrote:
MAPSFORGE 0.30 is approaching. Would it be supported by Oruxmaps? Someone of the MAPSFORGE team told me, that it might be possible with their new version to show cycle routes like in OpenCycleMap. Would Oruxmaps support this feature as well? There are some many bicyclists longing for such a feature!
Thank you very much for your marvellous app !!!
I agree!
Last edited by chilobo on Wed Feb 22, 2012 10:18 am; edited 1 time in total (Reason for editing : Hit Return button too early.)
chilobo- Cantidad de envíos : 15
Fecha de inscripción : 2012-02-19
Re: MAPSFORGE 0.30 - OpenCycleMap?
Probably 0.3 will be published this month
groups.google.com/group/mapsforge-dev/browse_thread/thread/bf54734c6050ac72
groups.google.com/group/mapsforge-dev/browse_thread/thread/bf54734c6050ac72
OpenCyclist- Cantidad de envíos : 4
Fecha de inscripción : 2012-02-22
Re: MAPSFORGE 0.30 - OpenCycleMap?
0.3.0 is out and it is definitely worth to support it!
I installed updated plug-in for osmosis, and I see it generates twice smaller map files compared to 0.2.4.
Also, it supports custom rendering themes!!! Yes, it allows one to customize render - colors, symbols, strokes etc - similar to Osmarender rule files. Theme can be changed on the fly.
New format (v. 3) is not compatible with old one (v 2), and not rendered by OruxMaps.
Please, support mapsforge 0.3.0
I installed updated plug-in for osmosis, and I see it generates twice smaller map files compared to 0.2.4.
Also, it supports custom rendering themes!!! Yes, it allows one to customize render - colors, symbols, strokes etc - similar to Osmarender rule files. Theme can be changed on the fly.
New format (v. 3) is not compatible with old one (v 2), and not rendered by OruxMaps.
Please, support mapsforge 0.3.0
vkondra- Cantidad de envíos : 9
Fecha de inscripción : 2010-12-29
Re: MAPSFORGE 0.30 - OpenCycleMap?
vkondra wrote:0.3.0 is out and it is definitely worth to support it!
I installed updated plug-in for osmosis, and I see it generates twice smaller map files compared to 0.2.4.
Also, it supports custom rendering themes!!! Yes, it allows one to customize render - colors, symbols, strokes etc - similar to Osmarender rule files. Theme can be changed on the fly.
New format (v. 3) is not compatible with old one (v 2), and not rendered by OruxMaps.
Please, support mapsforge 0.3.0
Hi;
Support for offline mapsforge maps (0.3.x):
--> http://www.oruxmaps.com/cs
orux
orux- Cantidad de envíos : 3946
Fecha de inscripción : 2009-07-06
Re: MAPSFORGE 0.30 - OpenCycleMap?
Yes, it was fast!
With map v. 3, when i pan to some location and zoom, map jumps to the center of map.
Also, if i load map v. 2 for the same area and try to search other maps here, one v.3 is not listed.
With map v. 3, when i pan to some location and zoom, map jumps to the center of map.
Also, if i load map v. 2 for the same area and try to search other maps here, one v.3 is not listed.
vkondra- Cantidad de envíos : 9
Fecha de inscripción : 2010-12-29
Re: MAPSFORGE 0.30 - OpenCycleMap?
Maps are awesome !! But same problem here with jump back to centre wi every zoom level.
I hope there will be cycle render themes soon .
I hope there will be cycle render themes soon .
OpenCyclist- Cantidad de envíos : 4
Fecha de inscripción : 2012-02-22
Re: MAPSFORGE 0.30 - OpenCycleMap?
OpenCyclist wrote:Maps are awesome !! But same problem here with jump back to centre wi every zoom level.
I hope there will be cycle render themes soon .
Hi;
try with last beta --> www.oruxmaps.com
orux
orux- Cantidad de envíos : 3946
Fecha de inscripción : 2009-07-06
Re: MAPSFORGE 0.30 - OpenCycleMap?
Same jump to the center of map when zooming
vkondra- Cantidad de envíos : 9
Fecha de inscripción : 2010-12-29
Re: MAPSFORGE 0.30 - OpenCycleMap?
vkondra wrote:Same jump to the center of map when zooming
Remember to use 'reset map list' button in the maps selector dialog.
orux
orux- Cantidad de envíos : 3946
Fecha de inscripción : 2009-07-06
Re: MAPSFORGE 0.30 - OpenCycleMap?
Yes, my fault. After map list refresh, zoom works fine.
Great!
Great!
vkondra- Cantidad de envíos : 9
Fecha de inscripción : 2010-12-29
Re: MAPSFORGE 0.30 - OpenCycleMap?
vkondra wrote:0.3.0 is out and it is definitely worth to support it!
I installed updated plug-in for osmosis, and I see it generates twice smaller map files compared to 0.2.4.
Also, it supports custom rendering themes!!! Yes, it allows one to customize render - colors, symbols, strokes etc - similar to Osmarender rule files. Theme can be changed on the fly.
New format (v. 3) is not compatible with old one (v 2), and not rendered by OruxMaps.
Please, support mapsforge 0.3.0
Under what file name and at what place in the directory structure does on have to put such an XML-file?
In the openstreetmap forum -->
forum.openstreetmap.org/viewtopic.php?pid=233283#
some simple XML-descriptions can be found. Where do I place them to start testing?
Thank you
Christian
chilobo- Cantidad de envíos : 15
Fecha de inscripción : 2012-02-19
Re: MAPSFORGE 0.30 - OpenCycleMap?
Hi Christian,
Snipplet from the Manual:
"
You can add a render theme for each map. If your map is 'bremen.map' then put the render theme in the same folder, with name: 'bremen.map.xml'. If no theme is found, default 'osmarender' theme will be used.
"
greets
TheDuke
Snipplet from the Manual:
"
You can add a render theme for each map. If your map is 'bremen.map' then put the render theme in the same folder, with name: 'bremen.map.xml'. If no theme is found, default 'osmarender' theme will be used.
"
greets
TheDuke
TheDuke- Cantidad de envíos : 41
Fecha de inscripción : 2012-01-09
Re: MAPSFORGE 0.30 - OpenCycleMap?
Thank you for your answer:
I tried to use your information, having a map "hessen.map" in sdcard/external_sd/Orux/mapfiles/mapsforge, creating a file "hessen.map.xml" in the same directory with
The result: The map was rendered as before
TheDuke wrote:
Snipplet from the Manual:
"
You can add a render theme for each map. If your map is 'bremen.map' then put the render theme in the same folder, with name: 'bremen.map.xml'. If no theme is found, default 'osmarender' theme will be used.
"
greets
TheDuke
I tried to use your information, having a map "hessen.map" in sdcard/external_sd/Orux/mapfiles/mapsforge, creating a file "hessen.map.xml" in the same directory with
- Code:
<renderer name="bicycle" depends="default" defaultColor="#f1eee8" defaultNightColor="#003333">
<order>
<filter orderType="line">
<filter tag="highway" value="cycleway" order="59" />
</filter>
</order>
<line>
<filter tag="highway" value="cycleway" minzoom="14" color="#00ff00" strokeWidth="3" pathEffect="10_3" />
</line>
</renderer>
The result: The map was rendered as before
chilobo- Cantidad de envíos : 15
Fecha de inscripción : 2012-02-19
Re: MAPSFORGE 0.30 - OpenCycleMap?
chilobo wrote:Thank you for your answer:TheDuke wrote:
Snipplet from the Manual:
"
You can add a render theme for each map. If your map is 'bremen.map' then put the render theme in the same folder, with name: 'bremen.map.xml'. If no theme is found, default 'osmarender' theme will be used.
"
greets
TheDuke
I tried to use your information, having a map "hessen.map" in sdcard/external_sd/Orux/mapfiles/mapsforge, creating a file "hessen.map.xml" in the same directory with
- Code:
<renderer name="bicycle" depends="default" defaultColor="#f1eee8" defaultNightColor="#003333">
<order>
<filter orderType="line">
<filter tag="highway" value="cycleway" order="59" />
</filter>
</order>
<line>
<filter tag="highway" value="cycleway" minzoom="14" color="#00ff00" strokeWidth="3" pathEffect="10_3" />
</line>
</renderer>
The result: The map was rendered as before
Hi;
Are you sure it's a valid theme?
Default theme format:
- Code:
<?xml version="1.0" encoding="UTF-8"?>
<rendertheme xmlns="http://mapsforge.org/renderTheme" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://mapsforge.org/renderTheme ../renderTheme.xsd" version="1" map-background="#f8f8f8">
<!-- ways -->
<rule e="way" k="*" v="*">
<!-- landuse -->
<rule e="way" k="landuse" v="*">
<rule e="way" k="landuse" v="military">
<area src="jar:/org/mapsforge/android/maps/rendertheme/osmarender/patterns/military.png" stroke="#e4e4e4"
stroke-width="0.2" />
</rule>
<rule e="way" k="landuse" v="residential|farmyard">
<area fill="#e4e4e4" />
</rule>
<rule e="way" k="landuse" v="retail">
<area fill="#ffebeb" stroke="#e4e4e4" stroke-width="0.2" />
</rule>
<rule e="way" k="landuse" v="industrial|brownfield|railway">
<area fill="#ecd8ff" stroke="#e4e4e4" stroke-width="0.2" />
</rule>
<rule e="way" k="landuse" v="commercial">
<area fill="#ffffc0" stroke="#e4e4e4" stroke-width="0.2" />
</rule>
<rule e="way" k="landuse" v="construction|greenfield">
<area fill="#a47c41" stroke="#e4e4e4" stroke-width="0.2" />
</rule>
<rule e="way" k="landuse" v="garages">
<area fill="#d6d6e4" />
</rule>
<rule e="way" k="*" v="*" zoom-min="16">
<caption k="name" font-style="bold" font-size="10" fill="#4040ff" stroke="#ffffff" stroke-width="2.0" />
</rule>
</rule>
<!--
more...
-->
<!-- tourism -->
<rule e="node" k="tourism" v="*">
<rule e="node" k="tourism" v="camp_site" zoom-min="17">
<symbol src="jar:/org/mapsforge/android/maps/rendertheme/osmarender/symbols/campSite.png" />
</rule>
<rule e="node" k="tourism" v="hostel" zoom-min="17">
<symbol src="jar:/org/mapsforge/android/maps/rendertheme/osmarender/symbols/hostel.png" />
</rule>
<rule e="node" k="tourism" v="hotel" zoom-min="17">
<symbol src="jar:/org/mapsforge/android/maps/rendertheme/osmarender/symbols/hotel.png" />
</rule>
<rule e="node" k="tourism" v="information" zoom-min="17">
<symbol src="jar:/org/mapsforge/android/maps/rendertheme/osmarender/symbols/information.png" />
</rule>
<rule e="node" k="tourism" v="viewpoint" zoom-min="15">
<symbol src="jar:/org/mapsforge/android/maps/rendertheme/osmarender/symbols/viewpoint.png" />
</rule>
<rule e="node" k="*" v="*" zoom-min="17">
<caption k="name" font-style="bold" font-size="10" fill="#4040ff" stroke="#ffffff" stroke-width="2.0" />
</rule>
</rule>
</rule>
</rendertheme>
orux- Cantidad de envíos : 3946
Fecha de inscripción : 2009-07-06
Re: MAPSFORGE 0.30 - OpenCycleMap?
I played around several hours with the new custom theme feature for Orux/Mapsforge.
--- well ---
Its working,
BUT
so far I found out, creating a theme similar to Andy's OCM is FAR from being an easy task.
There are a LOT of different types of cycle lanes/ways, different to render for each zoomlevel,
a LOT of country specific tags/types (eg. cycle networks in NL/BE) aso..
Even the start is not easy, the Osmarender style from the Mapsforge-site couses a black rendered Map at Orux,
so there is NO solid starting point for anyone.
I suppose this would be a full-time job for many weeks.
Regards
Chris
--- well ---
Its working,
BUT
so far I found out, creating a theme similar to Andy's OCM is FAR from being an easy task.
There are a LOT of different types of cycle lanes/ways, different to render for each zoomlevel,
a LOT of country specific tags/types (eg. cycle networks in NL/BE) aso..
Even the start is not easy, the Osmarender style from the Mapsforge-site couses a black rendered Map at Orux,
so there is NO solid starting point for anyone.
I suppose this would be a full-time job for many weeks.
Regards
Chris
kech61- Cantidad de envíos : 67
Fecha de inscripción : 2012-01-30
Re: MAPSFORGE 0.30 - OpenCycleMap?
kech61 wrote:I played around several hours with the new custom theme feature for Orux/Mapsforge.
--- well ---
Its working,
BUT
so far I found out, creating a theme similar to Andy's OCM is FAR from being an easy task.
There are a LOT of different types of cycle lanes/ways, different to render for each zoomlevel,
a LOT of country specific tags/types (eg. cycle networks in NL/BE) aso..
Even the start is not easy, the Osmarender style from the Mapsforge-site couses a black rendered Map at Orux,
so there is NO solid starting point for anyone.
I suppose this would be a full-time job for many weeks.
Regards
Chris
Hello;
Certainly need a tool to edit the themes; by hand is very difficult.
orux
orux- Cantidad de envíos : 3946
Fecha de inscripción : 2009-07-06
Re: MAPSFORGE 0.30 - OpenCycleMap?
orux wrote:
Certainly need a tool to edit the themes; by hand is very difficult.
orux
I just had some minutes to try, got the same result: black screen. Just placing
- Code:
<?xml version="1.0" encoding="UTF-8"?>
<rendertheme version="1" map-background="#f8f8f8">
<!-- matches ways with a "highway=cycleway" tag -->
<rule e="way" k="highway" v="cycleway" zoom-min="14">
<line stroke="#8800FF" stroke-width="2" />
</rule>
</rendertheme>
@orux: What sort of editor / herramiento do we need? eclipse, Textpad, notepad++, ..??
thanxs
Christian
chilobo- Cantidad de envíos : 15
Fecha de inscripción : 2012-02-19
Re: MAPSFORGE 0.30 - OpenCycleMap?
chilobo wrote:orux wrote:
Certainly need a tool to edit the themes; by hand is very difficult.
orux
I just had some minutes to try, got the same result: black screen. Just placingat least produced a display where some cycle routes are displayed in violett - but of course nothing else. So it should be possible to advance.
- Code:
<?xml version="1.0" encoding="UTF-8"?>
<rendertheme version="1" map-background="#f8f8f8">
<!-- matches ways with a "highway=cycleway" tag -->
<rule e="way" k="highway" v="cycleway" zoom-min="14">
<line stroke="#8800FF" stroke-width="2" />
</rule>
</rendertheme>
@orux: What sort of editor / herramiento do we need? eclipse, Textpad, notepad++, ..??
thanxs
Christian
Hi,
Something that I think does not exist yet for example, a map viewer that shows for editing on the left all the theme rules, and that may be changing over the map you are viewing.
orux
orux- Cantidad de envíos : 3946
Fecha de inscripción : 2009-07-06
Re: MAPSFORGE 0.30 - OpenCycleMap?
kech61 wrote:
Even the start is not easy, the Osmarender style from the Mapsforge-site couses a black rendered Map at Orux,
so there is NO solid starting point for anyone.
Shame on me...
The (simple) problem is that all symbols and patterns need an absolute path to render.
So "jar:" have to be replaced by:
"jar:/org/mapsforge/android/maps/rendertheme/osmarender/"
Its was clear to see after I renamed oruxmaps.apk to oruxmaps[##].apk.zip and checked the structure of the app (with Win/Totalcommander).
The original theme ist here:
org\mapsforge\android\maps\rendertheme\osmarender\osmarender.xml
regards
Chris
kech61- Cantidad de envíos : 67
Fecha de inscripción : 2012-01-30
Re: MAPSFORGE 0.30 - OpenCycleMap?
Shame on me...
The (simple) problem is that all symbols and patterns need an absolute path to render.
So "jar:" have to be replaced by:
"jar:/org/mapsforge/android/maps/rendertheme/osmarender/"
Its was clear to see after I renamed oruxmaps.apk to oruxmaps[##].apk.zip and checked the structure of the app (with Win/Totalcommander).
The original theme ist here:
org\mapsforge\android\maps\rendertheme\osmarender\osmarender.xml
I guess, in
https://getsatisfaction.com/locus/topics/update_locus_to_new_version_of_vector_map_library_mapsforge_0_3_0
they discuss the same problem. There tommy62 mentiones another type of paths:
Menion, just one comment regarding relative paths fo rrendering styles.
Seems that you hardcoded the name of the theme directory, the osmarender test.xml contains this relative path (example):
symbol src="fileRel:/testing_style/symbols/theatre.png"
Will these changes be made in some beta-version of orux or do I have to do them on my own?
Thank you.
Christian
chilobo- Cantidad de envíos : 15
Fecha de inscripción : 2012-02-19
Re: MAPSFORGE 0.30 - OpenCycleMap?
In yet another forum I found the following snippet:
This up to now produces a black screen - but this is certainly caused by the above mentioned bug.
Anyway: cycle routes in openstreetmap are organized by relations, so this seems to point in the right direction. Obviously one has to set
showRelationRoute="yes", but the original mapsforge theme doesn't seem to have a section where one can include this.
Greetings Christian
- Code:
<rules
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:svg="http://www.w3.org/2000/svg"
data="data.osm"
svgBaseProfile="full"
scale="1"
symbolScale="1"
textAttenuation="14"
minimumMapWidth="1"
minimumMapHeight="1"
withOSMLayers="yes"
withUntaggedSegments="no"
showScale="no"
showGrid="no"
showBorder="no"
showLicense="no"
interactive="no"
showRelationRoute="yes">
<rule e="way" k="highway" v="cycleway" zoom-min="14">
<line stroke="#8800FF" stroke-width="2" />
</rule>
<rule e="relation" k="type" v="route" layer="4">
<rule e="relation" k="route" v="bicycle" layer="4">
<rule e="relation" k="network" v="lcn" layer="4">
<line class="relationroute-way relationroute-blue" smart-linecap="no"/>
<circle class="relationroute-blue relationroute-stop" r="0.35px"/>
</rule>
<rule e="relation" k="network" v="rcn|ncn" layer="4">
<line class="relationroute-way relationroute-green" smart-linecap="no"/>
<circle class="relationroute-green relationroute-stop" r="0.35px"/>
</rule>
<rule e="relation" k="operator" v="Münsterland Tourismus" layer="4">
<line class="relationroute-way relationroute-red" smart-linecap="no"/>
<circle class="relationroute-red relationroute-stop" r="0.35px"/>
</rule>
</rule>
</rule>
</rules>
This up to now produces a black screen - but this is certainly caused by the above mentioned bug.
Anyway: cycle routes in openstreetmap are organized by relations, so this seems to point in the right direction. Obviously one has to set
showRelationRoute="yes", but the original mapsforge theme doesn't seem to have a section where one can include this.
Greetings Christian
chilobo- Cantidad de envíos : 15
Fecha de inscripción : 2012-02-19
Re: MAPSFORGE 0.30 - OpenCycleMap?
chilobo wrote:In yet another forum I found the following snippet:
.....
This cant work:
- The valid options for "e" are: way, node, any (no "relation")
- <rules> is no valid keyword
This up to now produces a black screen - but this is certainly caused by the above mentioned bug.
If you mean the path to the *.png's - this is no bug, if the path is not valid no app can find ts resources.
If you want to debug the themes just install the mapviewer.apk from mapsforge on your phone, this app produces real error-popups and not only a black screen.
But be carefull, it caches even erratic themes so you must switch back to the osmarender theme, upload the new theme and switch to these.
... and now lets go cycling on real tracks instead of rendering some ...
regards
Chris
kech61- Cantidad de envíos : 67
Fecha de inscripción : 2012-01-30
Re: MAPSFORGE 0.30 - OpenCycleMap?
Maybe you could address your issues here:
groups.google.com/group/mapsforge-dev
The mapsforge team is very kind and open for comments
groups.google.com/group/mapsforge-dev
The mapsforge team is very kind and open for comments
OpenCyclist- Cantidad de envíos : 4
Fecha de inscripción : 2012-02-22
Page 1 of 2 • 1, 2
Similar topics
» Mapsforge California map => forced close
» Vector graphics format
» Mapsforge render themes
» mapsforge xml selection
» mapsforge styles in 5.5.4beta3
» Vector graphics format
» Mapsforge render themes
» mapsforge xml selection
» mapsforge styles in 5.5.4beta3
OruxMaps :: ENGLISH :: IMPROVEMENTS
Page 1 of 2
Permissions in this forum:
You cannot reply to topics in this forum