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 map theme: reference to patterns and symbols only possible with absolute paths

+2
orux
keenonkites
6 posters

Go down

mapsforge map theme: reference to patterns and symbols only possible with absolute paths Empty mapsforge map theme: reference to patterns and symbols only possible with absolute paths

Post  keenonkites Thu Mar 28, 2013 8:40 pm

Hi,
recently we struggled over the following problem:
If we download a mapsforge map with the according theme xml file which references symbol files and pattern files it does only work if absolut paths are in the respective lines. Using relative paths (relative to the location of the xml theme file) it does not work and the screen stays black.
Here an example:
Working is the following:
Code:
<area src="file:/storage/emulated/0/oruxmaps/mapfiles/patterns/weinberg-32.png"/>
Not working:
Code:
<area src="file:./patterns/weinberg-32.png"/>
Also not working:
Code:
<area src="file:patterns/weinberg-32.png"/>

But relative paths are allowed in mapsforge.

The concept that the theme needs to be named the same as the mapfile just with an additional .xml at the end is not optimal if several cards are installed using the same theme. Additionally it contains the danger that, different themes might reference same pattern or symbol names with different content.
Much better would be a possibility to have the different themes all in separate subdirectories, this way there will be no conflicts.... the directory name could still be made out of the mapname, but inho having a possibility to choose the theme would be even better.

Gracias y Saludos de Suiza
Patrik

keenonkites

Cantidad de envíos : 3
Fecha de inscripción : 2013-03-28

Back to top Go down

mapsforge map theme: reference to patterns and symbols only possible with absolute paths Empty Re: mapsforge map theme: reference to patterns and symbols only possible with absolute paths

Post  orux Sun Mar 31, 2013 9:49 am

keenonkites wrote:Hi,
recently we struggled over the following problem:
If we download a mapsforge map with the according theme xml file which references symbol files and pattern files it does only work if absolut paths are in the respective lines. Using relative paths (relative to the location of the xml theme file) it does not work and the screen stays black.
Here an example:
Working is the following:
Code:
<area src="file:/storage/emulated/0/oruxmaps/mapfiles/patterns/weinberg-32.png"/>
Not working:
Code:
<area src="file:./patterns/weinberg-32.png"/>
Also not working:
Code:
<area src="file:patterns/weinberg-32.png"/>

But relative paths are allowed in mapsforge.

The concept that the theme needs to be named the same as the mapfile just with an additional .xml at the end is not optimal if several cards are installed using the same theme. Additionally it contains the danger that, different themes might reference same pattern or symbol names with different content.
Much better would be a possibility to have the different themes all in separate subdirectories, this way there will be no conflicts.... the directory name could still be made out of the mapname, but inho having a possibility to choose the theme would be even better.

Gracias y Saludos de Suiza
Patrik

Hi,

thanks;

you are right,

added to my 'todo' list,

orux
orux
orux

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

Back to top Go down

mapsforge map theme: reference to patterns and symbols only possible with absolute paths Empty Re: mapsforge map theme: reference to patterns and symbols only possible with absolute paths

Post  keenonkites Sun Mar 31, 2013 9:50 am

Thanks, Orux.

Very much appreciated.

Saludos
Patrik

keenonkites

Cantidad de envíos : 3
Fecha de inscripción : 2013-03-28

Back to top Go down

mapsforge map theme: reference to patterns and symbols only possible with absolute paths Empty Re: mapsforge map theme: reference to patterns and symbols only possible with absolute paths

Post  keenonkites Sun Mar 31, 2013 10:21 am

Orux,

I know it's a bit 'offtopic' in this topic here as it is not about 'relative' vs 'absolut' but it nevertheless still is about 'installation' of maps and themes:

In Locus there are so called locus_actions.... having either exactly the same (for interopability of maps and installation routines) or at least something similar would be very handy:
http://docs.locusmap.eu/doku.php/manual:locus_actions

Felices Pascuas
Patrik

keenonkites

Cantidad de envíos : 3
Fecha de inscripción : 2013-03-28

Back to top Go down

mapsforge map theme: reference to patterns and symbols only possible with absolute paths Empty Re: mapsforge map theme: reference to patterns and symbols only possible with absolute paths

Post  eartrumpet Mon Jun 10, 2013 5:44 pm

Relative paths would be really helpful for mapsforge maps. I made my own theme for Oruxmaps and Openandromaps but it doesn't make sense to make it available to others as long as the paths are absolute. And of course a theme switcher would also help :-)

Anyway, the mapsforge support made orux maps so much better (from already the best), now there's just those small details which need refining.

eartrumpet

Cantidad de envíos : 8
Fecha de inscripción : 2013-06-07

