Author Topic: Theme developing question  (Read 27388 times)

Offline 0n1y

  • More than Newbie
  • *
  • Posts: 10
    • View Profile
  • Device: Moto G
Re: Theme developing question
« Reply #120 on: November 04, 2014, 22:52:46 »
hmm, is it possible to convert Oruxmaps themes to Locus? Tiramisu 2.0b and SimplyHike 0.98 are just wonderful.
 

Offline Tobias

  • More than Newbie
  • *
  • Posts: 95
  • Thanked: 11 times
    • View Profile
    • Elevate themes
Re: Theme developing question
« Reply #121 on: November 05, 2014, 10:36:14 »
SimplyHike is made for mapsforge 0.3 which is compatible to Locus as it's the same basis. So converting it is easy - just delete all but one xml-file (the one you want to use) from the theme folder, as Locus only allows one xml per folder. If you want to use several xml files, copy the whole theme folder and rename it, and delete again all but one xml file.
Tiramisu 2.0 Beta is made for Oruxmaps Beta which uses mapsforge 0.4, and maybe Maki has used some stuff which Locus doesn't support. At least the tile resolution is 4 times as much, so it would look different. So you can try the same as for SimplyHike written above, and see how it works.
developer of Elevate mapstyle for OpenAndroMaps
 

Offline 0n1y

  • More than Newbie
  • *
  • Posts: 10
    • View Profile
  • Device: Moto G
Re: Theme developing question
« Reply #122 on: November 06, 2014, 00:27:12 »
done, both works excellent, thanks for the detailed explanation.
 

Offline Wojtas82

  • More than Newbie
  • *
  • Posts: 92
  • Thanked: 1 times
    • View Profile
  • Device: Xperia S
Re: Theme developing question
« Reply #123 on: November 07, 2014, 22:02:15 »
Hi Locus Team, great job with a new Locus version. I can confirm "dy" fully working - no gaps! Thanks a lot.
 

Offline menion

  • Administrator
  • Professor of Locus
  • *****
  • Posts: 11295
  • Thanked: 283 times
    • View Profile
    • http://www.asamm.com
  • Device: SGS7
Re: Theme developing question
« Reply #124 on: November 09, 2014, 22:25:51 »
perfect, glad to hear :).

Just to inform you ... I did so much updates and improvements to current implementation of MapsForge lib in Locus, that there are no plans to update for later 0.4+ version. If there will be in future any problem with compatibility of themes, feel free to open discussion on this topic. Usually, there is any solution ;)
Ideas, wishes, problems
Advanced topics, public discussion, sharing of knowledges, testing beta versions: you're here!
 

Offline Wojtas82

  • More than Newbie
  • *
  • Posts: 92
  • Thanked: 1 times
    • View Profile
  • Device: Xperia S
Re: Theme developing question
« Reply #125 on: November 11, 2014, 14:56:04 »
Hey. Just a quick question. Is there any way to set gap lengths between "symbol"  icons (not "lineSymbol")?" Dy would be nice as well. I'm trying to configure icons for bike routes. Thanks in advance.
 

Offline voldapet

  • Administrator
  • Padavan of Locus
  • *****
  • Posts: 482
  • Thanked: 10 times
    • View Profile
Re: Theme developing question
« Reply #126 on: November 11, 2014, 15:26:07 »
@Wojtas82
Sorry this is tricky part we didn't solve yet (at least as I can remember). OSM ways are cropped  in Mapsforge format into MetaTiles and we're not able to link the same way on two metatiles. For this reason is complicated to compute the "gap" along specific way.  Do you know if MapsForge 0.4v enables such rules?
 

Offline Wojtas82

  • More than Newbie
  • *
  • Posts: 92
  • Thanked: 1 times
    • View Profile
  • Device: Xperia S
Re: Theme developing question
« Reply #127 on: November 12, 2014, 09:22:32 »
@Wojtas82
Sorry this is tricky part we didn't solve yet (at least as I can remember). OSM ways are cropped  in Mapsforge format into MetaTiles and we're not able to link the same way on two metatiles. For this reason is complicated to compute the "gap" along specific way.  Do you know if MapsForge 0.4v enables such rules?

Hi
I think these are the attributes supported.
Code: [Select]
        <xs:complexType name="symbol">
                <xs:attribute name="id" type="xs:string" use="optional" />
                <xs:attribute name="cat" type="xs:string" use="optional" />
                <xs:attribute name="priority" type="xs:integer" use="optional" default="0"/>
                <xs:attribute name="src" type="tns:src" use="required" />
                <xs:attribute name="symbol-scaling" type="tns:scaling" use="optional" default="default"/>
                <xs:attribute name="symbol-width" type="xs:positiveInteger" use="optional" />
                <xs:attribute name="symbol-height" type="xs:positiveInteger" use="optional" />
                <xs:attribute name="symbol-percent" type="xs:positiveInteger" use="optional" />
    </xs:complexType>

