Cruiser (mapsforge application)

1,455 views
Skip to first unread message

emux

unread,
Mar 4, 2015, 4:17:22 AM3/4/15
to
Cruiser is a map and navigation application.

- Map file chooser
- Render theme file chooser
- Display / track location and orientation on the map
- Compass
- Map orientation according to compass or direction of motion
- Routing (long press on map)
- Search
- Points of interest
- Fully compatible with OpenAndroMaps

It is using mapsforge 0.3.1-SNAPSHOT.

Emux
Cruiser - Atlas

fzk

unread,
Nov 24, 2013, 11:23:25 AM11/24/13
to mapsfo...@googlegroups.com
If tried Cruiser with my map and (complex) theme ... it immediately crashes after loading the theme. Where can I find further information about the cause (eg. logs or something)?

Cheers Klaus


Am Samstag, 23. November 2013 17:34:00 UTC+1 schrieb emux:
Cruiser is a map and navigation application.


- Map file chooser
- Render theme file chooser
- Display / track location and orientation on the map
- Compass
- Map orientation according to compass or direction of motion
- Routing (long press on map)
- Search
- Points of interest
- Fully compatible with OpenAndroMaps

It is using mapsforge 0.3.1-SNAPSHOT.

Best regards.

emux

unread,
Nov 24, 2013, 1:04:34 PM11/24/13
to mapsfo...@googlegroups.com
Hi Klaus,

Thank you for trying Cruiser.
I saw the NPE at Google Play developer console.

I just uploaded a new version of Cruiser (and Cruiser Beta) with a bug fix.
Please can you test it again?

Also can you please explain the steps you made and the NPE happened.
You said you have your own custom map and render theme.
You opened the map file and it worked, then when you opened the render theme file the crash happened?

I don't know if this is you asked, but I think you can see the application logs from a device if you connect it to your pc and with the LogCat.
Provided you enable the USB debugging at the device's Developer options.
http://developer.android.com/tools/debugging/debugging-log.html

Best regards, Emux
https://play.google.com/store/apps/details?id=gr.talent.cruiser

fzk

unread,
Nov 24, 2013, 3:06:17 PM11/24/13
to mapsfo...@googlegroups.com
Hi Emux,

I just have updated the Cruiser Beta (I couldn't find a build number). The app crashes immediately after loading the map (the theme is not yet involved at this point ). Do you need a  small test map (30 MB) for further investigations? If yes, please contact me at: easycl...@googlemail.com

Cheers Klaus

emux

unread,
Nov 24, 2013, 3:39:30 PM11/24/13
to mapsfo...@googlegroups.com
Hi Klaus,

I contacted you for the test map file.

emux

unread,
Nov 25, 2013, 6:20:50 AM11/25/13
to mapsfo...@googlegroups.com
Hi Klaus,

Cruiser 1.1.9 is published at Google Play.
The map you sent me does not have defined the start position and start zoom level, so a NPE happened at some point.
A fix was implemented, so that the lack of them is taken into account.

An issue I see at your render theme xml file is that at patterns and symbols file paths you use the prefixes:
file:/patterns and file:/symbols
which are interpreted by mapsforge as absolute paths, instead of:
file:patterns and file:symbols
which are relative paths to the theme xml file position.
On Sunday, November 24, 2013 10:06:17 PM UTC+2, fzk wrote:

fzk

unread,
Nov 26, 2013, 12:16:49 AM11/26/13
to mapsfo...@googlegroups.com
Hi emux,

thanks for fixing it ... beta version 1.1.10b1 works for me ... the map can be loaded successfully.

Relative vs. (pseudo) absolute pathes (a weakness of the MapsForge lib):

All external themes (as far as I know) are using a path scheme like this:
file:/patterns or file:/symbols

This has to be treated as a relative path (related to the xml file).
Yes you are right, this is from the technical point of view a absolute path and not a relative one.

Question / possible improvement: Is it possible to enlarge the space for drawing the map?
Ideas:
- make the header line (with the icon for position, ... settings) transparent
- hide the (system) soft keys (buttons for back, home, ...) (possible with Android 4.4)

Cheers Klaus


Am Montag, 25. November 2013 12:20:50 UTC+1 schrieb emux:
Hi Klaus,

emux

unread,
Nov 26, 2013, 3:33:59 AM11/26/13
to mapsfo...@googlegroups.com
Hi Klaus,

Thank you for your feedback about Cruiser!

- Yes, at a next version the prefix file:/ will have to be treated by Cruiser
(and) as relative paths, for user convenience.

- About the enlargement of the map space,
there also other requests asking for this and will eventually be implemented.
(action bar and/or the soft keys)

- Another reason for the need of maximizing the map space,
is that Cruiser aims to be at the future a complete navigation application
and so the extra space is mostly welcomed for the navigation instructions.
Message has been deleted
Message has been deleted

emux

unread,
Nov 26, 2013, 5:59:10 AM11/26/13
to mapsfo...@googlegroups.com
Hi,

I would like to inform about the following, concerning Cruiser:

1) Cruiser is currently using mapsforge 0.3.1-SNAPSHOT (render themes v2),
but is backwards compatible with render themes v1.
Because of this, it is fully compatible with OpenAndroMaps maps and its render themes (which are v1).


