Select to view content in your preferred language

Adding kml layer to map wtih symbology

1819
12
07-21-2011 04:34 AM
AzharIbrahim
Occasional Contributor
I have a kml layer containing polygons that have different symbology based on one attribute (5 different values). when I add the kml to my map using the esri.layers.KMLLayer I am only getting outlines of the features and not the solid filled polygons. Do I need to add more steps in order for it to render properly?
0 Kudos
12 Replies
derekswingley1
Deactivated User
Can you post a link to your KML file? As the KMLLayer was introduced at 2.4, and there numerous possibilities when it comes to KML, it's possible we might not be handling your file correctly.
0 Kudos
AzharIbrahim
Occasional Contributor
Here's the link.

http://dl.dropbox.com/u/34539912/FloodRisk2.kmz

I tried adding it a map on ArcGIS.com just to see what happens and it's coming in as polylines. It opens correctly in Google Earth.
0 Kudos
derekswingley1
Deactivated User
Thanks. This is probably a bug but I'll post back once I'm sure.
0 Kudos
BillAvant
Deactivated User
any update to this?
is there still a kml bug?
0 Kudos
derekswingley1
Deactivated User
Yes, it's a bug. A fix will be rolled out with the next release of ArcGIS Online (probably two weeks).
0 Kudos
derekswingley1
Deactivated User
This should be fixed now.
0 Kudos
AzharIbrahim
Occasional Contributor
This should be fixed now.


My original application is still showing just the outlines. Do I need a version other than 2.4 of the ESRI JavaScript API?
0 Kudos
derekswingley1
Deactivated User
My original application is still showing just the outlines. Do I need a version other than 2.4 of the ESRI JavaScript API?


That's my mistake, I was testing against an internal dev server. The updates will (hopefully) be pushed to ArcGIS Online (where the KML service is hosted) tonight and you should see the fix tomorrow. No need to change your version of the JS API.
0 Kudos
derekswingley1
Deactivated User
This has been fixed in the publicly available service.
0 Kudos