Author Topic: Theme developing question  (Read 28581 times)

Offline popej

  • More than Newbie
  • *
  • Posts: 39
    • View Profile
    • GMapTool
Re: Theme developing question
« Reply #45 on: October 11, 2014, 20:43:29 »
It's probably this polygon:
https://www.openstreetmap.org/relation/1757828

I don't know why it is visible. On OSM map it looks the same, when you zoom in.
popej
 

Offline Wojtas82

  • More than Newbie
  • *
  • Posts: 92
  • Thanked: 1 times
    • View Profile
  • Device: Xperia S
Re: Theme developing question
« Reply #46 on: October 11, 2014, 20:51:57 »
Nice find  :o I checked on few different themes and it is visible too. Any chance to exclude it from your map? :)
 

Offline popej

  • More than Newbie
  • *
  • Posts: 39
    • View Profile
    • GMapTool
Re: Theme developing question
« Reply #47 on: October 11, 2014, 21:20:09 »
I can filter it out, but question is why it is visible at all? Neither tag-mapping.xml nor style should process it. Is there some display procedure for unknown polygons?
popej
 

Offline Wojtas82

  • More than Newbie
  • *
  • Posts: 92
  • Thanked: 1 times
    • View Profile
  • Device: Xperia S
Re: Theme developing question
« Reply #48 on: October 11, 2014, 21:33:37 »
To be honest I don't know. By the way, if you will filter it out could you also add these tags tag-mapping.xml?
-incline
-mtb:scale:uphill
-footway=crossing and cycleway=crossing (I want to add zebras for combinations like here http://www.openstreetmap.org/way/232025392 )
Thanks in advance.  :D
 

Offline popej

  • More than Newbie
  • *
  • Posts: 39
    • View Profile
    • GMapTool
Re: Theme developing question
« Reply #49 on: October 11, 2014, 21:38:42 »
Look at history of this polygon. 2 days ago it was tagged as "building=house". That is the reason, next compilation should be correct.

I will add these tags.
popej
 

Offline Wojtas82

  • More than Newbie
  • *
  • Posts: 92
  • Thanked: 1 times
    • View Profile
  • Device: Xperia S
Re: Theme developing question
« Reply #50 on: October 11, 2014, 21:43:06 »
That explains everything. :) Good move, I didn't check the history but now I can see it had the same colour as buildings :)
 

Offline Wojtas82

  • More than Newbie
  • *
  • Posts: 92
  • Thanked: 1 times
    • View Profile
  • Device: Xperia S
Re: Theme developing question
« Reply #51 on: October 11, 2014, 22:09:42 »
Popej, I also tried to display proposed routes which are included in your map:
      <osm-tag key="state" value="proposed" zoom-appear="12" />

I tried many combinations and I can't display them anyway. Here is last combination I tried:

   <rule e="way" k="state" v="proposed">
      <line stroke="#FF0000" stroke-width="10" stroke-linecap="butt" />
   </rule>

Maybe someone could help with this one?

Here's an example proposed route
https://www.openstreetmap.org/relation/2470458
« Last Edit: October 11, 2014, 22:12:22 by Wojtas82 »
 

Offline popej

  • More than Newbie
  • *
  • Posts: 39
    • View Profile
    • GMapTool
Re: Theme developing question
« Reply #52 on: October 11, 2014, 22:32:26 »
I have not transfered tag "state" from relation to ways. I can add it.

Problem is with tag "incline". As I understand tag-mapping rules, value of a tag should be added directly. I have added "up" and "down" but no numeric values. This could be corrected with tag-transform process, but currently I'm not doing it.
popej
 

Offline Wojtas82

  • More than Newbie
  • *
  • Posts: 92
  • Thanked: 1 times
    • View Profile
  • Device: Xperia S
Re: Theme developing question
« Reply #53 on: October 11, 2014, 22:45:23 »
Ok, Thanks a lot! (btw historic day for us  ;D :)
 

Offline popej

  • More than Newbie
  • *
  • Posts: 39
    • View Profile
    • GMapTool
Re: Theme developing question
« Reply #54 on: October 11, 2014, 23:36:15 »
I have updated my map of Poland. Please try new tags.
popej
 

Offline Wojtas82

  • More than Newbie
  • *
  • Posts: 92
  • Thanked: 1 times
    • View Profile
  • Device: Xperia S
Re: Theme developing question
« Reply #55 on: October 11, 2014, 23:41:07 »
Link doesn't work ...
 

Offline popej

  • More than Newbie
  • *
  • Posts: 39
    • View Profile
    • GMapTool
Re: Theme developing question
« Reply #56 on: October 11, 2014, 23:48:45 »
I forgot to clear caches, try again.
popej
 

Offline Wojtas82

  • More than Newbie
  • *
  • Posts: 92
  • Thanked: 1 times
    • View Profile
  • Device: Xperia S
Re: Theme developing question
« Reply #57 on: October 11, 2014, 23:50:09 »
All good, downloading.
 

Offline jusc

  • Global Moderator
  • Professor of Locus
  • *****
  • Posts: 1898
  • Thanked: 19 times
    • View Profile
  • Device: Samsung Galaxy S2 and Note 2
Re: Theme developing question
« Reply #58 on: October 12, 2014, 13:03:52 »

You can look at my tag-mapping.xml, it is included in archive with map. There is no "mtb:scale:uphill". I don't process OSM data with tag-transform, so there are raw OSM names and values for tags like sac_scale.

Which style are you using?

I could make more maps but the main problem is that I'm not an active Locus user and it is difficult for me to maintain these maps properly. But I can compile Germany anyway.

Style? Do you mean Theme?
http://forum.locusmap.eu/index.php?topic=4057.0 I´m always changing it for my own use outside  ;D
Regards J.
 

Offline popej

  • More than Newbie
  • *
  • Posts: 39
    • View Profile
    • GMapTool
Re: Theme developing question
« Reply #59 on: October 12, 2014, 17:31:17 »
Thanks, I have downloaded your V-Scale2_Pure and couldn't find rules for uphill marking.
popej