2) When Cruiser opens a map file via the file chooser, for convenience
it scans also the map directory for the proper render theme file.

- If it finds a render theme file with the same filename as the map file
(e.g. country.map & country.xml), it opens it automatically.

- If that fails, it looks for a render theme file with the OpenAndroMaps naming style
(e.g. country.map & country.map.xml), and it opens it automatically.

- If all the above steps fail then it sets the default Osmarender theme.
But you can always change the render theme via the file chooser.
On Saturday, November 23, 2013 6:34:00 PM UTC+2, emux wrote:
Cruiser is a map and navigation application.


- Map file chooser
- Render theme file chooser
- Display / track location and orientation on the map
- Compass
- Map orientation according to compass or direction of motion
- Routing (long press on map)
- Search
- Points of interest
- Fully compatible with OpenAndroMaps

It is using mapsforge 0.3.1-SNAPSHOT.

Best regards.

Tiago Pereira

unread,
Nov 26, 2013, 12:09:51 PM11/26/13
to mapsfo...@googlegroups.com
Hi emux,

Congrats with your great app.
We have talk a litle if you remember because my problem with the memory when i requestLocationUpdates. I was using mapsforge0.3.0.with dependencies jar. And with mapsforge 0.3.1 snapshot i don't have any problem with memory, but i can't handle the ontap events on overlays.
Any idea?

Thanks in advance.
Tiago Pereira

emux

unread,
Nov 26, 2013, 1:31:01 PM11/26/13
to mapsfo...@googlegroups.com
Hi Tiago,

Thanks for your kind words.
For the touch events check the solution described at:
http://code.google.com/p/mapsforge/issues/detail?id=336#c4

You don't have to change the original mapsforge code if you don't want to.
Just extend / copy the relevant classes in your own project and use them in an extended MapView.
Of course it is a temporary solution, till official touch support.

For that you may have to see the discussion at:
https://groups.google.com/d/msg/mapsforge-dev/zhI6jMHOEOw/6ji9XkSzRLwJ
The soon expected rewrite branch will have tappable markers, among other welcomed features.

Nirab Pudasaini

unread,
Nov 28, 2013, 12:07:01 AM11/28/13
to mapsfo...@googlegroups.com
Nice app . I would recommend you take a look at graphhopper which is a routing library and would allow you to do routing offline. Any way i can obtain the source for the app?

emux

unread,
Nov 28, 2013, 2:00:30 AM11/28/13
to mapsfo...@googlegroups.com
Hi Nirab,

