Locus Map - forum

Support => [DE] - deutschsprachiger Forumsbereich => Topic started by: fred_999 on May 20, 2013, 00:08:49

Title: Neue openandromaps-Karten mit d. zugeh. Themes inkompatibel?
Post by: fred_999 on May 20, 2013, 00:08:49
Hallo,

ich habe mir heute die neue (15.05.) "Germany - NEW hike+cycle full coverage" -Karte von openandromaps (//http://www.openandromaps.org/) heruntergeladen. Die Karte funktioniert mit allen alten Themes problemlos, aber bei den zugehörigen Themes wird keine Karte angezeigt - nur der Schriftzug "laden".

Kann das jemand verifizieren?


Gruß
Fred
Title: Re: Neue openandromaps-Karten mit d. zugeh. Themes inkompati
Post by: tommi on May 20, 2013, 07:35:50
Hallo Fred,
verifizieren konnte ich den Fehler, er äussert sich so:
E/DatabaseRenderer(18788): java.lang.IllegalArgumentException: invalid bitmap source: jar:/org/mapsforge/android/maps/rendertheme/osmarender/symbols/campSite.png
Allerdings konnte ich beim besten Willen nicht rausfinden, was zu diesem Fehler führt:
- die Datei campSite.png gab es auch im alten Theme mit identischem Inhalt
- sie wird in andromaps_hc.xml in der alten wie in der neuen Version identisch referenziert
aber: ersetze ich die neue andromaps_hc.xml durch die alte (es gibt nur drei minimale Unterschiede!), so funktioniert das Theme.

[ENG]
@Menion:
Don't know if you'll read this. I think this is actually a problem in mapsforge library, not in rendertheme. I could provide both new and old theme (which are actually *identical* except three minimal changes all of the kind dy="35" changed to dy="-10":
            <caption k="name" dy="-10" font-style="bold" font-size="14" fill="#000000" stroke="#ffffff" stroke-width="2.0" />
)
Title: Re: Neue openandromaps-Karten mit d. zugeh. Themes inkompati
Post by: fred_999 on May 20, 2013, 09:11:27
Danke für die schnelle Antwort, ich habe noch eine andromaps_hc.xml vom 30.03.2013, mit dieser funktioniert die neue Karte ja zum Glück.


Gruß
Fred
Title: Re: Neue openandromaps-Karten mit d. zugeh. Themes inkompati
Post by: Menion on May 20, 2013, 16:36:33
[ENG]

hello tommi,
  hmm not clear how should I help you. If there is any problem in mapsForge renderer, then I should of course try to fix it in Locus. Best is to privide sample map, theme in zip, coordinates and zoom level of problematic place and description what you expect ...
Title: Re: Neue openandromaps-Karten mit d. zugeh. Themes inkompati
Post by: tommi on May 20, 2013, 17:01:36
[ENG]

Hi Menion, good to know that you read the german posts as well (I only rarely read the chech ones:).

Here we go:
Map: http://www.openandromaps.org/maps/Germany/saarland.zip (http://www.openandromaps.org/maps/Germany/saarland.zip) (or any other one from this site)
Theme: http://www.openandromaps.org/wp-content ... aps_hc.zip (http://www.openandromaps.org/wp-content/files/themes/locus/andromaps_hc.zip) , eachof the three themes has/makes? the same problem
Coordinates: Just anywhere in the map, e.g N49 E06
Zoom level: any zoom level

What happens: Map screen shows "Loading ..." forever due to crash
Happens in both latest Locus Pro and Free from this forum
Map works with other themes, e.g. older themes from this site or e.g. Locus internal themes
Enough? If not, I can provide catlog but I think in this case you can create one by yourself :)
Title: Re: AW: Neue openandromaps-Karten mit d. zugeh. Themes inkom
Post by: jusc on May 20, 2013, 21:52:53
[ENG]
Strange, for me it works at least with latest andromaps theme and latest full Germany map.
Title: Re: Neue openandromaps-Karten mit d. zugeh. Themes inkompati
Post by: Menion on May 20, 2013, 23:42:45
[ENG]
sorry tommi, in this case I'll need a CatLog because for me it also works without a problems
Title: Re: AW: Neue openandromaps-Karten mit d. zugeh. Themes inkom
Post by: tommi on May 21, 2013, 06:55:01
[ENG]
Quote from: "jusc"Strange, for me it works at least with latest andromaps theme and latest full Germany map.
Whatever latest theme means, I downloaded it yesterday morning and I have the problem also with latest full Germany map from there.

Anyway, Menion I've sent you two mails with catlog and theme few minutes ago.
Thanks
Title: Re: Neue openandromaps-Karten mit d. zugeh. Themes inkompati
Post by: Menion on May 21, 2013, 07:23:57
[ENG]
fine ...

