Locus Map - forum

Content & Tools => Themes - Vector maps => Topic started by: jusc on June 27, 2013, 17:33:01

Title: [Theme] V-Scale
Post by: jusc on June 27, 2013, 17:33:01
further development stopped.
new theme in preparation...


2013/08/09 Update of powerlines as proposed by john_percy in viewtopic.php?f=40&t=3187&p=21689#p22858 (http://forum.locusmap.eu/viewtopic.php?f=40&t=3187&p=21689#p22858)

I´ve created a new theme bundle for OpenAndroMaps and maps from Locus store.
What´are the differences to the older Volatile themes?
1.
In older themes, the icons become smaller and smaller as you zoom more into the map
These V(olatile)-Scale themes are full scalable, all icons (.png files) are changed to SVGs (scalable vector graphics). So it´s now possible to let the icons grow while zoom in.
A lot of the icons are inspired from openstreetmap ( https://trac.openstreetmap.org/browser/ ... /map-icons (https://trac.openstreetmap.org/browser/subversion/applications/share/map-icons)).
Some I´ve created by my own.
2.
The streets and the street names are now better visible.
The descriptions (refs) of the cycle and hike routes are placed along the routes for better visible.
3.
I rounded the end of the wider lines for the refs, so the curves are looking a bit smoother and no longer disrupted.

a. V-Scale_Pure
the theme for sightseeing in the city
b. V-Scale_Hike
like a. plus hiking routes
c. V-Scale_Cycle
like a. plus cycle routes and mtb ways. (including track grades and up and down difficulties)
You´ll see also some barriers at zoom level 17 and up.
not yet available OCM and Winter. (I´m thinking about)

The themes are developed with a Samsung Note 2 and controlled with a Galaxy S2 and Defy.
I hope, they are usefull for you with other phones too.
So please let me know.
click for better view
(http://s4.postimg.org/im2tqsc09/VS1.jpg) (http://postimg.org/image/im2tqsc09/)

For installation unzip the bundle in ..Locus/mapsVector/_themes directory of Locus. Don´t forget to restart Locus.

further development stopped.
new theme in preparation...
Title: Re: [Themes] V-Scale
Post by: jusc on June 27, 2013, 17:34:21
more screens
(http://s28.postimg.org/67243t4c9/VS2.jpg) (http://postimg.org/image/67243t4c9/)
Title: Re: [Themes] V-Scale
Post by: fred_999 on June 27, 2013, 20:07:23
Very nice, thank you.

Regards
Fred
Title: Re: [Themes] V-Scale
Post by: eph on August 01, 2013, 18:30:49
Very nice indeed.
One annoying problem, not only with this theme, but more here than with others: it shows almost no street names.
I already opened the xml to see if I can solve it myself, but not sure how Locus decides which names to show and which not?
(It's maybe also related to my "low" WVGA (800 x 480) resolution?)

Is it possible to display more street names, especially when zooming to levels 17-18?
Also the lineweight of the residential streets (white) is very thick.

Sorry if I haven't seen all previous discussions, I'm completely new here  :oops:
Kind regards,
Title: Re: [Themes] V-Scale
Post by: voldapet on August 01, 2013, 18:41:06
Hi,
texts are generally weakness of mapsforge library which is used for rendering of vector map. Anyway there is new test version which contains some improvement in handling of text. Try it If you want: viewtopic.php?f=25&t=3189#p21696 (http://forum.locusmap.eu/viewtopic.php?f=25&t=3189#p21696)
Title: Re: [Themes] V-Scale
Post by: john_percy on August 09, 2013, 09:01:04
I've posted a message about a display bug which shows up on high zooms with power lines here: //http://forum.locusmap.eu/viewtopic.php?f=25&t=3292&start=40#p22857

I edited the power lines section as a workaround:
      <!-- power lines  -->
       <rule e="way" k="power" v="*">
          <rule e="way" k="power" v="line" zoom-max="16">
             <line stroke="#799079" stroke-width="1.2" stroke-dasharray="3,44" stroke-linecap="butt" />
             <line stroke="#799079" stroke-width="0.2" stroke-dasharray="3,7,30,7" stroke-linecap="butt" />
          </rule>
          <rule e="way" k="power" v="line" zoom-min="17" zoom-max="19">
             <line stroke="#799079" stroke-width="0.8" stroke-dasharray="6,65" stroke-linecap="butt" />
             <line stroke="#799079" stroke-width="0.2" stroke-dasharray="6,10,45,10" stroke-linecap="butt" />
          </rule>
          <rule e="way" k="power" v="line" zoom-min="20">
             <line stroke="#799079" stroke-width="0.6" stroke-dasharray="9,88" stroke-linecap="butt" />
             <line stroke="#799079" stroke-width="0.2" stroke-dasharray="9,14,60,14" stroke-linecap="butt" />
          </rule>
          <rule e="way" k="power" v="minor_line" zoom-max="16">
             <line stroke="#799079" stroke-width="1.0" stroke-dasharray="3,32" stroke-linecap="butt" />
             <line stroke="#799079" stroke-width="0.15" stroke-dasharray="3,6,4,4,4,4,4,6" stroke-linecap="butt" />
          </rule>
          <rule e="way" k="power" v="minor_line" zoom-min="17" zoom-max="19">
             <line stroke="#799079" stroke-width="0.7" stroke-dasharray="6,48" stroke-linecap="butt" />
             <line stroke="#799079" stroke-width="0.15" stroke-dasharray="6,9,6,6,6,6,6,9" stroke-linecap="butt" />
          </rule>
          <rule e="way" k="power" v="minor_line" zoom-min="20">
             <line stroke="#799079" stroke-width="0.5" stroke-dasharray="9,64" stroke-linecap="butt" />
             <line stroke="#799079" stroke-width="0.15" stroke-dasharray="9,12,8,8,8,8,8,12" stroke-linecap="butt" />
          </rule>
       </rule>  
Title: Re: [Themes] V-Scale
Post by: jusc on August 09, 2013, 10:17:28
Thank you for this hint.
Can you please give me an example of coordinates to verify it?
And do you see it only with this theme or with other themes too?
Title: Re: [Themes] V-Scale
Post by: john_percy on August 09, 2013, 10:53:11
The points illustrated above are: N 52° 10.877' W 01° 00.129' and N 52° 10.574' W 00° 59.969'

The similar problem occurs with the Locus England map and the Locus built in Hiking & Cycling themes, which display major power lines (though I initially thought they did not).
Title: Re: [Themes] V-Scale
Post by: voldapet on August 09, 2013, 13:40:06
Hi,
do have any example (coordinates) for Locus internal themes, please? I've checked your example with major power lines and they seem OK for internal theme with England map.
Title: Re: [Themes] V-Scale
Post by: kech61 on August 09, 2013, 14:00:09
Quote from: "john_percy"I edited the power lines section as a workaround:

Hi John,

Much better than my renderrule, I'v replaced it with your solution.

Thanks and best regards
Title: Re: [Themes] V-Scale
Post by: john_percy on August 09, 2013, 16:17:51
Quote from: "voldapet"Hi,
do have any example (coordinates) for Locus internal themes, please? I've checked your example with major power lines and they seem OK for internal theme with England map.
At N 52°10.877' W 01°00.130' the minor ticks (blobs) disappear at zoom 20 and above, and the major ticks disappear at zoom 22 (using internal Hiking theme and England map).
Exactly what happens seems to depend on the tile (probably not the orientation of the power line as I first thought) but for most tiles, the minor ticks (blobs) disappear at zoom 22. For example, at zoom 20 at N 52°11.244' W 01°00.538' (where tiles seem to join) the minor ticks are visible on the portion of the power line to the NW, but not to the SE at zoom 20. At that location, at zoom 22, minor ticks disappear on the NW section of the power line and both major and minor ticks disappear on the SE section.
[attachment=0:fj0bw9an]2013-08-09 15.14.07.jpg[/attachment:fj0bw9an]
Title: Re: [Themes] V-Scale
Post by: jusc on August 09, 2013, 16:49:58
hi John,

I agree with kech61 your solution is better. I replaced the lines inside the bundle in first post with your solution.
Thank you again
Title: Re: [Themes] V-Scale
Post by: tommi on October 26, 2013, 12:51:17
Hi jusc,
I quite often use your themes, especially  V-Scale_Cycle.
Due to a crash of Locus I investigated a bit and found out that the crash seems to be in coincidence with this rule in the theme:
<rule e="node" k="shop" v="jewelry" zoom-min="18">
     <symbol src="file:../V-Scale/symbols/jewelry.svg" scale="0.65" scale-icon-size="17,1.2" />
</rule>
I can't find the referenced jewelry.svg in the symbols folder.
Could you provide a fix?
Thanks,
Thomas
Title: Re: [Themes] V-Scale
Post by: jusc on October 26, 2013, 13:10:04
Hi Tommi,

thank you for this hint. I added the  jewelry.svg in V-Scale-Bundle.zip in first post.
And Sorry for this.

PS: I´m working on an update of this theme bundle. Maybe next month...
Title: Re: [Themes] V-Scale
Post by: tommi on October 26, 2013, 16:36:51
Quote from: jusc on October 26, 2013, 13:10:04
Hi Tommi,
thank you for this hint. I added the  jewelry.svg in V-Scale-Bundle.zip in first post.
And Sorry for this.
PS: I´m working on an update of this theme bundle. Maybe next month...
I should say thank you.
And an update is warmly welcome!

edit
Hi jusc,
I have few more mistakes for you:
shoes.svg
optican.svg ->optician.svg
diy-store.svg
boutique.svg
I cannot guarantee there are no more files missing :-)
Is there a chance for a systematic check that all referenced files are contained in the theme?


@Menion:
On my S3 (4.1.2) these missing files do not cause Locus crashes, but on my N7 (4.3) every missing .svg crashes the render thread. Different behaviour in Android?
Title: Re: [Themes] V-Scale
Post by: jusc on October 27, 2013, 11:07:50
Hi tommi,

I don´t know what happend, but ther was an old V-scale bundle again  :'(.
So I updated the symbols again (in first post) not the themes themselves, If you or somebody else would like to test ist, please don´t hesitate to let me know, if there are still problems.


Title: Re: [Themes] V-Scale
Post by: tommi on October 27, 2013, 14:33:45
Quote from: jusc on October 27, 2013, 11:07:50
Hi tommi,

I don´t know what happend, but ther was an old V-scale bundle again  :'(.
So I updated the symbols again (in first post) not the themes themselves, If you or somebody else would like to test ist, please don´t hesitate to let me know, if there are still problems.
Hi jusc,
no more crashes seen. Thank you.

But I wonder why I can't see any of those previously missing symbols on the map. For instance the optician, I know where it's located but I don't see the symbol. Does it work for you?
Title: Re: [Themes] V-Scale
Post by: jusc on October 27, 2013, 14:48:52
Hi tommi,

thank you for testing
hmm, optican is reserved for the future. ;D. You are right, I can´t find it too but I will look at it.
But for more shops like clothes, shoes etc. you should use the Freizeitkarte up from zoom level 18. I fear, that  these are shops nor rendered with Locus maps nor with OpenAndroMaps.

Title: Re: [Themes] V-Scale
Post by: tommi on October 27, 2013, 15:50:35
Quote from: jusc on October 27, 2013, 14:48:52
Hi tommi,
thank you for testing
hmm, optican is reserved for the future. ;D. You are right, I can´t find it too but I will look at it.
I think you mean optician, maybe we should  buy new glasses ;-)

Quote from: jusc on October 27, 2013, 14:48:52
But for more shops like clothes, shoes etc. you should use the Freizeitkarte up from zoom level 18. I fear, that  these are shops nor rendered with Locus maps nor with OpenAndroMaps.
Ah, ok, this just means that Locus and OpenAndroMaps are not so interested in those information the same as I :).
Title: Re: [Themes] V-Scale
Post by: jusc on October 28, 2013, 13:58:27
Quote from: tommi on October 27, 2013, 15:50:35I think you mean optician, maybe we should  buy new glasses ;-)