Thanks for the suggestion, I know GraphHopper project.
Ιt can be incorporated at a next version of Cruiser.
(Sorry it's free, closed source application)

emux

unread,
Nov 28, 2013, 2:25:50 AM11/28/13
to mapsfo...@googlegroups.com
Hi,

Cruiser (using mapsforge) available on Google Play:
https://play.google.com/store/apps/details?id=gr.talent.cruiser

Please could you add it to the Wiki: http://code.google.com/p/mapsforge/wiki/MapsforgeApplications
It is free, closed source application

Thank you!


Emux
https://play.google.com/store/apps/details?id=gr.talent.cruiser


On Saturday, November 23, 2013 6:34:00 PM UTC+2, emux wrote:
Cruiser is a map and navigation application.


- Map file chooser
- Render theme file chooser
- Display / track location and orientation on the map
- Compass
- Map orientation according to compass or direction of motion
- Routing (long press on map)
- Search
- Points of interest
- Fully compatible with OpenAndroMaps

It is using mapsforge 0.3.1-SNAPSHOT.

Best regards.
Message has been deleted
Message has been deleted

emux

unread,
Dec 4, 2013, 1:15:10 PM12/4/13
to mapsfo...@googlegroups.com
Hi,

I would like to inform you about the new version of Cruiser 1.1.10:

- Improved compatibility with OpenAndroMaps
It can read Locus, Orux and Elevate render themes.

- At render themes the prefix file:/ is treated both as absolute and as relative file path.
So it can read without problems all external render themes.

Best regards, Emux

https://play.google.com/store/apps/details?id=gr.talent.cruiser


On Saturday, November 23, 2013 6:34:00 PM UTC+2, emux wrote:
Cruiser is a map and navigation application.


- Map file chooser
- Render theme file chooser
- Display / track location and orientation on the map
- Compass
- Map orientation according to compass or direction of motion
- Routing (long press on map)
- Search
- Points of interest
- Fully compatible with OpenAndroMaps

It is using mapsforge 0.3.1-SNAPSHOT.

Best regards.
Message has been deleted

emux

unread,
Jan 9, 2014, 4:39:47 AM1/9/14
to mapsfo...@googlegroups.com
Hi,

Cruiser Beta 1.1.11b2 now uses mapsforge rewrite rescue branch.

https://play.google.com/store/apps/details?id=gr.talent.cruiser.beta

It has map file chooser and render theme file chooser.
Included default Osmarender render theme is now using SVG icons.

Best regards, Emux

https://play.google.com/store/apps/details?id=gr.talent.cruiser


On Saturday, November 23, 2013 6:34:00 PM UTC+2, emux wrote:
Cruiser is a map and navigation application.


- Map file chooser
- Render theme file chooser
- Display / track location and orientation on the map
- Compass
- Map orientation according to compass or direction of motion
- Routing (long press on map)
- Search
- Points of interest
- Fully compatible with OpenAndroMaps

It is using mapsforge 0.3.1-SNAPSHOT.

Best regards.

Maki

unread,
Jan 11, 2014, 5:00:21 PM1/11/14
to mapsfo...@googlegroups.com
Il giorno giovedì 9 gennaio 2014 10:39:47 UTC+1, emux ha scritto:
Hi,

Cruiser Beta 1.1.11b2 now uses mapsforge rewrite rescue branch.

https://play.google.com/store/apps/details?id=gr.talent.cruiser.beta

It has map file chooser and render theme file chooser.
Included default Osmarender render theme is now using SVG icons.

 Hi Emux,

I briefly tried the new beta, I hoped to find a little more time but I couldn't. Sorry.

Compared to Oruxmaps (MF 0.30, I suppose) with my own theme I see some differences:
*) It seems slower. However it gets better when tiles are drawn from cache.
*) zoom levels are different. I can't see the zoom level in Cruiser (this kind of info would be very useful at least in the beta) but since I use area fill on forests up to ZL13 and a texture at ZL14+ I see that in Cruiser things are 1ZL bigger.
*) lines sometimes give the impression of being thicker, but I haven't measured. Can be related to the point above.
*) zooming is awkward. I like the effect of "bouncing back", but sometimes is excessive. If I start a pinch to zoom to enlarge a bit (but not enough to pass to the next level) then I lift the fingers ZL goes back by two levels, while it should go back to where it was.
*) randomly killed symbols are still randomly killed. For example I have to zoom a lot before the hut and the shelter are shown here

I also gave a look to the SVG theme. I see that my concerns expressed in another thread were founded. Mountains are enormous. I really hope that some control for icon size is introduced.

Anyway it's extremely pleasing to see that things are progressing, thanks guys. :-)

Best regards, Maki

emux

unread,
Jan 12, 2014, 9:03:24 AM1/12/14
to mapsfo...@googlegroups.com
Hi Maki,

Thanks for trying Cruiser and for the comments!


*) zoom levels are different. I can't see the zoom level in Cruiser (this kind of info would be very useful at least in the beta) but since I use area fill on forests up to ZL13 and a texture at ZL14+ I see that in Cruiser things are 1ZL bigger.
*) lines sometimes give the impression of being thicker, but I haven't measured. Can be related to the point above.

At next versions of both Cruiser and Cruiser Beta there will exist debug features,
like tile grid, tile coordinates / zoom and map file info.

Which device / DPI are you using?
Because at rescue branch the tile size is not fixed (256x256) like at 0.3.X but variable based on device DPI.
So at high DPI devices the tile size increases, with the effect that everything is drawn bigger (names, buildings, streets etc.).
That's giving the illusion that the zoom is different. New tile size is 256 x (DPI / 160), so at a device 240dpi it is 384x384 pixels.

Also at rescue branch there is a correction at order of area painting (interior, outlines),
so now some lines look thicker. The related discussion is at:
https://groups.google.com/forum/#!topic/mapsforge-dev/O1ZEnP2CQSA

emux

unread,
Jan 13, 2014, 4:21:57 AM1/13/14
to mapsfo...@googlegroups.com
Hi,

Cruiser 1.1.11  (mapsforge master branch 0.3.1-snapshot)
Cruiser Beta 1.1.12b2  (mapsforge rescue branch 0.4.0-snapshot)

with debug features:
- Map file info
- Draw tile boundaries
- Show coordinates on tiles

Best regards, Emux

https://play.google.com/store/apps/details?id=gr.talent.cruiser

Maki

unread,
Jan 14, 2014, 4:21:00 PM1/14/14
to mapsfo...@googlegroups.com
Il giorno domenica 12 gennaio 2014 15:03:24 UTC+1, emux ha scritto:

Which device / DPI are you using?
Because at rescue branch the tile size is not fixed (256x256) like at 0.3.X but variable based on device DPI.
So at high DPI devices the tile size increases, with the effect that everything is drawn bigger (names, buildings, streets etc.).
That's giving the illusion that the zoom is different. New tile size is 256 x (DPI / 160), so at a device 240dpi it is 384x384 pixels.

