logo separator

[mkgmap-dev] draw-priority – influence rendering order of two maps on a device

From Michael Reichert michael.reichert at geofabrik.de on Tue Apr 25 15:52:02 BST 2017

Hi Andrzej,

Am 25.04.2017 um 16:35 schrieb Andrzej Popowski:
> I think that draw priority is limited to 31, I don't know what will
> happen if you set 40. You could try anyway.

It is written to the file and gmaptool can read it correctly.

I build a map with --transparent --draw-priority=34 and the output of
gmaptool is:
> Input file: ../output-garmin/63240001.img.
> 
> 
> File:		../output-garmin/63240001.img, length 9728
> Header:   	25.04.2017 16:47:35, DSKIMG, XOR 00, V 0.00, Ms 0
> Mapset:   	Ihr Gebiet
> fat:		400h - 600h - E00h, block 512
> maps:		1, sub-files 3
> 
> Sub-file         fat     length
>  63240001 RGN    600h      4217
>  63240001 TRE    800h       707
> 	map 3c4f741 (63240001)
> 	date 25.04.2017 16:47:35
> 	priority 34, parameters 1 3 17 2, transparent
> 	levels [17,18,20,22,24], zoom [84,3,2,1,0]
> 	N: 45.544188, S: 45.375381, W: 14.523518, E: 14.703698
> 	Map data (c) OpenStreetMap and its contributors
> 	http://www.openstreetmap.org/copyright
> 	This map data is made available under the Open Database License:
> 	http://opendatacommons.org/licenses/odbl/1.0/
> 	Any rights in individual contents of the database are licensed under the
> 	Database Contents License: http://opendatacommons.org/licenses/dbcl/1.0/
> 	Map created with mkgmap-r3909
> 	Program released under the GPL
>  63240001 LBL    A00h       331
> 	CP 65001, Unicode sort
> 
> Map              length s-f  CP    prio  PID   FID  name
>  63240001 MPC      5255  3 65001  34  T

My Garmin Dakota 20 renders it the same way as it renders a transparent
map with a lower draw priority, i.e. it doesn't matter.

Am 25.04.2017 um 16:35 schrieb Andrzej Popowski:
> Michael, what you need is a transparent map. Instead of changing draw
> order, use --transparent option in mkgmap. This will draw your map over
> any other non-transparent.
> 
> Without transparent option, your map would cover and hide any other map
> with lower draw order, like currently Topo Adria is hiding your map.

Thank you very much. --transparent works without setting any draw priority.

Best regards

Michael

-- 
Michael Reichert      www.geofabrik.de
Geofabrik GmbH        Handelsregister: HRB Mannheim 703657
Amalienstr. 44        Geschaeftsfuehrung: C. Karch, F. Ramm
76133 Karlsruhe       Tel: 0721-1803560-3
reichert at geofabrik.de Fax: 0721-1803560-9

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20170425/69857e27/attachment.sig>


More information about the mkgmap-dev mailing list