Author Topic: Mapsforge 0.5  (Read 35926 times)

Offline fzk

  • Apprentice of Locus
  • **
  • Posts: 238
  • Thanked: 1 times
    • View Profile
    • http://freizeitkarte-osm.de/de/index.html
Mapsforge 0.5
« on: December 05, 2014, 13:48:26 »
After a long period of stagnation the mapsforge project is now successful back for over a year. The current release is 0.4, the upcoming release 0.5 is coming soon. Each release has a lot of fixes and new features. Are there any plans to switch from the proprietary Locus mapsforge release 0.3 (?) to the "official" mapsforge release?

Klaus
 

Offline menion

  • Administrator
  • Professor of Locus
  • *****
  • Posts: 10282
  • Thanked: 92 times
    • View Profile
    • http://www.asamm.com
  • Device: SGS7
Re: Mapsforge 0.5
« Reply #1 on: December 05, 2014, 14:35:08 »
I have not yet checked what news are in new releases of MapsForge libs, but I expect that lib will still be a slower then improved version I use.
Ideas, wishes, problems
Advanced topics, public discussion, sharing of knowledges, testing beta versions: you're here!
 

Offline Tobias

  • More than Newbie
  • *
  • Posts: 72
  • Thanked: 2 times
    • View Profile
    • Elevate themes
Re: Mapsforge 0.5
« Reply #2 on: December 05, 2014, 15:10:24 »
It would be great for compatibility reasons. With 0.4 not that much has changed for render themes, but that will be the case for 0.5 which is RC now. It won't be possible to provide all features for Locus then with my Openandromaps themes.

And there are already problems with Locus and maps with mapwriter 0.5, which has major improvements and is used on Openandromaps now.

If mapsforge 0.5 is still slower, it would be nice if your enhancements would be added to the official version, it's LGPL after all.

Best regards,
Tobias

 

Offline menion

  • Administrator
  • Professor of Locus
  • *****
  • Posts: 10282
  • Thanked: 92 times
    • View Profile
    • http://www.asamm.com
  • Device: SGS7
Re: Mapsforge 0.5
« Reply #3 on: December 05, 2014, 17:19:47 »
Modified code is available for everybody who wants. Anyway whole code is highly modified for Locus purpose. Because of this, I'll never be able to use official distribution.

Only in case, new version will bring more advanced features, I'll have to spend a few days and add improvements from Locus to new modified version.

About themes - I think, it should be a lot easier, to give me a list of tags that do not work in new Locus and are included in v 0.5, and I'll try to add support also for them to Locus.

And fact that new maps do not work on 100% in latest Locus is a big mystery for me. Format remains same.
Ideas, wishes, problems
Advanced topics, public discussion, sharing of knowledges, testing beta versions: you're here!
 

Offline Tobias

  • More than Newbie
  • *
  • Posts: 72
  • Thanked: 2 times
    • View Profile
    • Elevate themes
Re: Mapsforge 0.5
« Reply #4 on: December 05, 2014, 22:50:42 »
Modified code is available for everybody who wants. Anyway whole code is highly modified for Locus purpose. Because of this, I'll never be able to use official distribution.
OK, my thought was if your improvements would be added, it would be usable for you too and easier to update.

Mapsforge is pretty active these days and there are already plans for 0.6:
https://groups.google.com/forum/#!topic/mapsforge-dev/qgVmqSXiwKM
Performance is very high on the list, so maybe you could share there what you did for speed up.

Quote
Only in case, new version will bring more advanced features, I'll have to spend a few days and add improvements from Locus to new modified version.

Here's the changelog:
https://github.com/mapsforge/mapsforge/blob/master/docs/Changelog.md
The biggest changes in 0.4 for end users would be:
- Support for device screen scaling (maps tiles have different sizes according to device dpi)
- Support for SVG files as map icons (what Locus already had)

Quote
About themes - I think, it should be a lot easier, to give me a list of tags that do not work in new Locus and are included in v 0.5, and I'll try to add support also for them to Locus.

That's one major change of 0.5, and it would be great if it would be compatible. Creating different theme versions could be a major headache, it's already a minor ;-)

Everthing below Rendertheme Version 4 is new:
https://github.com/mapsforge/mapsforge/blob/master/docs/Rendertheme.md
https://github.com/mapsforge/mapsforge/blob/master/mapsforge-map/src/main/resources/renderTheme-v4.xsd
priority and display (force-draw?) are already in Locus, but I'm not sure if it has the same values and function.
There are smaller underlying changes too, e.g. dy works now for symbols/captions on ways too.

Best regards,
Tobias
 

Offline Emux

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Atlas
Re: Mapsforge 0.5
« Reply #5 on: December 14, 2014, 10:29:54 »
Modified code is available for everybody who wants.

Hi Menion,

I'm Emux one of the two Mapsforge maintainers (along with Ludwig).

We would be interested in Mapsforge modified code, how can this be accessible?

The tag matching bug seems to be solved in your version.
And any possible improvements (specially speed) would be welcomed.

I understand you have your own changes,
but all possible compatibility would certainly benefit the community.

Best regards.
 

Offline menion

  • Administrator
  • Professor of Locus
  • *****
  • Posts: 10282
  • Thanked: 92 times
    • View Profile
    • http://www.asamm.com
  • Device: SGS7
Re: Mapsforge 0.5
« Reply #6 on: December 14, 2014, 10:45:58 »
Hi Emux,

