Hi all,

ok, now work.
I create a kml file with all the road and i paint only the polygon
that i need over it with totally opaque color.
It work find, but I have another problem:

I try to do the .setMap of kmlLayer before the setMap of polygons
layer because i think that the polygons layer will be painted over the
kmlLayer, but it don't work.
I try a lot of things, finally it work if I add a onceListener of
metadata_chante of kmlLayer, and when it fire i do the setmap of
polygons.
Like this:

isKlmLoading = true;
roads.setMap(map);
g.event.addListenerOnce(roads, 'metadata_changed', function(){
        isKlmLoading = false;
        showPolygons();
});

It work perfect in chrome and in firefox, but in IE (very very very
strange thing :P) it work when IE want.
I need to repaint everything every zoom change.
When the page finish to load, it work, then the first time i change
the zoom to a nearest, the event is not firing. If i change another
time to nearest it don't work but if i go farest it start to fire...

Any idea?

Thank and sorry for bad english


On 24 sep, 01:34, Ben Appleton <[email protected]> wrote:
> KML is rendered as an image tile set; it's not possible to recollection one
> polygon.  However you could make a google.maps.Polygon and overlay that in a
> different color, so long as it is fully opaque.
>
> On 24 Sep 2010 04:13, "Rossko" <[email protected]> wrote:>> Before 
> to try to use KML i need to know if it's possible to change an
> >> options of a single polygon in a kmlLayer (like change color).
>
> >http://code.google.com/apis/kml/documentation/kmlreference.html#polys...
>
> > But if you mean to change the colour after the KML is loaded, I do not
> > know of a way to do that if you use kmlLayer.
>
> >> Every polygon have a unique id.
>
> > No problem
> >http://code.google.com/apis/kml/documentation/kmlreference.html
>
> > --
> > You received this message because you are subscribed to the Google Groups
>
> "Google Maps JavaScript API v3" group.> To post to this group, send email to
>
> [email protected].> To unsubscribe from this group, send 
> email to
>
> [email protected]<google-maps-js-api-v3%2B 
> [email protected]>
> .> For more options, visit this group at
>
> http://groups.google.com/group/google-maps-js-api-v3?hl=en.
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to