I'm on a Galaxy Nexus, around 320 dpi. Tile size is 512 and works fine but I have a doubt nonetheless. I released tonight an update to my theme and the biggest change is in the patterns. I made all of them (well, almost in a couple of cases it was irrelevant) seamless *and* I sized them to fit evenly in the 256x256 tile size to avoid Mapsforge breaking them. Of course they work fine in a 512x512 tile, but I wonder what happens at other tile sizes. Is there any mechanism to prevent visible seams at odd tile sizes?

Best regards, Maki

emux

unread,
Jan 15, 2014, 3:51:08 AM1/15/14
to mapsfo...@googlegroups.com
Hi Maki,

I play already with your updated theme and I understand your concerns.

Latest versions of Cruiser and Cruiser Beta have now debug settings
with drawing of tile boundaries and showing of coordinates at tiles.
So it's easier to check exactly the patterns at tile borders.

I have also the same case of making the patterns seamless,
at one of my apps Hunt Cyprus which has custom map and render theme.
Currently it's using mapsforge 0.3.1-snapshot
so I have to take care only the 256x256 tile size,
but in the case of rescue branch the tile size will of course be variable.

However the possible tile sizes are multiples of 256x256,
so always we have to deal with even values for each side.
I think that this is a plus for the design of patterns,
that are not just pure colors but image files.

Ludwig

unread,
Jan 15, 2014, 4:05:06 AM1/15/14
to mapsfo...@googlegroups.com
The tile-sizing on Android follows the scaledDensity of the device, which is the density plus user adjustments for font-size, see https://developer.android.com/reference/android/util/DisplayMetrics.html#density

This means that you will not actually get any arbitrary value (even though the possible values are not defined), but rather something like 0.75 (probably not today anymore), 1, 1.5, 2, 3 (eg. Nexus 5), with resulting tile sizes. 

Alternatively, you could set the tile size via the DisplayModel (maybe setting the tile-size directly would need a better, direct API for it). That way you could restrict this to straight multipliers.

If you wanted to optimize the bitmaps for all displays but have large bitmaps, it might be best to work with 128*128 as the base size as that should work for 1, 1.5, 2, 2.5 (never seen this) and 3. 

This does not take account of user adjustments that an app might allow. If the app is under your control, you might want to restrict user settings.

Ludwig



--
You received this message because you are subscribed to the Google Groups "mapsforge-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mapsforge-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mapsforge-dev/890e12b8-5687-4a61-a931-7cd6170047b9%40googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

emux

unread,
Jan 15, 2014, 4:29:46 AM1/15/14
to mapsfo...@googlegroups.com
Now I remember that working with the Nexus 7 (2012),
I saw it has 216 ppi (TVDPI) with density=1.3
There the tile size will be 256 x 1.3

I have to check the device for the actual value,
but I wonder if its tile size is even or odd number.

Ludwig

unread,
Jan 15, 2014, 4:37:28 AM1/15/14
to mapsfo...@googlegroups.com
Thanks for the clarification, I had only seen the 'rounder' values, I guess this is one of the pleasures of Android developing.


Maki

unread,
Jan 16, 2014, 3:11:57 PM1/16/14
to mapsfo...@googlegroups.com
Hi guys,

I'm sorry but not being a developer I generally understand only half of what you say. Instructive nonetheless. ;-)

If I understand correctly seamless patterns that fit well in a 128x128 tile will work well except on selected devices. Isn't it possible to force tile size to be a multiple of a given value? Or having the pattern origin calculated with respect to a common point rather than tile origin?

I also found a problem that was present in 0.30 and I thought was corrected in Rescue. I attach a screenshot. It gets worse at lower zoom levels.
Screenshot_2014-01-16-13-48-19.png

emux

unread,
Jan 16, 2014, 3:36:06 PM1/16/14
to mapsfo...@googlegroups.com
Hi Maki,


I'm sorry but not being a developer I generally understand only half of what you say. Instructive nonetheless. ;-)

Still your work with Tiramisù theme is quite remarkable!
 
If I understand correctly seamless patterns that fit well in a 128x128 tile will work well except on selected devices. Isn't it possible to force tile size to be a multiple of a given value? Or having the pattern origin calculated with respect to a common point rather than tile origin?

How about small patterns e.g. 32x32 or smaller and forced tile sizes that are always multiple of a given pattern value (multiple of 2) ?
 
I also found a problem that was present in 0.30 and I thought was corrected in Rescue. I attach a screenshot. It gets worse at lower zoom levels.

Maki at what zoom level is that screenshot? (You can enable debug settings at Cruiser to show it)
This is an issue that bothers me from using transparent color or png for filling areas.
It's about tile border artifacts at zoom levels 12-13 and it's been discussed with some proposed solutions at
https://groups.google.com/forum/#!topic/mapsforge-dev/1TzknbgeJgo
See also Tobias answer at:
https://groups.google.com/d/msg/mapsforge-dev/IZ8Ctnmwuv0/oH9tyXEd9pQJ
and Ludwig's at:
https://groups.google.com/d/msg/mapsforge-dev/IZ8Ctnmwuv0/CPrnL1Q-wpcJ