sure, no problem. Check attachment with current version.

I've adapted two years old MapsForge lib to Locus as much as possible, so it's not well compatible with current version. That's main reason why I do not contribute back. MapsForge will always try to be as universal as possible and I will always need something extra :).

Main changes in lib that may interest you:
- support for unlimited maps at once
- support for multi-thread (only rendering, not data mining)
- a lot of rewrote in rule checker, where lib firstly create optimized theme with only required rules
- checking of tags based on integers and not on strings
- hmm and probably another 100+ optimizations

Good luck
Ideas, wishes, problems
Advanced topics, public discussion, sharing of knowledges, testing beta versions: you're here!
 

Offline Emux

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Atlas
Re: Mapsforge 0.5
« Reply #7 on: December 14, 2014, 11:07:23 »
Thanks Menion!

We should certainly check the code.
 

Offline menion

  • Administrator
  • Professor of Locus
  • *****
  • Posts: 10282
  • Thanked: 92 times
    • View Profile
    • http://www.asamm.com
  • Device: SGS7
Re: Mapsforge 0.5
« Reply #8 on: December 14, 2014, 11:38:55 »
sure, no problem. If you will need some explanation to some changes, let me know.
Ideas, wishes, problems
Advanced topics, public discussion, sharing of knowledges, testing beta versions: you're here!
 

Offline Tobias

  • More than Newbie
  • *
  • Posts: 72
  • Thanked: 2 times
    • View Profile
    • Elevate themes
Re: Mapsforge 0.5
« Reply #9 on: February 15, 2015, 23:04:01 »
About themes - I think, it should be a lot easier, to give me a list of tags that do not work in new Locus and are included in v 0.5, and I'll try to add support also for them to Locus.

Hi Menion,
do you still intend to add support for mapsforge 0.5 themes?
At the moment I'm working on a new version based on mapsforge 0.5 possibilities of the Elevate theme for OpenAndroMaps, which of course doesn't work with Locus for now. Maybe it's good for testing:
http://www.openandromaps.org/en/oam-forums/topic/elevate-updates-and-test-versions-news#post-3858
Best regards,
Tobias
 
The following users thanked this post: wilma.cray

Offline menion

  • Administrator
  • Professor of Locus
  • *****
  • Posts: 10282
  • Thanked: 92 times
    • View Profile
    • http://www.asamm.com
  • Device: SGS7
Re: Mapsforge 0.5
« Reply #10 on: February 20, 2015, 18:24:17 »
Hi Tobias,

sorry for a late response.

Yes, I still think that support of major changes in 0.5 version should be useful not just for you (as a theme creator). So why not. Anyway I'll need some help. As this task is a longer one, I wants to do it step by step. So some important things first.

Best should be, if you should make just one theme for all apps right? Them may you write first (maybe first two) major things I should examine in new XML file and which you really desperately needs? Thanks
Ideas, wishes, problems
Advanced topics, public discussion, sharing of knowledges, testing beta versions: you're here!
 

Offline jusc

  • Global Moderator
  • Professor of Locus
  • *****
  • Posts: 1885
  • Thanked: 16 times
    • View Profile
  • Device: Samsung Galaxy S2 and Note 2
Re: Mapsforge 0.5
« Reply #11 on: February 20, 2015, 20:09:03 »
And what does it mean for all other themes?

Sent from my GT-N7100 using Forum Fiend v1.3.2.
Regards J.
 

Offline menion

  • Administrator
  • Professor of Locus
  • *****
  • Posts: 10282
  • Thanked: 92 times
    • View Profile
    • http://www.asamm.com
  • Device: SGS7
Re: Mapsforge 0.5
« Reply #12 on: February 20, 2015, 20:25:46 »
I think ... nothing :). All themes that works with Locus now, will stay in all cases 100% compatible. I'll take care of it, don't worry.
Ideas, wishes, problems
Advanced topics, public discussion, sharing of knowledges, testing beta versions: you're here!
 

Offline Tobias

  • More than Newbie
  • *
  • Posts: 72
  • Thanked: 2 times
    • View Profile
    • Elevate themes
Re: Mapsforge 0.5
« Reply #13 on: February 20, 2015, 21:14:17 »
Thanks for your response, I'm glad you're still into it.

Best should be, if you should make just one theme for all apps right? Them may you write first (maybe first two) major things I should examine in new XML file and which you really desperately needs? Thanks

You're right, there is one major obstacle which makes it nearly impossible to convert 0.5 themes to Locus: stylemenus and categories with overlays, as described here:
https://github.com/mapsforge/mapsforge/blob/master/docs/Rendertheme.md#stylemenus

It opens up a lot of possibilities, so I made intensive usage of it in my new previews. But it needs a user interface with mapstyle and layer selection.
Other new tags may possibly be converted by a script as a workaround for the time being.

And what does it mean for all other themes?

Other apps which support Rendertheme V4 still support older themes (except Locus extensions of course), so backward compatibility is no problem.

Best regards,
Tobias
 

Offline menion

  • Administrator
  • Professor of Locus
  • *****
  • Posts: 10282
  • Thanked: 92 times
    • View Profile
    • http://www.asamm.com
  • Device: SGS7
Re: Mapsforge 0.5
« Reply #14 on: February 21, 2015, 15:55:45 »
I was worried you'll need this :) ... hmm it will be task on a longer nights.
Ideas, wishes, problems
Advanced topics, public discussion, sharing of knowledges, testing beta versions: you're here!