Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - Tobias

Pages: 1 ... 3 4 [5] 6 7
Troubles & Questions / Re: POIs: Where to get, how to filter?
« on: June 19, 2015, 22:41:10 »
I think the answer to your question is no. As you say, you can do something similar with the Elevate theme from OpenAndroMaps.
One simple trick here is to use Elements, and only show the category you're interested in, e.g. "amenities" for drinking water or "car" for parking, and those POIs are displayed as soon as they are contained in the map.

Discussion/New features / Re: Mapsforge 0.5
« on: June 18, 2015, 21:29:57 »
I think Klaus' idea of having two different mapsforge libraries shows some of the ambivalent way the development has taken the last years with mapsforge.
There are community based maps and themes that are made for as many apps as possible, for those are compatibility and an open standard very important (e.g. OpenAndroMaps, Freizeitkarte).
On the other hand Locus built its own proprietary ecosystem with maps, themes and POI database upon mapsforge. For this compatibility is not a big issue, adapting to the needs of this ecosystem is much more important.
Of course there are more sides to it, but with these agendas in mind one library can't really serve both purposes (I'm a bit reminded of internet browsers and html standards ;-)).

What also developed is the usage of mapsforge maps outside of android apps. People are so used to the way they look and appreciate that, so based on mapsforge now there are tileservers, mobac generates raster maps and there are java apps for PCs like Atlas and Route Converter. So route planing even with QuoVadis is possible now.

So of course I would welcome Klaus' idea, as it would take all this into account, but I also appreciate Menion's efforts to at least have some of the new options.

@menion: Just some clarifications on mapsforge development: yes, it was dormant for a while, but last year two major releases were released. Master, which your referred to above, is the stable branch, development happens here and is quite active:

@jusc: As well as Locus has been optimized, mapsforge has been optimized, too, not only new features, and renders differently. Even pure mapsforge 0.3 renders different than Locus nowadays, as Locus is prioritizing captions to symbols (at least it looks so).
Lots of rendering issues have been fixed in mapsforge 0.5. There are so many differences now, not only device dependent scaling and positions of lines vs. fillings. Other things include dy for symbols/captions on areas, dy on ways/pathText/lineSymbol that are scaled the same as stroke-width, automatic position of captions in relation to symbols, priorities that work very well and are very nice combined with a system to switch on/off collision detection per rule etc.
All this gives me more control to get the map rendered without the pitholes and workarounds that were necessary with mapsforge 0.3, and there is more in development (label layer, which solves another big issue with missing POIs/captions).

@fzk: I made a script to convert my mapsforge 0.5 themes, so they work now well with Locus, if you're interested send me your Email.

Discussion/New features / Re: Mapsforge 0.5
« on: June 12, 2015, 22:14:06 »
I got some error reports with the theme chooser. If you use map > offline > details, and hit the theme for a second time here, the mapstyle/overlay menu pops up only for a very short time. It's not the case via the button in the panel or via settings > maps advanced.

Discussion/New features / Re: Mapsforge 0.5
« on: June 08, 2015, 20:37:31 »
I just tested your screenshot, it works fine for me with the 240dpi version,

Fact that you see a blue "i" and not correct icon is probably because Locus is not able to find path to SVG/BMP icon.

If the icon is missing maybe you haven't copied the "ele_res" when you were moving it manually to the external sd card. It is crucial that this folder is up to date, as some symbols have changed. Have a look here for manual installation:

@menion: Is there anything I can do with the xml file here to make it work with custom maps_vector folders?

Discussion/New features / Re: Mapsforge 0.5
« on: June 08, 2015, 19:47:15 »
- install with firefox didnt work, with original Samsung Browser no Problem :)
Yes, that's a limitation of Firefox, maybe we should add that to the FAQ

- i have locus installed to internal SD and my Vectormaps are stored on extern SD, Elevate theme was installed automatic to internal theme folder. So at first moment Elevate was not available until i´v moved it to external theme folder. Perhaps you can add this info to your instruction file ;) for new users 8)
I think that is a bug limitation in Locus when locus-actions are not using the custom folder you set in the preferences. I use a different setting which works - I added my maps folder on the external SD card via "add local maps" in the maps browser, so the theme folder is on internal SD and locus-actions with automatic install work as expected.

On my device i have problems with following settings
- Hiking + puplic transport
- city + puplic transport network
- cycling + puplic transport
up to ZL 15 a blue " i " label and maptiles are displayed well :)
on ZL16 and ZL17 tiles where i-labels on top, didnt zoom :-[

one additional question, on screenshot are two labels beside, "Rathaus Nord" and "Rathaus Süd" why that, we have only one "Rathaus" :P
These are things that I can't influence, some functions of Locus - the blue "i"s and the "Rathaus Nord" popup are not part of the theme. I don't know why the maps don't render at the i-Labels - are you using the SVG theme?

Best regards,

Discussion/New features / Re: Mapsforge 0.5
« on: June 07, 2015, 15:45:47 »
I discuss "priorities" with Petr and he confirmed that we tried this system to make labeling better, but it still do not work as we wanted. System was anyway left in Locus. But really, do not expect some better results in Locus.

Thanks for the information. Priority is really an improvement with mapsforge 0.5, label/symbol elimination can now be controlled pretty well. Maybe there's some code you can use.

Theme switcher - directly open a settings is not exactly what I think it is wanted. I'll anyway do some more UI improvements here, so it will evolve over time.
It would be good to pop up a mapstyle switcher as with your native Locus mapstyle system (like I had in Elevate 3.0.1 and John has in his themes), so that at least cycling/hiking/city can be chosen.

And Orux - ah, it needs some beta. Then it's wasting of time for me as I only wanted to see this system working to better understand what you and users expect. In the end, I did it by myself.
It's about the same with OruxMaps (and Atlas/Cruiser), they only have an additional button "check/uncheck all overlays" which is handy sometimes.

I just released Elevate 3.0.2 with overlay support in the Locus version, seems like everything works as expected - except that the selected overlays aren't remembered as mentioned above.

Best regards,

Discussion/New features / Re: Mapsforge 0.5
« on: June 03, 2015, 22:19:49 »
Hello Tobias,

hmm priorities ... do not know if they works in Locus, I'm worried that they don't.
Oh, I thought you had them in your extension as priority is mentioned here:
At least it shows no problems if I leave priority values as they are in the mapsforge 0.5 theme.

I've anyway made a first biggest step during last few previous days ...

Follow my steps:
1) add theme for last MapsForge library to Locus/mapsVector/_themes directory
2) select this theme in Locus (keep in mind this: - btw: are you using Locus as a common user or just rarely because of creating themes?
3) is theme working for you? If so, fine
4) tap on selected theme once more ;).
Congratulations, it works :-). At the moment I have very little time at hand but will test it more ASAP.
Two things I noticed: it makes sense to directly open the mapstyle/overlay menu, the same way when an external theme with Locus styles is opened. And if I change overlays for one mapstyle, they are changed for all mapstyles; this shouldn't happen, as my overlays have different id's for every mapstyle.

You're right, I'm not really an active Locus user as I've started with OruxMaps five years ago and am so used to it. But as I design the advanced themes for Openandromaps and we have lots of Locus users I try to fill their needs as well, so I'm here and have been using Locus a lot too :-)

Testing feature, should works fine anyway. I wanted to test this on OruxMaps app, but I wasn't able to find some options to change content of active theme, hmm, quite confusing app for me when I never worked with it :).
Yes, very different UI philosophies. You have to use the beta version as mapsforge 0.5 isn't in the playstore version yet:
Then hit the map button in the top row, "mapsforge theme" chooses the theme, "tweak mapsforge theme" changes mapstyle and overlays.

Are you using an Openandromaps map? In those only significant trees are included, those in your screenshot don't have any of the relevant tags.
Elevate works best with OAM maps.

Discussion/New features / Re: Mapsforge 0.5
« on: May 28, 2015, 22:15:11 »
The new converted version of Elevate 3 for Locus has been released, thanks everyone for the help:

One thing I realized that is fixed in mapsforge 0.5 and not yet in Locus:
dy doesn't work for POIs which are marked on areas/ways. For example if I have an alpine hut like this:
Without dy I can only show a symbol or a caption, not both.

This works fine now with mapsforge 0.5, so I removed all workarounds for showing captions for POIs on ways at very high zoom levels. This was maybe a bit premature, as now some areas are clustered with captions without symbols in Locus. But maybe this is a feature of mapsforge 0.5 which can be easier implemented and benefit the rendering of the maps in general?

Discussion/New features / Re: Mapsforge 0.5
« on: May 26, 2015, 20:36:21 »
I also recreated it, as well as all other weird stuff - thanks for the overview, Menion! And congrats on improving the library.
The sources weren't probably made to be used as is (as there was also lots of unnecessary tags included), so it was a good reason to make all as clean and simple as possible.

@menion: I asked above about the priority tag, does it work as in mapsforge 0.5 (only integers, negative values have the lowest priority, positive values the highest)?

Discussion/New features / Re: Mapsforge 0.5
« on: May 25, 2015, 08:40:13 »
Hmm thanks mainly John for testing.

I have a problems with "s_cable_car.svg" file. Three small windows are drawn as "path" where only defined parameter is opacity. But in that moment, background is already completely black and I do not understand why web browser draw these windows as grey. Any idea?

That's a result of SVG Cleaner which removes not necessary tags etc. It's probably this:
Standard value for fill is fill="#000000", so with the option in SVG Cleaner to remove attributes with standard values, this is removed. The Locus SVG renderer still assumes this value, but doesn't use opacity which is still defined. Other renderers use opacity also on not explicitly defined standard values.

Discussion/New features / Re: Mapsforge 0.5
« on: May 24, 2015, 08:08:01 »
Hmm generally, this is a bad solution. Solving issues in SVG files, that on other places works correctly, isn't useful solution. Soon or later, you or anyone other, will be stuck on same issue. Best and only solution, is to fix this in Locus!

Right, that's why I proposed the different library... haven't thought that it would be so complicated though.
But I also like the idea of having simple and clean SVGs, so maybe that's my personal challenge ;-).

As I got them from various sources, there are various issues. One I introduced myself when I used "convert stroke to path" in Inkscape to make outline contours possible; this sometimes introduces two nodes on the same spot (which can sometimes be solves with simplify), which caused many of the rendering issues. But this seems to be solved.

But many thanks, saves me some trouble and I'm looking forward to the next update!

BTW - I haven't found anything about how "priority" works in Locus themes, so I just kept values from mapsforge 0.5 for now - only integers, negative values have the lowest priority, positive values the highest. At the moment no issues, but does that do the job?

Discussion/New features / Re: Mapsforge 0.5
« on: May 23, 2015, 11:07:48 »
When I open Tobias's s_trainstation_lz.svg (from post above) in Inkscape and click on the object, the status bar says "Path 2 nodes in root", but when I use the node tool, there are four nodes. Is that not odd?
After using Simplify, the object tool reads "Path 4 nodes in root". The saved file renders fine in Locus.
Odd indeed. I made that with Inkscape, so I'm puzzled that it can fix itself by simplify. Seems like simplify also checks for oddities.
I notice though that some of Tobias's files won't load into Inkscape (s_kindergarten.svg for example).
That's because that was work in progress when I uploaded them and not the source files, I was just testing some SVG clean options if that would help with Locus. Haven't found the right ones yet, that's why I posted here.

I never used Inkspace, I use now only offical docs for SVG to understand it's format .

Anyway @Tobias, file rendering (circle) fixed. Who is next ;).
Thanks, but maybe it's better if I check every icon that renders wrong and try to fix it. It's probably faster that way, and I'm already at it.

Discussion/New features / Re: Mapsforge 0.5
« on: May 23, 2015, 09:17:22 »
I'm now testing your icons to check, what is wrong, and seems they are missing width and height parameters.

I found that too, but there are other issues. Not only complexity (which isn't always fixable with simplify, and some even more complex svgs have no issues), sometimes a missing segment between nodes, and sometimes I have no clue - and have to redraw some parts.

Maybe the problem is with Inkscape vs. Illustrator - all Inscape SVGs render fine with mapsforge 0.5, even complex ones and with missing segments. Locus internal theme SVGs are exported with Illustrator as far as I can see.

Even very simple SVGs are not correctly rendered - example attached. Just a filled blue circle with a grey border, but in Locus it's rendered with a horizontal line. My solution here is to make two circles, grey below, blue above. So yes, it can be solved, but the library seems very picky.

Discussion/New features / Re: Mapsforge 0.5
« on: May 22, 2015, 17:20:59 »
So we should test it and fix it during next days, but not a few hours before I wants to publish a new version. Thanks for understanding,

No problem, too bad that there isn't one solution for all ;-)

I have just now edited Tobias's s_supermarket.svg in Inkscape as a test. I split the two grouped layers (Ctrl-Shift-G), then ran simplify (Ctrl-L) on each path once before saving. After running SVGClean on the file, I uploaded it and it worked in Locus.

Thanks John, I tried several things with Inkscape, but not simplify - would have been too easy ;-) That solves some problems. Just have to check now all symbols :-/
Seems like the library gets hickups with too many nodes.

Pages: 1 ... 3 4 [5] 6 7