The first bit in poiDisplayFlags have to do something with the basemaps.
In all detailed maps it's set.
The maps i found that it's not set are worldwide base maps - gmapbmap.img(s)

For the route recalculation, it's not clear which of the two bites
changed the recalculation
  - first rule of re ->  always change only one thing .

Can someone write a patch to allow setting the poiDisplayFlag? Cause mkgmap maps are usually no basemaps....

Ok, the following patch intruduces a new option "--detailed-map" which sets this flag. Patch compiles, but is otherwise completely untested. I don't expect it to help much, but feel free to try out.
Index: src/uk/me/parabola/imgfmt/app/trergn/TREHeader.java
===================================================================
--- src/uk/me/parabola/imgfmt/app/trergn/TREHeader.java	(Revision 1648)
+++ src/uk/me/parabola/imgfmt/app/trergn/TREHeader.java	(Arbeitskopie)
@@ -55,6 +55,7 @@
 	static final int SUBDIV_REC_SIZE = 14;
 	static final int SUBDIV_REC_SIZE2 = 16;
 
+	private static final int POI_FLAG_DETAILED = 0x01;
 	private static final int POI_FLAG_TRANSPARENT = 0x2;
 
 	// Bounding box.  All units are in map units.
@@ -233,6 +234,9 @@
 
 		if (props.containsKey("transparent"))
 			poiDisplayFlags |= POI_FLAG_TRANSPARENT;
+
+		if (props.containsKey("detailed-map"))
+			poiDisplayFlags |= POI_FLAG_DETAILED;
 	}
 	
 	/**
_______________________________________________
mkgmap-dev mailing list
[email protected]
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Reply via email to