Maki

unread,
Jan 18, 2014, 4:17:58 PM1/18/14
to mapsfo...@googlegroups.com
If I understand correctly seamless patterns that fit well in a 128x128 tile will work well except on selected devices. Isn't it possible to force tile size to be a multiple of a given value? Or having the pattern origin calculated with respect to a common point rather than tile origin?

How about small patterns e.g. 32x32 or smaller and forced tile sizes that are always multiple of a given pattern value (multiple of 2) ?

That's too small, you can draw a single tree in that space and repeat it, but it gives a nasty checkboard effect in most cases. To draw good patterns you have to introduce some randomness in element's placement, which requires space. Of course one can use subtle patterns and rely mostly on color, but I find that limiting. It's not an aesthetic thing, symbols are always easy to interpret while color shades are difficult to deal with outdoors. I see some serious potential for SVG here, since it can be scaled at no loss.

What I wonder is the amount of resources necessary for the various solutions. I remember the days of Netscape 4 when to save bandwidth people used very small tiles that where fast to download but bogged down the CPUs when it come to repeat them thousand of times. What's the situation with Mapsforge? Are big tiles heavier to handle?
  
I also found a problem that was present in 0.30 and I thought was corrected in Rescue. I attach a screenshot. It gets worse at lower zoom levels.

Maki at what zoom level is that screenshot? (You can enable debug settings at Cruiser to show it)
This is an issue that bothers me from using transparent color or png for filling areas.
It's about tile border artifacts at zoom levels 12-13 and it's been discussed with some proposed solutions at

Yes, that it. With Rescue it's worse as it is visible at almost all zoom levels, but it gets better zooming in. I forgot about that thread.
I attach another screenshot of text going wild.

Best regards, Maki.
Screenshot_2014-01-17-13-34-00.png

emux

unread,
Jan 25, 2014, 6:34:53 AM1/25/14
to mapsfo...@googlegroups.com
Cruiser 1.1.12 (mapsforge master 0.3.1-snapshot)
Cruiser Beta 1.1.13b1 (mapsforge rescue 0.4.0-snapshot & Osmarender theme with SVG icons)

What's New
- Tools: Reload map
- Tools: Map file info
- Debug: Draw tile boundaries
- Debug: Show coordinates on tiles

https://wiki.openstreetmap.org/wiki/Cruiser

emux

unread,
Feb 12, 2014, 6:16:07 AM2/12/14
to mapsfo...@googlegroups.com
Cruiser 1.1.13 (mapsforge master 0.3.1-snapshot)
Cruiser Beta 1.1.14b1 (mapsforge rescue 0.4.0-snapshot & Osmarender theme with SVG icons)

- Improved Osmarender theme (new icon set)
- Latest mapsforge
- Improvements and bug fixes

Best regards, Emux
Cruiser - Cruiser Beta - Atlas

morty346

unread,
Feb 12, 2014, 8:14:04 AM2/12/14
to mapsfo...@googlegroups.com
Played with Cruiser Beta - works nicely! I could see this coming in quite handy when I don't have internet connection!

Curious with the navigation - how hard was that to implement?
Could this be something that is added to mapsforge as open source?

Great Job!

regards

emux

unread,
Feb 12, 2014, 8:50:06 AM2/12/14
to mapsfo...@googlegroups.com
Hi,

Cruiser (as Atlas) development is an ongoing process.
It's navigation module consists of various coupled elements
like communication with routing providers,
extending mapsforge overlay and event mechanisms etc.
For start the simplest implementation stills remains
to retrieve a route and just draw its line geometry.


Best regards, Emux
Cruiser - Cruiser Beta - Atlas

Daniele Germano

unread,
Feb 20, 2014, 11:24:56 AM2/20/14
to mapsfo...@googlegroups.com
Very nice App !

i would like to implement the  search section as yours in my app too. Do you know where i can find some good tutorial to do this.
I read the Wiki page but really i didn't understand so much.
i think i must use the Overlay api but i can't find more information about it.

emux

unread,
Feb 20, 2014, 12:19:38 PM2/20/14
to mapsfo...@googlegroups.com
Hi,

Depending on the version of mapsforge you would like to use.
I strongly recommend to use rescue, all other versions are not maintained anymore.

I still have Cruiser to mapsforge 0.3.1 but advanced Cruiser Beta to rescue branch,
without any issues.

You may start by studying the Samples app.
In there you'll find many examples, including overlays.

In case you're asking about RESTFul Web Services that can provide you with search results,
there are a lot out there, e.g. MapQuest has a nice collection of API to play with.


Best regards, Emux
Cruiser - Cruiser Beta - Atlas

Daniele Germano

unread,
Feb 20, 2014, 2:54:45 PM2/20/14
to mapsfo...@googlegroups.com
Thanks for the answer.

For offline search, do i need to build a database with all the data right?
Is PostGis the right solution to do this?

emux

