문제

I am trying to re-color polygons from a KML. I fetch it from a server, then use:

getFeatures().getChildNodes().items(n).getComputedStyle()

to manipulate the style, which works fine if there is no styleUrl element.

Some of the KMLs I want to load use the same styleUrl for all the polygons in the file, so changing one changes them all.

How can I add a unique styleUrl to each polygon, or better yet, change the style of an individual polygon?

도움이 되었습니까?

해결책

Waht about getFeatures().getChildNodes().items(n).setStyleSelector?

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top