I can't see dy here.
I would use "lineSymbol" but in Locus the icons keep rotating along ways.
That attribute "rotate" would probably solve this problem? Not sure...
Code: [Select]
        <xs:complexType name="lineSymbol">
                <xs:attribute name="cat" type="xs:string" use="optional" />
                <xs:attribute name="dy" type="xs:float" use="optional" default="0" />
                <xs:attribute name="src" type="tns:src" use="required" />
                <xs:attribute name="symbol-scaling" type="tns:scaling" use="optional" default="default"/>
                <xs:attribute name="symbol-width" type="xs:positiveInteger" use="optional" />
                <xs:attribute name="symbol-height" type="xs:positiveInteger" use="optional" />
                <xs:attribute name="symbol-percent" type="xs:positiveInteger" use="optional" />
                <xs:attribute name="align-center" type="xs:boolean" use="optional" default="false" />
                <xs:attribute name="priority" type="xs:integer" use="optional" default="0"/>
                <xs:attribute name="repeat" type="xs:boolean" use="optional" default="false" />
                <xs:attribute name="repeat-gap" type="xs:float" use="optional" default="200" />
                <xs:attribute name="repeat-start" type="xs:float" use="optional" default="30" />
                <xs:attribute name="rotate" type="xs:boolean" use="optional" default="true" />
        </xs:complexType>
 

Offline Wojtas82

  • More than Newbie
  • *
  • Posts: 92
  • Thanked: 1 times
    • View Profile
  • Device: Xperia S
Re: Theme developing question
« Reply #128 on: November 19, 2014, 23:05:47 »
Hi,
I was wondering if that would be possible to eliminate this awful line join?
I know it's a cosmetic issue but maybe? :)


 

Offline voldapet

  • Administrator
  • Padavan of Locus
  • *****
  • Posts: 482
  • Thanked: 10 times
    • View Profile
Re: Theme developing question
« Reply #129 on: November 20, 2014, 09:08:39 »
@Wojtas82

I'm sorry but this is more complicated for us and we aren't able to solve it at this moment. I can only suggest to try join "blue dotted" path into the one long way.

To your proposal about lineSymbol
Unfortunately locus does not support these parameters. But there is small improvement the "symbol" can contain new parametr symbol-width symbol-height. Interesting is also parametr for "line" curve=“cubic”  that renders smooth lines. see http://docs.locusmap.eu/doku.php?id=manual:map_tools:vector_maps_theme_config
 

Offline Wojtas82

  • More than Newbie
  • *
  • Posts: 92
  • Thanked: 1 times
    • View Profile
  • Device: Xperia S
Re: Theme developing question
« Reply #130 on: November 20, 2014, 09:13:24 »
@voldapet
Thanks for the info!
 

Offline john_percy

  • Master of Locus
  • ****
  • Posts: 653
  • Thanked: 91 times
    • View Profile
  • Device: MotoG
Re: Theme developing question
« Reply #131 on: November 21, 2014, 13:10:18 »
But there is small improvement the "symbol" can contain new parametr symbol-width symbol-height....see http://docs.locusmap.eu/doku.php?id=manual:map_tools:vector_maps_theme_config
This is just for Symbol, not lineSymbol? Am I correct?
 

Offline voldapet

  • Administrator
  • Padavan of Locus
  • *****
  • Posts: 482
  • Thanked: 10 times
    • View Profile
Re: Theme developing question
« Reply #132 on: November 21, 2014, 15:37:40 »
Quote from: john_percy
This is just for Symbol, not lineSymbol? Am I correct?
Yes, only for Symbol
 

Offline Wojtas82

  • More than Newbie
  • *
  • Posts: 92
  • Thanked: 1 times
    • View Profile
  • Device: Xperia S
Re: Theme developing question
« Reply #133 on: November 22, 2014, 14:46:55 »
 

Offline popej

  • More than Newbie
  • *
  • Posts: 39
    • View Profile
    • GMapTool
Re: Theme developing question
« Reply #134 on: January 20, 2015, 18:16:02 »
I have cleaned a bit my scripts, that I use for adding marked trails to OSM data and published them on my site,
see file trails-for-locus.7z:
http://www.gmaptool.eu/en/content/locus-poland-osm

I hope someone could find them useful.
popej