unread,
Feb 20, 2014, 3:00:49 PM2/20/14
to mapsfo...@googlegroups.com
Yes for this you'll need probably an offline database.
Check out SpatiaLite, I have successfully used it at Android apps.


Best regards, Emux
Cruiser - Cruiser Beta - Atlas

Daniele Germano

unread,
Feb 20, 2014, 3:17:39 PM2/20/14
to mapsfo...@googlegroups.com
Seems very useful.

Thank you!
Message has been deleted

emux

unread,
Feb 21, 2014, 2:25:10 AM2/21/14
to mapsfo...@googlegroups.com
Hi all,

Continuing to play with rescue-exp and render theme v4,
and having the need for flexible apps (using latest mapsforge)
to test maps and themes:

- I'm willing to advance Cruiser from mapsforge 0.3.1 to rescue
and Cruiser Beta from mapsforge rescue to rescue-exp branch.

- Also as Atlas is using mapsforge rescue,
I'll publish Atlas Beta with mapsforge rescue-exp branch.

So Beta editions of Cruiser and Atlas are going to be published frequently,
as mapsforge rescue-exp is getting new engine / render theme features.

(Still waiting for rescue to become official 0.4 release)

emux

unread,
Feb 27, 2014, 4:04:58 AM2/27/14
to mapsfo...@googlegroups.com
Cruiser 1.2.0 (mapsforge rescue 0.4.0)
Cruiser Beta 1.3.0 (mapsforge rescue-exp 0.5.0 & render theme v4)

Cruiser advances to mapsforge rescue 0.4.0 and Cruiser Beta to mapsforge rescue-exp 0.5.0

- Online maps (MapQuest, Mapnik, Cycle Map, MapBox Terrain, MapBox Labeled Satellite, MapBox Satellite)

- Latest mapsforge
- Improvements and bug fixes

Cruiser Beta is going to be published frequently,
as mapsforge rescue-exp is getting new features.


Best regards, Emux
Cruiser - Cruiser Beta

emux

unread,
Mar 1, 2014, 10:33:32 AM3/1/14
to mapsfo...@googlegroups.com
Cruiser Beta 1.3.1 (mapsforge rescue-exp 0.5.0 & render theme v4)

- Latest mapsforge (with SVG cache)
- Improvements and bugfixes

Simone Giannecchini

unread,
Mar 3, 2014, 3:38:37 AM3/3/14
to mapsfo...@googlegroups.com
Dear All,
sorry for being a pester.

I don't know about the others but I think that on this mailing list especially (being a dev list) we should see only messages strictly related to the development of MapsForge.
While Cruiser is a nice applications, I believe it should not use MapsForge mailing lists as its own support/announce lists. What if everybody was doing that?

My intent is not to start a flame and I am fine with being ignored, but since this ML is still a low-traffic email IMHO it is better to put this on the plate now rather than when/if it will become more crowded.

Regards,
Simone Giannecchini.

fzk

unread,
Mar 3, 2014, 4:49:55 AM3/3/14
to mapsfo...@googlegroups.com
I don't agree to remove this thread from here: Cruiser / Cruiser Beta and Atlas / Atlas Beta are like reference implementations and are very important for theme developers.

Klaus 

Karussell

unread,
Mar 3, 2014, 5:15:48 AM3/3/14
to mapsfo...@googlegroups.com
Hey,

I agree with Klaus but also with Simone and I really like Cruiser etc apps and as it is based on Mapsforge. So, I think major version should be fine to be announced here. But yes, minor versions or updates should be instead posted to a separate mailing list or twitter stream etc, also questions regarding Cruiser.

But if there is discussion because of a release or whatever started by mapsforge users/devs it should be still possible here, of course.

IMO this is kind of standard for every mailing list.

Kind Regards,
Peter.

--
You received this message because you are subscribed to the Google Groups "mapsforge-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mapsforge-de...@googlegroups.com.

morty346

unread,
Mar 3, 2014, 7:41:25 AM3/3/14
to mapsfo...@googlegroups.com
Heres an idea - go to the top right click the little guy with the gear go to "my topic email subscription" and uncheck this thread.  The google group is for all things related to mapsforge if you take some time to read through some of the comments on this thread you will see people had questions about how to implement aspects of this application.  If you do not care - do not subscribe to this thread... 

That would have taken less time than replying to this thread...

Simone Giannecchini

unread,
Mar 3, 2014, 12:39:10 PM3/3/14
to mapsfo...@googlegroups.com
Dear morty346,
Thanks for this valuable information, it adds a lot to the discussion, really!

Regards,
Simone.

Maki

unread,
Mar 4, 2014, 4:28:43 PM3/4/14
to mapsfo...@googlegroups.com
Il giorno lunedì 3 marzo 2014 09:38:37 UTC+1, Simone Giannecchini ha scritto:
Dear All,
sorry for being a pester.

Hi Simone, I don't think you are a pester. And I have to say that you are right, if everybody starts doing that it's a mess.