Back to top Go down

mapsforge map theme: reference to patterns and symbols only possible with absolute paths Empty Re: mapsforge map theme: reference to patterns and symbols only possible with absolute paths

Post  zapfen Sun Jun 23, 2013 8:15 pm

Yes relative paths would be very helpful in the theme xml file.

Regards
zapfen

zapfen

Cantidad de envíos : 14
Fecha de inscripción : 2012-06-05

Back to top Go down

mapsforge map theme: reference to patterns and symbols only possible with absolute paths Empty Re: mapsforge map theme: reference to patterns and symbols only possible with absolute paths

Post  bianchifan Mon Jun 24, 2013 7:51 pm

zapfen wrote:Yes relative paths would be very helpful in the theme xml file.
Indeed!

Also it would be nice if themes are easily changeable like offline maps.

bianchifan

Cantidad de envíos : 11
Fecha de inscripción : 2011-11-21

Back to top Go down

mapsforge map theme: reference to patterns and symbols only possible with absolute paths Empty Re: mapsforge map theme: reference to patterns and symbols only possible with absolute paths

Post  orux Fri Sep 06, 2013 9:13 pm

bianchifan wrote:
zapfen wrote:Yes relative paths would be very helpful in the theme xml file.
Indeed!

Also it would be nice if themes are easily changeable like offline maps.
Hi;

initial support to multiple themes, last beta--> 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 map theme: reference to patterns and symbols only possible with absolute paths Empty Re: mapsforge map theme: reference to patterns and symbols only possible with absolute paths

Post  kech61 Sat Sep 07, 2013 3:04 pm

orux wrote:
initial support to multiple themes, last beta--> www.oruxmaps.com/cs
orux
And it works perfect cheers cheers cheers 
No need for clearing the cache when changing themes - simply working.

The openandromaps themes for Orux and Locus now are the same, basicly the installation too, however the directory structure can be optimized for the solution Orux provided (one single /patterns + /symbol folder for all themes together.
No big deal.
Once this is released I will provide the advanced Themes within the downloads of the maps as usual so maps and themes will always have the same version.

Incredible Job ORUX Exclamation , Thanks a lot !!

Best regards,
Christian

kech61

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

Back to top Go down

mapsforge map theme: reference to patterns and symbols only possible with absolute paths Empty Re: mapsforge map theme: reference to patterns and symbols only possible with absolute paths

Post  orux Sat Sep 07, 2013 4:16 pm

kech61 wrote:
orux wrote:
initial support to multiple themes, last beta--> www.oruxmaps.com/cs
orux
And it works perfect cheers cheers cheers 
No need for clearing the cache when changing themes - simply working.

The openandromaps themes for Orux and Locus now are the same, basicly the installation too, however the directory structure can be optimized for the solution Orux provided (one single /patterns + /symbol folder for all themes together.
No big deal.
Once this is released I will provide the advanced Themes within the downloads of the maps as usual so maps and themes will always have the same version.

Incredible Job ORUX Exclamation , Thanks a lot !!

Best regards,
Christian
Thanks, Christian Smile

Yes, you are right, if the patterns/symbols are the same for all the themes, you can put all the .xml together in one folder.

orux
orux
orux

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

Back to top Go down

mapsforge map theme: reference to patterns and symbols only possible with absolute paths Empty Re: mapsforge map theme: reference to patterns and symbols only possible with absolute paths

Post  kech61 Sun Sep 08, 2013 11:01 am

orux wrote:

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

orux
I'v provided a complete set of the new openandromaps themes with optimized folder structure for download:
www.openandromaps.org/wp-content/files/themes/orux_new/themes_orux_new.zip
Unzip the contents to /oruxmaps/mapstyles/ or a subdirectory like /oruxmaps/mapstyles/OAM/ (don't forget the /patterns /symbols folders) for the switching themes look at the oruxmaps site: http://www.oruxmaps.com/cs/

Its easy, works perfect, enjoy!

kech61

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

Back to top Go down

mapsforge map theme: reference to patterns and symbols only possible with absolute paths Empty Re: mapsforge map theme: reference to patterns and symbols only possible with absolute paths

Post  bianchifan Mon Sep 09, 2013 2:30 pm

orux wrote:

initial support to multiple themes, last beta--> www.oruxmaps.com/cs

orux
WOW! Thank you, great news!

So I must change my themes

bianchifan

Cantidad de envíos : 11
Fecha de inscripción : 2011-11-21

Back to top Go down

mapsforge map theme: reference to patterns and symbols only possible with absolute paths Empty Re: mapsforge map theme: reference to patterns and symbols only possible with absolute paths

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

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