Yes that´s right. I just bought new glasses  ;D should be optician of course, fixed for next release.
Title: Re: [Themes] V-Scale
Post by: Locus9999 on April 04, 2014, 21:15:49
Excuse my ignorance, cannot get Locus to load any of the 3 themes in the zip file(V-Scale-Bundle.zip).
Have unzipped the file and have 4 folders(V-Scale, V-Scale_Cycle, etc).
Should I copy the contents of the V-Scale folder into each of the three folders (V-Scale_Cycle, etc) and then place each of those folders individually into the "Locus/mapsvector/_themes" folder? .
If that is not correct what is the correct placement of these 4 files?
Thanks
Title: Re: [Themes] V-Scale
Post by: tommi on April 04, 2014, 22:50:42
Quote from: Locus9999 on April 04, 2014, 21:15:49
Excuse my ignorance, cannot get Locus to load any of the 3 themes in the zip file(V-Scale-Bundle.zip).
Have unzipped the file and have 4 folders(V-Scale, V-Scale_Cycle, etc).
Should I copy the contents of the V-Scale folder into each of the three folders (V-Scale_Cycle, etc) and then place each of those folders individually into the "Locus/mapsvector/_themes" folder? .
If that is not correct what is the correct placement of these 4 files?
Thanks
AFAIR there was no need to copy files around. The 4 folders need to be located in the _themes folder. Whereas V-Scale_xxx contain only the theme instructions itself, the V-Scale folder contains the graphical information like patterns,symbols, etc.
Locus should offer selection of V-Scale_Cycle, _Hike, _Pure.

