Buggy display of .kmz in KmlLayer

13 views
Skip to first unread message

Patrick Cain

unread,
Jan 31, 2011, 10:49:18 AM1/31/11
to KML Developer Support - Advanced Support for KML
Hello, all -

I have a .kmz file (http://www.patrickcain.ca/maps/
110130_experiment6.kmz) that displays fine in GE and also displayed as
a KmlLayer on zoom levels 8 or higher.

On zoom 7 or lower, six polygons which I had to hand-draw b/c the
originals were too large display missing several points each - they're
pretty obvious here:

http://www.patrickcain.ca/maps/110130_experiment6.html

I can't make out why this is happening - I can't reproduce the problem
in GE. The code doesn't look any different between the two kinds of
polys.

Rossko

unread,
Jan 31, 2011, 2:45:11 PM1/31/11
to KML Developer Support - Advanced Support for KML
> On zoom 7 or lower, six polygons which I had to hand-draw b/c the
> originals were too large display missing several points each - they're
> pretty obvious here:
>
> http://www.patrickcain.ca/maps/110130_experiment6.html

What are we looking at, the triangular artefacts to the west of
Toronto?
KmlLayer for Maps API does point reduction to simplify complex
polygons ; it then renders the imagery as tiles at Google's servers.
I think I would guess this may be buggy behaviour in KmlLayer that is
creating the artefacts ; it might be useful to post in the Maps v3
group
http://groups.google.com/group/Google-Maps-API
On the other hand, it may just be a consequence of point reduction
meaning adjacent "borders" of polygons are no longer identical ;
there'll be gaps and/or overlaps.
Its difficult to see in your example ; it may all be a bit more
obvious if you can produce a simpler example with 2 or 3 polys of
different colours

Patrick Cain

unread,
Jan 31, 2011, 3:10:25 PM1/31/11
to KML Developer Support - Advanced Support for KML
The ones west of Toronto are the problems - sorry, I should have
pointed that out.

The odd thing is that the six problem polys display fine on the map by
themselves: http://www.patrickcain.ca/maps/110131_problemchildren.html

On Jan 31, 2:45 pm, Rossko wrote:
> > On zoom 7 or lower, six polygons which I had to hand-draw b/c the
> > originals were too large display missing several points each - they're
> > pretty obvious here:
>
> >http://www.patrickcain.ca/maps/110130_experiment6.html
>
> What are we looking at, the triangular artefacts to the west of
> Toronto?
> KmlLayer for Maps API does point reduction to simplify complex
> polygons ; it then renders the imagery as tiles at Google's servers.
> I think I would guess this may be buggy behaviour in KmlLayer that is
> creating the artefacts ; it might be useful to post in the Maps v3
> grouphttp://groups.google.com/group/Google-Maps-API
Reply all
Reply to author
Forward
0 new messages