However this, at least in part, a particular case, since the betas of Atlas and Cruiser use the experimental branch of Mapsforge and are the only way for non-developers (themers in particular) to try this stuff at an early stage without getting mad. If we have to wait 0.50 release just to know how it works, development is surely going a lot slower. It also seems to me that most if not all the feedback he got here is about that, so it is a bit unfair to say that he's using the list as a support channel.

One may argue that the Play store already warns us that a new version is out, that's true, but Atlas isn't there. And believe me, if you have to thinker a Mapsforge theme Atlas is a tremendous time saver.

Peace&Love :-)

Simone Giannecchini

unread,
Mar 5, 2014, 3:51:58 AM3/5/14
to mapsfo...@googlegroups.com
Ciao Maki,
this is the exact feedback I was expecting.

At a certain point we might want to create an announce list or
something for this kind of posts that are of interest to the community
but not strictly related to the development.

As of now, I am perfectly happy with keeping things this way for the
moment since the community is still small, although the flow of email
is not _that_ small already.


Regards,
Simone Giannecchini
==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for
more information.
==

Ing. Simone Giannecchini
@simogeo
Founder/Director

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 333 8128928

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------
> --
> You received this message because you are subscribed to the Google Groups
> "mapsforge-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to mapsforge-de...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/mapsforge-dev/ef592bb0-af7d-4439-9235-544c600efe2a%40googlegroups.com.

Daniele Germano

unread,
Mar 5, 2014, 2:11:43 PM3/5/14
to mapsfo...@googlegroups.com
Hi Emux

How did you change the standard zoom buttons ?

Thank you


Il giorno sabato 1 marzo 2014 16:33:32 UTC+1, emux ha scritto:

emux

unread,
Mar 5, 2014, 2:27:31 PM3/5/14
to mapsfo...@googlegroups.com
Hi Daniele,

Actually I didn't change mapsforge standard zoom controls.

I just don't use them, but instead I use my own buttons
which call at their listener MapViewPosition's zoom methods.


Best regards, Emux
Cruiser - Cruiser Beta
Atlas - Atlas Beta


Daniele Germano

unread,
Mar 5, 2014, 9:47:56 PM3/5/14
to mapsfo...@googlegroups.com
Thanks for the answer

Unfortunately i did not understand very clear how to do it.

Do i need to change the MapViewPosition.java ?

emux

unread,
Mar 6, 2014, 2:06:30 AM3/6/14
to mapsfo...@googlegroups.com
A way is by hosting the MapView in a ViewGroup e.g. RelativeLayout,
where you can add your own buttons on top of map view.

Then at button listeners you call MapViewPosition zoomIn / zoomOut methods.
There is no need to change anything to mapsforge src.


Best regards, Emux
Cruiser - Cruiser Beta
Atlas - Atlas Beta


emux

unread,
Mar 9, 2014, 7:01:37 AM3/9/14
to mapsfo...@googlegroups.com
Cruiser Beta 1.3.2 (mapsforge rescue-exp 0.5.0 & render theme v4)

With (automated) map style menu
based on active render theme v4 styles
and latest mapsforge.


Best regards, Emux
Cruiser - Cruiser Beta
Atlas - Atlas Beta


Daniele Germano

unread,
Mar 20, 2014, 7:44:02 AM3/20/14
to mapsfo...@googlegroups.com
Hi Emux

As you say, i have added new zoom buttons to my map.
But i can't really understand how to set this buttons to have the same functions of the default zoom controls.

once i remove this.mapView.setBuiltInZoomControls(true); , how can i set my new buttons to have the same functions?

Could you please help me to figure out how do this?

this is my xml   

<?xml version="1.0" encoding="UTF-8"?>

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"

    android:id="@+id/mainView"

    android:layout_width="fill_parent"

    android:layout_height="fill_parent" >


    <org.mapsforge.android.maps.MapView

        android:id="@+id/mapView"

        android:layout_width="fill_parent"

        android:layout_height="fill_parent" />


    <Button

        android:id="@+id/button1"

        android:layout_width="wrap_content"

        android:layout_height="wrap_content"

        android:layout_above="@+id/button2"

        android:layout_alignParentRight="true"

        android:background="@drawable/zoom_up" />


    <Button

        android:id="@+id/button2"

        android:layout_width="wrap_content"

        android:layout_height="wrap_content"

        android:layout_alignParentBottom="true"

        android:layout_alignParentRight="true"

        android:background="@drawable/zoom_down" />


</RelativeLayout>


emux

unread,
Mar 20, 2014, 8:03:10 AM3/20/14
to mapsfo...@googlegroups.com
You need to set a listener to your buttons with button.setOnClickListener(View.OnClickListener)
and at the listener's onClick call mapView.getModel().mapViewPosition.zoomIn / zoomOut methods.

For more sophisticated result I suggest to take a look at mapsforge MapZoomControls class
using Android ZoomControls which is a LinearLayout hosting ZoomButton(s).

--

Daniele Germano