firstly, log is full of
java.lang.IllegalArgumentException: invalid bitmap source: jar:/org/mapsforge/android/maps/rendertheme/osmarender/symbols/campSite.png
which is on line 425 of theme you send. Refering to internal icons of Locus is really not recommended. Paths may change without a reason and result is this. Btw. current path is now
/org/mapsforge/map/theme/symbols/campSite.svg
but it's really not recommended

secondly there is small error in one locus part, but it's nothing serious, just notification that there were some problems. So seems that this theme do not crash Locus, it just do not draw map tiles right? Ah you wrote this, fine ... so this is a problem :).
Title: Re: AW: Neue openandromaps-Karten mit d. zugeh. Themes inkom
Post by: jusc on May 21, 2013, 08:43:24
[ENG]
Quote from: "tommi"Whatever latest theme means, I downloaded it yesterday morning and I have the problem also with latest full Germany map from there.


Just tested once more. I downloaded the germany map from 2013-05-15 and the extra theme for Locus from http://www.openandromaps.org/downloads/ (http://www.openandromaps.org/downloads/). The  date of the Locus theme is 2013-05-20 8:11.
I think you know this: With Locus you can not use the theme bundled with the map, it´s only for Oruxmaps.
Title: Re: Neue openandromaps-Karten mit d. zugeh. Themes inkompati
Post by: fred_999 on May 21, 2013, 09:10:10
Hallo,

ich hatte gestern Mittag noch den Fehler auf der openandromaps Supportseite gemeldet.
Christian hat dann umgehend ein funktionierendes Theme für Locus eingestellt, läuft jetzt perfekt.


Gruß
Fred
Title: Re: AW: Neue openandromaps-Karten mit d. zugeh. Themes inkom
Post by: tommi on May 21, 2013, 12:42:03
[ENG]
Quote from: "jusc"
Quote from: "tommi"Whatever latest theme means, I downloaded it yesterday morning and I have the problem also with latest full Germany map from there.


Just tested once more. I downloaded the germany map from 2013-05-15 and the extra theme for Locus from http://www.openandromaps.org/downloads/ (http://www.openandromaps.org/downloads/). The  date of the Locus theme is 2013-05-20 8:11.
I think you know this: With Locus you can not use the theme bundled with the map, it´s only for Oruxmaps.
So theme was changed *after* my download (In the theme I've downloaded campSite.png was referred twice, one time correctly with file:/symbols/campSite.png and the other time with the blabla/mapsforge/blabla/campSite.png path!)

And I was writing talking about theme for Locus, see my link.
Seems Christian made a silent update.
Title: Re: Neue openandromaps-Karten mit d. zugeh. Themes inkompati
Post by: tommi on May 21, 2013, 12:46:56
[ENG]
Quote from: "tommi"@Menion:
Don't know if you'll read this. I think this is actually a problem in mapsforge library, not in rendertheme. I could provide both new and old theme (which are actually *identical* except three minimal changes all of the kind dy="35" changed to dy="-10":
            <caption k="name" dy="-10" font-style="bold" font-size="14" fill="#000000" stroke="#ffffff" stroke-width="2.0" />
)

Ah, I should also point on this: In the previous theme (maybe 1month old or so) which was also running without problems the bad path was also contained and Locus did display the map. The only changes between the two themes are the mentioned ones.
Title: Re: Neue openandromaps-Karten mit d. zugeh. Themes inkompati
Post by: kech61 on May 21, 2013, 12:57:26
[ENG]
Hi all,

Sorry for late answer, there was a faulty Theme online for some hours, please redownload the latest ones from my site, they are working.
I haven't checked compatibility with locus for some days cause my SD-Card corrupted Locus an I had to replace it and reinstall Locus.

The problem with the themes was a C/P-snippet from the orux theme with a wrong path.
The advantage of the new theme is that the symbol for campsites is rendered for those tagged as attributes to areas too.

Sorry for the faulty theme  :oops:

And yes, the themes included in the downloads of the maps are for Orux only, I include them in every map couse Orux lacks the comfort of a themeswitcher like Locus.
The Themes for Locus are available at the header every Downloadsection.
Title: Re: Neue openandromaps-Karten mit d. zugeh. Themes inkompati
Post by: Menion on May 21, 2013, 14:33:24
[ENG]
perfect, good to hear, thanks Christian ...

just for your info. If you create separate themes for Locus, you may also use advantage of SVG support and support for also some special tags, like rescaling icons based on zoom. We use this in internal themes so it should be well tested. Just for your info ;)
Title: Re: Neue openandromaps-Karten mit d. zugeh. Themes inkompati
Post by: kech61 on May 21, 2013, 18:28:55
[ENG]
Quote from: "menion"...you may also use advantage of SVG support and support for also some special tags, like rescaling icons based on zoom. We use this in internal themes so it should be well tested. Just for your info ;)
Hi Menion,

I'v took a look at these features some times ago an these are exactly the ones that I miss with standard mapsforge. However, actually my timebudget is close to zero so I set a link to Jusc's Voilatile-bundle at this forum. Seriously - his themes are better than mine ;-)