On Mon, Oct 5, 2009 at 4:11 PM, Ivan Kostoski
<ivan.kostoski@gmail.com> wrote:
However with bigger maps, lines go out-of-order (i.e. one-way overlay is drawn before the road-line) or are completely missing at various levels (resolution). In extreme case, when I added contour lines as extended types, i started missing residential roads, etc...Also some large polygons seem to disappear below certain resolution ?
Hello Again,
I think I found where my extended-type lines disappear. They are simply not taken into account when estimating subdivision size, i.e:
MapArea.java, lines 389-394
private void addSize(MapElement p, int[] sizes, int kind) {
-> if(p.hasExtendedType()) {
-> // not applicable for elements with extended types
-> return;
-> }
So subdivisions end up too big (and are not drawn correctly) if there are a lot of extended-type elements. I commented out above lines in MapArea.java, rebuilt mkgmap (r1274) and seems to work, i.e. extended lines are no longer dropped in i.e. MapSource.
I am not sure if I am breaking anything else, so please, somebody who understands the code and implications more, please check this.
Thanks.
Ivan.