logo separator

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

From Gerd Petermann GPetermann_muenchen at hotmail.com on Tue Apr 25 14:52:54 BST 2017

Hi Michael,

seems you have created your map with the default value of 25, maybe because you gave the option at the wrong place.
Make sure to use --draw-priority=40 (or whatever you like) before specifying the input files, not after,
like that:
java -jar mkgmap.jar ... --draw-priority=40 mydata.osm

Gerd
________________________________________
Von: mkgmap-dev <mkgmap-dev-bounces at lists.mkgmap.org.uk> im Auftrag von Michael Reichert <michael.reichert at geofabrik.de>
Gesendet: Dienstag, 25. April 2017 15:36:16
An: mkgmap-dev at lists.mkgmap.org.uk
Betreff: Re: [mkgmap-dev] draw-priority – influence rendering order of two maps on a device

Hi,

Am 25.04.2017 um 14:02 schrieb Gerd Petermann:
> Hi Michel,
>
> you can use gmaptool to display this info:
> gmt -i gmapsupp.img

gmaptool says with the -v option (extract of the full output):
>  I1019FB0 GMP  2AC00h   6409070
>       map 1019fb0 (16883632)
>       PID 1, FID 3268, region 0,0
>       date 30.09.2014 15:19:02
>       priority 31, parameters 1 4 23 5, locked, signed
>       N: 45.230927, S: 44.499993, W: 15.723581, E: 16.500006
>       Topo Adria Pro
>       Copyright 1995-2014 by GARMIN Corporation.
>       CP 1252, Western European
>       DEM layers: 4, N: 45.231330, W: 15.723198

All tiles of the large Topo map have a priority of 31and their mapname
is consecutive, starting with 1019f6d (16883565) and ending with 1019fb4
(16883636).

According to that, my map should be rendered on top but my Garmin Dakota
20 (my testing device) doesn't – neither using a priority above 31 (48)
nor below (20).

I tried to use a different mapname for my overlay map using the
--mapname=16883700 option but that seems not to work. If I read my
overlay map using gmaptool, it outputs (full listing):

gmt v0.8.220.853b  CC BY-SA (C) 2011-2015 AP www.gmaptool.eu

Input file: ../output-garmin/overlay.img.


File:           ../output-garmin/overlay.img, length 11776
Header:         25.04.2017 15:14:59, DSKIMG, XOR 00, V 1.00, Ms 0
Mapset:         Jagdgebiet
fat:            400h - 600h - 1000h, block 512
maps:           3, sub-files 5

Sub-file         fat     length
 MAKEGMAP MPS    600h        91
 63240001 RGN    800h      4302
 63240001 TRE    A00h       709
        map 3c4f741 (63240001)
        date 25.04.2017 15:14:59
        priority 25, parameters 1 3 17 0
        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    C00h       313
        CP    0, ASCII 7-bit sort
 00006324 SRT    E00h       879

Map              length s-f  CP    prio  PID   FID  name
 MAKEGMAP MPS        91  1
 63240001 MPC      5324  3        25       1  6324  OSM street map
>Area 63240001  >series name
 00006324 SRT       879  1

Data MPS
 L: PID 1, FID 6324, map 3C4F741, (63240001 0),  OSM street map  >Area
63240001  >series name
 F: PID 1, FID 6324, OSM map
 V: OSM map set (0)

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




More information about the mkgmap-dev mailing list