@jusc: I don't ask for ETA, just the question if you're still working on an update, maybe including highway exit names and numbers?
Title: Re: [Themes] V-Scale
Post by: jusc on April 05, 2014, 19:18:33
I'm still working on an update. But l'm not sufficient at this time. Thanks for your hints.
Title: Re: [Themes] V-Scale
Post by: Locus9999 on April 05, 2014, 19:22:01
"tommi" than you for the quick answer..
Title: Re: [Themes] V-Scale
Post by: tommi on April 06, 2014, 07:01:36
Quote from: Locus9999 on April 05, 2014, 19:22:01
"tommi" than you for the quick answer..
I guess it helped?
Title: Re: [Themes] V-Scale
Post by: Masterijn on April 06, 2014, 11:35:59
I realy like these themes, but they seem to crash Locus within 5 minutes of some scrolling and zooming. Hard to say what triggers it.
Title: Re: [Themes] V-Scale
Post by: jusc on April 06, 2014, 12:34:59
@Masterijn
Thank you for this hint, I unfortunately see it too on my Note 2 with a custom rom (4.3) based on stock rom.
At first I thought it depends on this combination.
Which phone/rom combination are you using?

Thank you in advance.
Title: Re: [Themes] V-Scale
Post by: Masterijn on April 06, 2014, 17:51:06
Kitkat 4.4 on a note 3, non custom rom
Title: Re: [Themes] V-Scale
Post by: Locus9999 on April 06, 2014, 19:20:05
Quote from: tommi on April 06, 2014, 07:01:36
Quote from: Locus9999 on April 05, 2014, 19:22:01
"tommi" thank you for the quick answer..
I guess it helped?
Yes, thank you for your assistance.
Title: Re: [Themes] V-Scale
Post by: Menion on April 06, 2014, 20:42:29
Hi jusc and Masterijn,

