Locus Map - forum

Content & Tools => Themes - Vector maps => Topic started by: brotbuexe on March 29, 2012, 07:32:35

Title: [Theme] green nightways
Post by: brotbuexe on March 29, 2012, 07:32:35
If we could share our custom themes in here...

---------------------------------------------------------------------------------------------------------------
How to use the themes:

1. Get vector map running.
2. put the themes in /sdcard/Locus/mapsVector/_themes/

Should be like:
/sdcard/Locus/mapsVector/_themes/Themename1/Themename1.xml
/sdcard/Locus/mapsVector/_themes/Themename2/Themename2.xml
...

3. Select the theme in Settings -> Map - advanced -> Theme of the maps
---------------------------------------------------------------------------------------------------------------

My first and really simple green Nightmap. Use it on bicycle, don't need a lot of information, so only the ways in green.

[attachment=0:2s3xz4m0]greennightways.png[/attachment:2s3xz4m0]
[attachment=1:2s3xz4m0]greennightways.zip[/attachment:2s3xz4m0]
Title: Re: Renderthemes for Vectormap
Post by: Menion on March 29, 2012, 08:25:17
nice :) ... information to all: if will be interest, I'll gladly (same with custom screens themes) put your work into locus shop for others
Title: Re: Renderthemes for Vectormap
Post by: Starman on March 29, 2012, 08:48:45
Nice! THX! Works well. One could almost use a button on Quick-switch for changing themes.
Title: Re: Renderthemes for Vectormap
Post by: jurajs on March 30, 2012, 16:39:20
@brotbuexe - nice job... but not working for me... I have copied it correctly. I have the choice in settings to switch it to greennightways, but the map remains the same as before.... cant find the reason why.

@menion - when talking about "Locus Shop" is this feature working already ? I get an error when trying to run "Locus Shop" like this :
"Unexpected problem! Please contact me with description of your problem"

let me check the logs ....

----------  Mar 30, 2012 4:33:49 PM  ----------
TAG:UtilsServer
MSG:sendPurchaseRequest()
TRACE:java.lang.NullPointerException
at menion.android.locus.core.g.i.a(L:452)
at menion.android.locus.core.g.i.a(L:295)
at menion.android.locus.core.g.i.a(L:257)
at menion.android.locus.core.billing.x.a(L:342)
at menion.android.gui.extension.x.doInBackground(L:1)
at android.os.AsyncTask$2.call(AsyncTask.java:264)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
at java.util.concurrent.FutureTask.run(FutureTask.java:137)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
at java.lang.Thread.run(Thread.java:856)
Title: Re: Renderthemes for Vectormap
Post by: Menion on March 30, 2012, 16:44:00
jurajs, I think that problem is simple ... you have to use new 0.3.0 version of vector maps. They're for download by Locus 2.2.0 or some are on MapsForge web page

thanks for error. I'll look at it now ... you've got last Locus version right?
Title: Re: Renderthemes for Vectormap
Post by: jurajs on March 30, 2012, 18:00:42
Quote from: "menion"jurajs, I think that problem is simple ... you have to use new 0.3.0 version of vector maps. They're for download by Locus 2.2.0 or some are on MapsForge web page

thanks for error. I'll look at it now ... you've got last Locus version right?

0.2 or 0.3 ... who can keep on trrrack with that ?! ;-) I'll try... thanks ;-)

and... Yes, I have the last vesion. thanks for your time.
Title: Re: Renderthemes for Vectormap
Post by: Menion on March 30, 2012, 18:02:46
you're welcome. Sorry for that, I didn't expected that there will be so huge interest in vector maps rendering themes. So I didn't created some ... as Tommi I think wrote in one topic ... at least different icon in list of vector maps for both types. I'll change this in next version
Title: Re: Renderthemes for Vectormap
Post by: jurajs on March 30, 2012, 22:21:38
well well... I have just tested it... works fine with v.0.3 maps. This is a killer feature with enormous potential when you think about all the possibilities ;-)
I have browsed the web a bit... but sadly i couldn't find any other themes except the default one. I guess it wil change over time ;-)
Title: Re: Renderthemes for Vectormap
Post by: polaramike on March 31, 2012, 01:35:11
Hi!

