Hi,
I want to change the styleUrl of the Placemark of the KML file dynamically, how can I do that?
<Placemark id="KMLGeom_Building_6327_RoofSurface">
<name>Building_6327_RoofSurface</name>
<styleUrl>#RoofSurfaceNormal</styleUrl><dato>Pruebaaa</dato>
<MultiGeometry>
<Polygon>
<altitudeMode>relativeToGround</altitudeMode>
<outerBoundaryIs>
<LinearRing>
<coordinates>-2.6713528868412886,42.84945799752587,13.225999999999999 -2.6713709123656204,42.84949767265765,13.225999999999999 -2.6715828020335723,42.84944478903282,13.225999999999999 -2.6716329172241813,42.849433766173846,13.225999999999999 -2.671622884135575,42.8494101434693,13.225999999999999 -2.671572656117998,42.849419364936914,13.225999999999999 -2.671567092663764,42.84940683158798,13.225999999999999 -2.671459989891903,42.84943239659686,13.225999999999999 -2.6713528868412886,42.84945799752587,13.225999999999999 -2.6713528868412886,42.84945799752587,13.225999999999999 </coordinates>
</LinearRing>
</outerBoundaryIs>
</Polygon>
</MultiGeometry>
</Placemark>
<Style id="RoofSurfaceNormal">
<LineStyle>
<color>C8000099</color>
</LineStyle>
<PolyStyle>
<color>C83333FF</color>
</PolyStyle>
<BalloonStyle>
<text>$[description]</text>
</BalloonStyle>
</Style>
Thanks in advance
Best regards