I've read your two posts where you wrote about some problems with these themes. So I downloaded them and tested (very nice btw.) and I see no problem on my device. Theme is also fine, just few minor problems, but nothing serious.

So if you have really force close crash while using, may you create for me a log? Thanks

http://support.locusmap.eu/hc/en-us/articles/200014832-How-to-create-debug-log
Title: Re: [Themes] V-Scale
Post by: jusc on April 07, 2014, 10:42:57
@menion,
I could find the developer options at Android 4.3 but I couldn't find the "Take bug report" tap as described in the linked manual. :(
Btw. strange, but in the moment I can't reproduce the issue.
Title: Re: [Themes] V-Scale
Post by: Menion on April 07, 2014, 10:45:01
you can't? weird. It really have to be there, maybe not the first in list. Or if you have rooted device, you may use CatLog program. Anyway if you can't reproduce it, then there is nothing to solved :)
Title: Re: [Themes] V-Scale
Post by: jusc on April 07, 2014, 13:48:15
Right ;D, it´s because I have threaten my phone to log it.   ::) But I fear one day ....
Title: Re: [Themes] V-Scale
Post by: Ivo Nörenberg on April 16, 2014, 16:58:45
I tried to remove

<pathText k="ele" font-style="bold" font-size="10" fill="#7C583A" stroke="#ffffff" stroke-width="2.5" />

in

<rule e="way" k="contour_ext"

to not see anymore the altitude values from contour-lines but I still see them.

What do I do wrong? 
Title: Re: [Themes] V-Scale
Post by: jusc on April 18, 2014, 16:16:31
Sorry for the delay..

For me it works.
Did you leave the original V-Scale_Hike.xml in the folder. Then you have to delete it, if you rename your file to V-Scale_Hike2014.xml.
Title: Re: [Themes] V-Scale
Post by: Ivo Nörenberg on April 18, 2014, 17:51:04
In the V-Scale_Hike 2014 folder is just the V-Scale_Hike 2014.xml. There is a separate V-Scale_Hike folder with the  V-Scale_Hike.xml file. I deleted this one but still I see the altitude values.

The altitude values are visible from Zoom 15-22

Here is the map I am using:
https://www.wetransfer.com/downloads/32b219a1480bf16c19b99de550b3c54f20140418154939/9b7118d0785cdcc28b786b8636128f0620140418154939/f6575e
Title: Re: [Themes] V-Scale
Post by: jusc on April 19, 2014, 11:50:38
 ???  ??? Are you kidding me?
For this kind of maps the "Mapsforge" themes don´t work. All themes are  looking the same with this "Garmin" map.

You should use maps from OpenAndroMaps.

Gerade gesehen: Sehr witzig, kann es sein, dass Du dort bereits im feinsten Deutsch als "Ivo" nach einer Karte von Nunavut gefragt hast? http://www.openandromaps.org/downloads/kanada.

But is it possible you asked already one year ago for a map there? There asked an "Ivo" for maps from Nunavut 

Title: Re: [Themes] V-Scale
Post by: gynta on April 19, 2014, 12:38:21
Quote from: ivolino on April 18, 2014, 17:51:04Here is the map I am using:

This is a GARMIN.img map
Here we talking about VECTOR.map themes.
Do you know the difference?

edit
ah to late
Title: Re: [Themes] V-Scale
Post by: Ivo Nörenberg on April 19, 2014, 17:38:37
No I don't know the difference between Garmin and Vector maps  :(

Is there a "Mapsforge" theme without altitude values? Or how can I adjust Mapsforge themes?
Not everyone can be a Locus or map professional, sorry.

And yes "jusc" I was already looking for a map from Nunavut and thats the problem, there is no one from OpenAndroMaps! The only one I could find is the one from Garmin V2 but Garmin V4 is not working anymore with IMG maps so Locus can't read them. The Ibycus map is quite bad on Ellesmere Island.
Luckily I could encourage a Canadian OSM mapper to make a map from Ellesmere Island right now  :)
Title: Re: [Themes] V-Scale
Post by: jusc on April 20, 2014, 12:55:00
1. Vector maps
Garmin "img" maps like maps from http://openmtbmap.org are vector maps too. Only with vector maps it is possible to navigate (routing), if it is implemented in the maps and the software (p. e. Garmin firmware on 62s, Oregon, Montana or TwoNav on Sportiva or Aventura with *."vmap" maps) can work with. Locus isn´t able to route/navigate with routable vector maps at the moment. Locus needs "external" services like OSRM, Yours as online services or BRouter app as an offline service (app).

So Locus is able to work with both types of vecor maps rendered a. with "Mapsforge" (Locus Store maps or OpenAndroMaps or the Freizeitkarte)
and  b. rendered for Garmin devices like the map Ivolino has posted.
But only for Mapsforge maps are offered switchable themes, like these V-Scale themes.
All the themes don´t work with "img" maps for Garmin devices like Ivolinos map!
For changing the typ files for "img" maps you can use the TYPViewer (https://sites.google.com/site/sherco40/) or MapTk (http://maptk.dnsalias.com/).
So Ivolino, that´s what you are looking for  :)

2. Raster maps
On the other side there are raster maps, like all useable online maps in Locus like Openstreetmap, Google, Bing Mapquest etc.
These maps are only tiles (or pictures, most *."pngs" or *."jpgs") collected in the the Locus databaes if the tiles are stored or downloaded. These "picture" better raster maps don´t have any  type files or themes you can change.
 


Title: Re: [Themes] V-Scale
Post by: Ivo Nörenberg on April 20, 2014, 20:29:55
Sorry I don't understand. Do I build a theme with TYPViewer or can I change the properties of the IMG file?
Title: Re: [Themes] V-Scale
Post by: Menion on April 20, 2014, 20:53:06
ivolino sorry, but please forget on IMG maps. Their support in Locus is incomplete and plans on improvements are minimal. So please, forget on them. If you need to use IMG maps, I suggest to use OruxMaps. There is probably no better solution on Android for this task for now.
Title: Re: [Themes] V-Scale
Post by: Ivo Nörenberg on April 21, 2014, 09:11:51
Oh yes, OruxMaps can even read the new Garmin map format! Really a pity that Locus can't get the new library.