OruxMaps
Visit the new forum: <a href="http://www.oruxmaps.com/foro">OruxMaps</a>

Join the forum, it's quick and easy

OruxMaps
Visit the new forum: <a href="http://www.oruxmaps.com/foro">OruxMaps</a>
OruxMaps
Would you like to react to this message? Create an account in a few clicks or log in to continue.

MAPSFORGE 0.30 - OpenCycleMap?

+2
chilobo
OpenCyclist
6 posters

Page 1 of 2 1, 2  Next

Go down

MAPSFORGE 0.30 - OpenCycleMap? Empty MAPSFORGE 0.30 - OpenCycleMap?

Post  OpenCyclist Wed Feb 22, 2012 2:20 am

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 Very Happy!!!


OC


PS: biking definitely is the future of transfer Very Happy.

OpenCyclist

Cantidad de envíos : 4
Fecha de inscripción : 2012-02-22

Back to top Go down

MAPSFORGE 0.30 - OpenCycleMap? Empty Re: MAPSFORGE 0.30 - OpenCycleMap?

Post  chilobo Wed Feb 22, 2012 10:18 am

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 Very Happy!!!

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

Back to top Go down

MAPSFORGE 0.30 - OpenCycleMap? Empty Re: MAPSFORGE 0.30 - OpenCycleMap?

Post  OpenCyclist Wed Feb 22, 2012 6:53 pm

Probably 0.3 will be published this month cheers

groups.google.com/group/mapsforge-dev/browse_thread/thread/bf54734c6050ac72

OpenCyclist

Cantidad de envíos : 4
Fecha de inscripción : 2012-02-22

Back to top Go down

MAPSFORGE 0.30 - OpenCycleMap? Empty Re: MAPSFORGE 0.30 - OpenCycleMap?

Post  vkondra Mon Mar 19, 2012 5:45 pm

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

vkondra

Cantidad de envíos : 9
Fecha de inscripción : 2010-12-29

Back to top Go down

MAPSFORGE 0.30 - OpenCycleMap? Empty Re: MAPSFORGE 0.30 - OpenCycleMap?

Post  orux Tue Mar 20, 2012 7:00 pm

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
orux

Cantidad de envíos : 3946
Fecha de inscripción : 2009-07-06

Back to top Go down

MAPSFORGE 0.30 - OpenCycleMap? Empty Re: MAPSFORGE 0.30 - OpenCycleMap?

Post  vkondra Tue Mar 20, 2012 8:41 pm

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.

vkondra

Cantidad de envíos : 9
Fecha de inscripción : 2010-12-29

Back to top Go down

MAPSFORGE 0.30 - OpenCycleMap? Empty Re: MAPSFORGE 0.30 - OpenCycleMap?

Post  OpenCyclist Tue Mar 20, 2012 9:19 pm

Maps are awesome Very Happy !! But same problem here with jump back to centre wi every zoom level.

I hope there will be cycle render themes soon cheers .

OpenCyclist

Cantidad de envíos : 4
Fecha de inscripción : 2012-02-22

Back to top Go down

MAPSFORGE 0.30 - OpenCycleMap? Empty Re: MAPSFORGE 0.30 - OpenCycleMap?

Post  orux Wed Mar 21, 2012 3:14 pm

OpenCyclist wrote:Maps are awesome Very Happy !! But same problem here with jump back to centre wi every zoom level.

I hope there will be cycle render themes soon cheers .

Hi;

try with last beta --> www.oruxmaps.com

orux
orux
orux

Cantidad de envíos : 3946
Fecha de inscripción : 2009-07-06

Back to top Go down

MAPSFORGE 0.30 - OpenCycleMap? Empty Re: MAPSFORGE 0.30 - OpenCycleMap?

Post  vkondra Wed Mar 21, 2012 6:52 pm

Same jump to the center of map when zooming

vkondra

Cantidad de envíos : 9
Fecha de inscripción : 2010-12-29

Back to top Go down

MAPSFORGE 0.30 - OpenCycleMap? Empty Re: MAPSFORGE 0.30 - OpenCycleMap?

Post  orux Wed Mar 21, 2012 6:58 pm

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
orux

Cantidad de envíos : 3946
Fecha de inscripción : 2009-07-06

Back to top Go down

MAPSFORGE 0.30 - OpenCycleMap? Empty Re: MAPSFORGE 0.30 - OpenCycleMap?

Post  vkondra Wed Mar 21, 2012 7:02 pm

Yes, my fault. After map list refresh, zoom works fine.

Great!

vkondra

Cantidad de envíos : 9
Fecha de inscripción : 2010-12-29

Back to top Go down

MAPSFORGE 0.30 - OpenCycleMap? Empty Re: MAPSFORGE 0.30 - OpenCycleMap?

