Hi
I noticed a while ago that "test-map:all-elements" stopped working
correctly. The map it generated showed a box around the map area, but
within the map area, the device said 'no-map' and didn't show anything,
however POI searches did work.
I tracked it down to a couple of lines added to
mkgmap/build/MapBuilder.java : processInfo()
if (!(src instanceof OverviewMapDataSource))
poiDisplayFlags |= TREHeader.POI_FLAG_DETAIL;
poiDisplayFlags is byte 0x3f in TRE
So:
Old maps and old all-elements, with poiDisplayFlags = 0 worked.
New maps, with poiDisplayFlags = POI_FLAG_DETAIL, work, but all
-elements doesn't.
One of differences between a typical map and all-elements is that all
-elements doesn't output a standard background (polygon 0x4b covering
the complete map area); changing it to do so, then all features get
displayed.
However, transparent maps don't have a standard background and they
work. Trying option --transparent with the original version of all
-elements makes it work.
I don't know if this behaviour was known or expected, but I thought it
worth-while to note it down in this post.
I didn't want all-elements to have a standard background so I've added
--transparent to the comment about how to invoke it, also a few other
option suggestions.
The other change I made was to show elements against a green background
as well as no background, as I was having trouble spotting many line
-types that my new device shows as white.
I've attached a patch for this.
Regards
Ticker
Index: src/uk/me/parabola/mkgmap/reader/test/AllElements.java
===================================================================
--- src/uk/me/parabola/mkgmap/reader/test/AllElements.java (revision 4283)
+++ src/uk/me/parabola/mkgmap/reader/test/AllElements.java (working copy)
@@ -39,9 +39,10 @@
* variables BASE_LAT and BASE_LONG set to something just SW of where you
* are then the map generated will be located near where you are. Otherwise
* the default location is at (51.7, 0.24).
+ * Options --x-base-lat and --x-base-lon have the same effect.
*
* To run, something like:
- * java -jar mkgmap.jar --gmapsupp test-map:all-elements ...
+ * java -jar mkgmap/mkgmap.jar --order-by-decreasing-area --transparent --gmapsupp test-map:all-elements mkgmap/examples/typ-files/sameOrder.txt
*
* You can then use the find facility of your GPS to
* show the near-by points. When viewing a category the menu key will allow
@@ -103,7 +104,7 @@
private void drawBackground(MapCollector mapper, double startLat, double startLong, int nUp, int nAcross) {
MapShape shape = new MapShape();
- int type = 0x51; // Wetlands // 0x4d; // glacier-white
+ int type = 0x1b; // Area - Green // 0x4d; // glacier-white
shape.setMinResolution(10);
shape.setName("background");
_______________________________________________
mkgmap-dev mailing list
[email protected]
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev