I create some KML files in my project and I want to present on my map doing something like this
KmlLayer ctaLayer = KmlLayer.create("url to kml");
ctaLayer.setMap(map);
However I have three categories of kmls (regarding what they represent) and I want a different color for each category. How can I do this using GWT?
//I’m using google maps v3 for GWT
You can’t change the style of your KmlLayers once you’ve created them. But since you’re creating the KML files yourself, you should try to use the Style tag. If you want to change the color of markers for example,
and then reference it with
I think you can also set styles for polygons if that’s what’s in your KML files.