Post  chilobo Wed Apr 04, 2012 11:29 pm

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

Back to top Go down

MAPSFORGE 0.30 - OpenCycleMap? Empty Re: MAPSFORGE 0.30 - OpenCycleMap?

Post  TheDuke Thu Apr 05, 2012 7:31 am

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

TheDuke

Cantidad de envíos : 41
Fecha de inscripción : 2012-01-09

Back to top Go down

MAPSFORGE 0.30 - OpenCycleMap? Empty Re: MAPSFORGE 0.30 - OpenCycleMap?

Post  chilobo Thu Apr 05, 2012 10:29 am

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 Sad

chilobo

Cantidad de envíos : 15
Fecha de inscripción : 2012-02-19

Back to top Go down

MAPSFORGE 0.30 - OpenCycleMap? Empty Re: MAPSFORGE 0.30 - OpenCycleMap?

Post  orux Thu Apr 05, 2012 3:50 pm

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 Sad

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
orux

Cantidad de envíos : 3946
Fecha de inscripción : 2009-07-06

Back to top Go down

MAPSFORGE 0.30 - OpenCycleMap? Empty Re: MAPSFORGE 0.30 - OpenCycleMap?

Post  orux Thu Apr 05, 2012 3:53 pm

orux
orux

Cantidad de envíos : 3946
Fecha de inscripción : 2009-07-06

Back to top Go down

MAPSFORGE 0.30 - OpenCycleMap? Empty Re: MAPSFORGE 0.30 - OpenCycleMap?

Post  kech61 Fri Apr 06, 2012 1:36 pm

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

kech61

Cantidad de envíos : 67
Fecha de inscripción : 2012-01-30

Back to top Go down

MAPSFORGE 0.30 - OpenCycleMap? Empty Re: MAPSFORGE 0.30 - OpenCycleMap?

Post  orux Fri Apr 06, 2012 5:30 pm

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
orux

Cantidad de envíos : 3946
Fecha de inscripción : 2009-07-06

Back to top Go down

MAPSFORGE 0.30 - OpenCycleMap? Empty Re: MAPSFORGE 0.30 - OpenCycleMap?

Post  chilobo Fri Apr 06, 2012 7:07 pm

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>
at least produced a display where some cycle routes are displayed in violett - but of course nothing else. So it should be possible to advance.

@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

Back to top Go down

MAPSFORGE 0.30 - OpenCycleMap? Empty Re: MAPSFORGE 0.30 - OpenCycleMap?

Post  orux Fri Apr 06, 2012 7:17 pm

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 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>
at least produced a display where some cycle routes are displayed in violett - but of course nothing else. So it should be possible to advance.

@orux: What sort of editor / herramiento do we need? eclipse, Textpad, notepad++, ..??

thanxs
Christian

Hi,

Something that I think does not exist yet Wink 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
orux

Cantidad de envíos : 3946
Fecha de inscripción : 2009-07-06

Back to top Go down

MAPSFORGE 0.30 - OpenCycleMap? Empty Re: MAPSFORGE 0.30 - OpenCycleMap?

Post  kech61 Sat Apr 07, 2012 7:59 am

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

Back to top Go down

MAPSFORGE 0.30 - OpenCycleMap? Empty Re: MAPSFORGE 0.30 - OpenCycleMap?

Post  chilobo Sat Apr 07, 2012 8:33 am


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

Back to top Go down

MAPSFORGE 0.30 - OpenCycleMap? Empty Re: MAPSFORGE 0.30 - OpenCycleMap?

Post  chilobo Sat Apr 07, 2012 8:41 am

In yet another forum I found the following snippet:

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

Back to top Go down

MAPSFORGE 0.30 - OpenCycleMap? Empty Re: MAPSFORGE 0.30 - OpenCycleMap?

Post  kech61 Sat Apr 07, 2012 11:10 am

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 Cool ...

regards
Chris

kech61

Cantidad de envíos : 67
Fecha de inscripción : 2012-01-30

Back to top Go down

MAPSFORGE 0.30 - OpenCycleMap? Empty Re: MAPSFORGE 0.30 - OpenCycleMap?

Post  OpenCyclist Sat Apr 07, 2012 11:32 am

Maybe you could address your issues here:

groups.google.com/group/mapsforge-dev

The mapsforge team is very kind and open for comments flower

OpenCyclist

Cantidad de envíos : 4
Fecha de inscripción : 2012-02-22

Back to top Go down

MAPSFORGE 0.30 - OpenCycleMap? Empty Re: MAPSFORGE 0.30 - OpenCycleMap?

Post  Sponsored content


Sponsored content


Back to top Go down

Page 1 of 2 1, 2  Next

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum