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 - karlchick

Pages: [1] 2 3
1
Maps / Re: lomaps tags included
« on: June 28, 2020, 13:02:55 »
I believe this is the tag mapping file used for the LoMap v3 maps:

https://github.com/asamm/mapsforge-v3-modded/blob/master/various/tag-mapping-xml/tag-mapping-tourist.xml

I'm not 100% sure if this is the latest, perhaps @voldapet can advise/correct...

2
Thanks for positive feedback everyone.

Just a quick note to that that I am currently working on improving cycle and hike highlighting of routes and am also considering adding in cycle lanes for roads (under non-OS road furniture layer).

Progress has current slowed down because I am very busy at work at the moment... I got the improved cycle route highlights working up to zoom level 7 for v3 maps. will need porting to v4.

I will also use be using two colours to highlight the difference between national/local cycle/hiking routes. I'm not going to split into interational/national/regional/urban/local colours for each as it is hard enough to find 4 highlight colours that work with the OS colour scheme!

Karl.

3
I think the only way is to have a rule that matches all the alternative values of surface.
Karl.

4
Themes - Vector maps / Re: custom map and theme
« on: June 27, 2020, 13:59:27 »
correct, to support both maps you will need two version of the theme file. Note there are some syntax differences for the tags too.

5
Good point about the highlighting of cycle routes (and hiking routes). There is the layer option to highlight (emphasise) the hiking and cycling routes, but I see that it is not as effective as Elevate theme.

I think the existing highlight colours used in OS map theme are a bit difficult to see, see attached for comparison (note this includes a quick hack to make cycle path highlight appear from zoom level 7)

This highlighting is already a non-OS add on, so I see no reason not to change/customise it to be more useful.

I like the way elevate works for highlighting routes, although find the number of colours used a little confusing (needs a PDF legend, hint hint).

I'm thinking of highlighting using just four different colours for both hiking and cycling routes from earliest zoom possible, i.e. the following:
   - national cycle routes (icn|ncn)     --> Red to match OS symbol colour
   - local cycle routes (rcn|lcn|ucn)    --> Blue to match OS symbol colour
   - national hiking routes (iwn|nwn|rwn)   --> Yellow/Orange to match UK route markers...?
   - local hiking routes (lwn|uwn)                --> Green???

These are the groupings already used to match the OS map definitions of national/local routes in the UK.

6
Question for current users of this theme. By default the theme comes with all the optional non OS extras deselected, i.e. :
   - highlight toll roads
   - non OS symbols
   - non OS road furniture

this is so the theme provides a standard OS look and feel by default, however, I always re-select these options, but I have to do it for each style/card in each theme file, this is a total of 3*4 = 12 places it they have to changed, which is 36 check boxes in total. I know it is a set and forget one time operation, unless the theme's xml files gets renamed (which they did in the last few updates...).

Q1: Do you think I should set the non-OS optional layers as selected by default?
i.e. you have to opt out of the extra symbols rather than opt in.

Q2: I am wondering if you would like to have the option of downloading one of two preset theme zips, one set up for LHT (Left handed traffic countries) and the other one for RHT (right handed traffic countries)?
currently affects only the labelling of dual carriage way roads.

7
New release now available v20200607.

i have updated the first post with the latest release notes and links. I'm now using google drive to release the theme in a shared folder that contains all the releases and the PDF legends.

Mainly improvements for the night themes, additional of a night map legend and a major change of splitting the themes into four theme files:
  • OS Map V3 Day
  • OS Map V3 Night
  • OS Map V4 Day
  • OS Map V4 Night
This supports using different PDF legends and different "map-background" tag values for day/night themes.

Attached is the new OS Map Night Legend for  reference, seems the 2MB attachment limit is per post.

i would be interested in feedback on the PDF legends in use out in the field... are they usable/readable..? I find I have to zoom in and scroll about to read them. I thought about creating very long thin legend that fills the screen width with something easier to read (larger graphics/text) and only requires scrolling up/down... but would require a lot of scrolling to get towards the bottom...

8
Wishlist / Re: Map legend shortcut vor vector maps
« on: June 02, 2020, 14:27:21 »
I've worked out that I can use a .lnk file to map multiple theme files to the same pdf legend file:
  • my_theme_v3.xml
  • my_theme_v4.xml
  • my_theme_legend.pdf
  • my_theme_v3.lnk = "mapsVector/_themes/my_theme/my_theme_legend.pdf"
  • my_theme_v4.lnk = "mapsVector/_themes/my_theme/my_theme_legend.pdf"
The above would allow to have a version of the theme for v3 maps and a version for v4 maps. But both use the same pdf legend file. (Which menion originally said was not possible...)

I've tested this and it works with the latest release of LM.

Question: Can I rely on this usage of a .lnk file (is this an intended usage)?

I'd like to know that this will remain in future releases of LM before I start to do anything time consuming with theme/legend files.

9
But when I long tap the OS Map V4 theme icon in the theme list of LM4 beta and press validate, it shows a list of missing files in os_res/SVG and os_res/patterns subfolders.

Missing theme files often lead to a tile drawing failure, if it happens there is a POI or  pattern with such a missing file.
Thanks for heads up, I didn't know you can validate a theme like that.
Note that I have now fixed all the validation errors in release v20200530 onwards.

10
The OS Map theme tries to emulate the Ordnance Survey 1:25k and 1:50k map styles as closely as is possible within the constraints of Locus Map and data provided by the vector maps. It should work with both LoMap and OAM maps (v3 and v4). I must give credit to John Campbell for his Voluntary UK theme that I used as a starting point (v. 190101).

The OS Map theme also provides a darker variation of OS style of map designed for use at night-time to help avoid spoiling night-vision whilst keeping a recognizably Ordnance Survey style of map.

The theme now consists of four main theme files, day/night for v3 maps and day/night for v4 maps. There are two PDF map legends, one for day and one night.

Here is a comparison of the same map rendered with: Internal Theme, Voluntary UK, OS Style and my new 4 OS map styles:


SCROLL TO VIEW THE COMPARISONS >>>>

Here are the list of all the changes made for each release:

v20200427
Initial release for v3 maps only

v20200529
Added v4 map support
Added option to highlight toll roads (default is not highlighted). Highlight means orange outline and orange dots as you zoom in.
Added option to set OS style roads names (pathtext) for countires that are left hand traffic or right hand traffic. This is only applicable to dual carriage ways.
Added drawing of footpaths and bridleways that are on dashed track/service roads.
Added thicker dashed 1:50k style for airport runways (was using thinner 1:25k for 1:50k before)
Added defibrillator symbol (non OS symbols)
Added OS text symbols for: Libraries, Shelters, Cairns, Caves, Adits [Mines, Mines (dis)], Waterfalls (Falls in blue)
Added library buildings to list of important building, i.e bolder outlines.
Added place markers for towns/cities (similar to Elevate theme) at low zoom levels (e.g. 5-7).
Added support for sizing of town/city names based on population density (popcat)
Changed borders (admin_level) to improve support for non-UK counties by grouping togther Parishes=9/10, Districts=7/8, Counties=5/6, National=2/3/4
Changed pharmacy amenity symbol to also include chemist shops (non OS symbols).
Changed order of options, putting least changed options towards bottom of list.
Changed embankments to draw at a higher level priority to avoid them being overdrawn by water ways and residential areas.
Changed footbridges to draw at a higher level priority to avoid them being overdrawn by water ways.
Changed tunnels to use smaller dashes for better match OS map style.
Changed 1:50k trunk_link and motorway_link roads to use correct/matching outline widths on bridges.
Changed highway labels at zoom levels 7-12 to use captions instead of pathtext for OS labels
Changed priorities of several symbols to improve visibility of churches, information and museums at lower zoom levels.
Changed car parks at lower zoom levels (upto zoom 15) to only show ~|destination|customers|public car parks.
Changed hill name sizes slightly larger
Changed (corrected) selection of national hiking routes to only include iwn|nwn, i.e. remove rwn|lwn|uwn.
Changed (corrected) selection of national cycling routes to only include icn|ncn, i.e. remove rcn|lcn|ucn.
Changed (corrected) wells so they now get displayed.
Changed doctors captions from red to black text.
Changed v3 theme place names to match/harmonise to style used on v4 theme.
Removed tourism brown dashed ways accidentally left in from donor theme (UK Voluntary)
Removed access cross hatchings on footpaths accidentally left in from donor theme (UK Voluntary)
Removed surface dashes on 'white' roads accidentally left in from donor theme (UK Voluntary) - If this is going to be in the theme then I need to think about how to do it in an OS style way...

v20200530
Fixed validation errors (one was a real issue in V4 theme for railway stations at zoom 13, rest were technical errors but not impacting display of maps).

v20200607
Split v3 and v4 theme files into separate day and night theme files so they can have different map=background tags, different PDF legends and increase performance.
Added night mode symbols for transmitters, windmills, wind turbines, lighthouses, ruins/archaeological, battlefields, telephones, helipads, bollards.
Added night mode PDF legend.
Added four .lnk files to map the two PDF legends to relevant four theme files.
Changed priority of cemetery symbol lower than church symbol.
Changed night mode track core colour to match service/residential roads.
Changed night mode tunnels to use own night equivalent of day tunnel colours.
Changed night mode steps to look similar to day time steps and less like a ladder.
Changed night mode turning circles and passing places to be more visible.
Changed area ways for residential roads to match residential road outlines for all map themes.
Changed AED, playground and shooting symbols to remove white outline/background to match other symbols.
Changed 50k toilet synbol to fix errors in tiny-svg rendering.

Attached is a copy of the day time legend for the theme, but I can't attached the other legend or the theme ZIP because of the 2MB attachment limit of the forum... so I have placed all the versions of the theme onto google drive:

     OS Map Theme Releases

Link to latest release:

     OS Map v20200607.zip

Links to the OS Map Legends:

     OS Map Day Legend
     OS Map Night Legend

Install in the usual way of unzipping in Locus Map's _theme folder, e.g.:

\<root>\Android\data\menion.android.locus.pro\files\Locus\mapsVector\_themes

If you have already started using the earlier OS Map theme version then you probably should delete it before installing this updated version as it uses the same theme folder called "OS Map" but now uses four different named theme files - to cover day/night themes for v3/v4 maps.

Note that the legends are now included in the theme and can now be viewed directly from the theme menu in LM 3.46+ via a long press of the theme icon.

11
No replies so far.. perhaps I should rephrase the question:

It looks to me that this specific map has no background layer/way for land, i.e. natural=nosea or natural=land.

Perhaps because it is land-locked area with no sea it didn't get generated into the map...?

Can I assume that all maps should have a 'way' that covers every single part of the map area?
If yes, then why:
   - have a map-background tag in the renderTheme rule
   - does it mean this specific map has an error and is missing a "background" land way?
If no:
   - This would mean that I really must split the OS Map theme into two, one a part for day and one for night (I'd prefer not too...)


12
It would be nice to be able set it in the theme, perhaps picking up one of the rendertheme tags, e.g. "map-background" or (v4 only?) "map-background-outside".

But just being able to set (or override) it in the app would be better than nothing.

13
Hello,
there is settings for this in Expert settings > Empty tiles color. It's anyway one setting, no matter which map/theme is selected.

@menion, I'm not finding any setting in expert settings for empty tiles in latest version, latest beta version or in the online documentation, am I missing something?

14
Is it possible to change the colour of the undrawn/Loading tiles?

I have a theme for night usage that uses darker colours but when I scroll the map my night vision is blasted by near white undrawn tiles, see attached example.

I know the LM night mode uses darker undrawn tiles, but it also inverts the colours.

15
Themes - Vector maps / How to check when layer is not selected?
« on: May 22, 2020, 18:19:38 »
Is there a way to use layer options and apply things based on both when the layer is selected and something else when the layer of NOT selected?

In my OS Map theme I have an option to display road labels similar to OS maps as path text along the side of the road. For single carriage roads this works fine for both left and right drive maps/counties.

However, for dual carriage ways I have used a DY setting for the path text that places the road labels to the left of the road for left hand drive maps/countries. In right hand maps/countries the offset is wrong and the road labels appear on the roads instead of to the side:



The left is UK left hand traffic and the right is Germany rigth hand traffic with labels in wrong place...

I thought I would use a layer option to allow you to indicate if you want right hand traffic or not... if not, then I assume left hand traffic. I would then use a positive or negative DY offset based on selected or not:



Anyone know if this is possible?
thanks
Karl.

PS: Yes that is a v4 map and yes the OS Map theme for v4 maps is very close to ready...

Pages: [1] 2 3