unread,
Mar 20, 2014, 11:56:38 AM3/20/14
to mapsfo...@googlegroups.com
works great!
Thank you

Daniele Germano

unread,
Mar 22, 2014, 9:39:31 AM3/22/14
to mapsfo...@googlegroups.com

I have (thanks to your advice) successfully a change the images and set the zoom in and zoom out, but there's only one last thing that i can't understand.

I had a look to the MapZoomControls class and the Android ZoomControls class, but i can't find where and how are set the different images when max zoom and min zoom are reached.

devemux86

unread,
Mar 22, 2014, 10:42:12 AM3/22/14
to mapsfo...@googlegroups.com
At MapZoomControls:318 there is the changeZoomControls method called from onZoomLevelChange (line 215).

Essentially you want at each zoom level change to check you current zoom level
with min / max zoom levels and call then the setEnabled method of your Button(s).
They could of course have different resources for their various states (enabled, disabled etc).

Daniele Germano

unread,
Mar 22, 2014, 6:47:48 PM3/22/14
to mapsfo...@googlegroups.com
Thanks for your time, i really appreciate it.

I use the 0.3.1 library, so i have just onZoomLevelChange, but i think is not this the problem. I just can't understand how to implement the new icons at zoom min / max.

for change zoom in and zoom out images, i have add 2 ImageButton in the xml file, and then i have use this code:

                ImageButton zoomIn = (ImageButton) findViewById(R.id.zoomIn);

zoomIn.setBackgroundResource(R.drawable.action_click_zoom_in);

zoomIn.setOnClickListener(new View.OnClickListener() {

    public void onClick(View v) {


    mapView.getMapViewPosition().zoomIn();

   

    }


});

ImageButton zoomOut = (ImageButton) findViewById(R.id.zoomOut);

zoomOut.setBackgroundResource(R.drawable.action_click_zoom_out);

zoomOut.setOnClickListener(new View.OnClickListener() {

    public void onClick(View v) {

   

    mapView.getMapViewPosition().zoomOut();


    }

}); 


In your last message, you told me i need to check the current zoom level with my min/max zoom levels, but the problem is that i don't know how to do this steps for switch the regular zoom in/out icons with the zoom min/max icons.

I've tried to search here and around the web if can find some example or help but without success.


Sorry if i take too much time to you, but tho is my first project with maps.

devemux86

unread,
Mar 23, 2014, 9:08:57 AM3/23/14
to mapsfo...@googlegroups.com
It's better to continue this conversation to a separate topic,
so others can search/find this information easier there.

See my answer here.

emux

unread,
Apr 27, 2014, 1:55:10 PM4/27/14
to mapsfo...@googlegroups.com
Cruiser Beta 1.3.9 (mapsforge rescue-exp 0.5.0 & render theme v4)

- Offline routing (GraphHopper)

The graph folder can be defined at 'Settings' - 'Navigation'.
Cruiser supports graphs with contraction hierarchies enabled or disabled.

From Wiki:
Contraction hierarchies is a post-import process which makes routing faster (bidirectional algorithms).
At the moment only one travel mode (usually car) can be used if contraction hierarchies is enabled.
A more flexible routing (but slower) with multiple travel modes (car, bike, foot) requires graphs with contraction hierarchies disabled.

I have created contraction hierarchical graphs for some regions.
http://www.talent.gr/public/graphs/
There are also some no contraction hierarchical graphs, having the suffix '_vehicles'.

Also there is a discussion at GraphHopper mailing list about download servers hosting graphs for OSM areas (countries / regions).

You can email me if you need more graphs.

Emux
Cruiser - Atlas

Emux

unread,
May 21, 2014, 7:00:16 AM5/21/14
to mapsfo...@googlegroups.com
Cruiser 1.2.4 (mapsforge master)
Cruiser Beta 1.3.12 (mapsforge dev)

Both have:
- Offline routing (GraphHopper)
- Drag route markers
- Render theme style selection
- Compatible with render theme v4

--
Emux
Cruiser - Atlas

Emux

unread,
Jul 28, 2014, 2:17:14 AM7/28/14
to mapsfo...@googlegroups.com
Continued from here..

Thanks Klaus,
about the rendering issue, it's something that appeared with 'dev' changes.
I have found also a glitch concerning the 'oneway' symbol and the road labels, mentioned here.

Emux

unread,
Aug 29, 2014, 7:06:05 AM8/29/14
to mapsfo...@googlegroups.com
Cruiser v1.2.8 (mapsforge master)
Cruiser Beta v1.3.19 (mapsforge dev)

- Support for routing graphs with elevation data (bike2),  like with contraction hierarchies.
I have updated the graphs, '_all' (car, bike, foot) include elevation data for the 'bike' travel type.

- Variable text size of vector maps
- Adjust scale of the map display

From now on the new versions of Cruiser will be announced in its forum.
Major features related to mapsforge can be found here too.
http://groups.google.com/group/cruiser-android
Reply all
Reply to author
Forward
0 new messages