Killer feature - very, very nice!

Anyhow, sadly it does not work for me yet. It's the newest Locus pro version on a Galaxy Tab P7500 with 0.2 and 0.3 maps (from vector maps 4 locus). Tried the theme you posted above as well as a modified osmarender.xml - no way to get it running.It always uses the original one, no matter which theme I select.

Mike
Title: Re: Renderthemes for Vectormap
Post by: Menion on March 31, 2012, 02:06:37
as I wrote above "you have to use new 0.3.0 version of vector maps. They're for download by Locus 2.2.0 or some are on MapsForge web page" ... so maps from vectormaps4locus are version 0.2.4 so they will not work for theme changing ...
Title: Re: Renderthemes for Vectormap
Post by: polaramike on March 31, 2012, 08:07:05
Thanks - I thought vectormaps4locus would be 0.3.x, did not know they are 0.2.x. What do you mean by "they are for download with Locus 2.2.0"? Do you mean I shall download them with Locus itself (with the download feature in the maps menu)? Or?

Mike
Title: Re: Renderthemes for Vectormap
Post by: pmoravec on March 31, 2012, 08:55:09
Quote from: "polaramike"Thanks - I thought vectormaps4locus would be 0.3.x, did not know they are 0.2.x. What do you mean by "they are for download with Locus 2.2.0"? Do you mean I shall download them with Locus itself (with the download feature in the maps menu)? Or?

Mike
Hi, to make it clear - the people from Mapsforge did a complete rewrite of their library and version 0.3.0 it is not compatible with older maps from 0.2.4 version. Because Menion "sells" the vector maps (in fact, the money is used to pay for the Amazon? cloud where he offers the data for download), he adapted the old version of the library (0.2.4) to be included in Locus as well so that the people can use their already-downloaded maps (and don't complain about the "wasted" credit). But the old version of the library does not have the new cool features like the map skins.

So if you wish to use the render themes, you need the new map - either downloading it  in 2.2.0+ (but you pay for the credit in Locus shop to download vector maps), download the map from mapsforge developers (if they offer it),  or from some other source - e.g. some people in forums offered Germany maps. Or, you could always download OSM map file e.g. from GeoFabrik and convert the map by the current MapWriter plugin from Mapsforge yourself.
Title: Re: Renderthemes for Vectormap
Post by: jurajs on March 31, 2012, 20:40:14
Hi guys again...

Please forgive me for this noob post ;-)

I am trying to do my own render theme by myself. Should be just a bit different from original osmarender. But I am not successful yet. As my first try, I have simply copied this one http://mapsforge.googlecode.com/svn/tru ... render.xml (http://mapsforge.googlecode.com/svn/trunk/mapsforge-map/src/main/resources/org/mapsforge/android/maps/rendertheme/osmarender/osmarender.xml), renamed it, and tried to use it without any changes. Definitely I am doing something wrong, because it doesn't work at all.

Can you guys give me a little start-up hint on this so i can proceed a bit further ?

EDIT :

I had to include all the patterns and symbols. also correct path to that files has to be replaced in xml file....
Title: Re: Renderthemes for Vectormap
Post by: tommi on March 31, 2012, 23:02:20
Quote from: "jurajs"I had to include all the patterns and symbols. also correct path to that files has to be replaced in xml file....
And now it works? This is exactly what needs to be done.
Actually I already prepared exacly this here: viewtopic.php?f=10&t=1749#p11037 (http://forum.asamm.cz/viewtopic.php?f=10&t=1749#p11037)
Makes sense to read other topics in the forum, too.
Title: Re: Renderthemes for Vectormap
Post by: jurajs on March 31, 2012, 23:27:17
Quote from: "tommi62"Makes sense to read other topics in the forum, too.

be kind dude, i'm not that noob...  and stop trolling.  :evil:
Title: Re: Renderthemes for Vectormap
Post by: brotbuexe on April 01, 2012, 01:08:30
Back to the topic.

Second version. Took the green version of the RGB Night Theme and removed some areafills, houses, etc...

[attachment=1:2cn7kfw9]greennightwaysv2.png[/attachment:2cn7kfw9]