Neue openandromaps-Karten mit d. zugeh. Themes inkompatibel?

Started by fred_999, May 20, 2013, 00:08:49

0 Members and 2 Guests are viewing this topic.

fred_999

Hallo,

ich habe mir heute die neue (15.05.) "Germany - NEW hike+cycle full coverage" -Karte von openandromaps 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
  •  

tommi

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" />
)
  •  

fred_999

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
  •  

Menion

[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 ...
- Official help (ideas, questions, problems): help.locusmap.eu
- Advanced topics, sharing of knowledges: you're here!
- LM 4 Beta download, LM 4 Release download
  •  

tommi

[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 (or any other one from this site)
Theme: http://www.openandromaps.org/wp-content ... aps_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 :)
  •  

jusc

[ENG]
Strange, for me it works at least with latest andromaps theme and latest full Germany map.
Regards J.
  •  

Menion

[ENG]
sorry tommi, in this case I'll need a CatLog because for me it also works without a problems
- Official help (ideas, questions, problems): help.locusmap.eu
- Advanced topics, sharing of knowledges: you're here!
- LM 4 Beta download, LM 4 Release download
  •  

tommi

[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
  •  

Menion

[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 :).
- Official help (ideas, questions, problems): help.locusmap.eu
- Advanced topics, sharing of knowledges: you're here!
- LM 4 Beta download, LM 4 Release download
  •  

jusc

[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/. 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.
Regards J.
  •  

fred_999

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
  •  

tommi

[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/. 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.
  •  

tommi

[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.
  •  

kech61

[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.
Best regards/ Grüsse
Christian
www.openandromaps.org
  •  

Menion

[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 ;)
- Official help (ideas, questions, problems): help.locusmap.eu
- Advanced topics, sharing of knowledges: you're here!
- LM 4 Beta download, LM 4 Release download
  •