Select to view content in your preferred language

Cannot add KMZ to Map Viewer

907
4
08-24-2011 10:14 AM
MikeGregotski
Esri Contributor
Hi,

I have the following KMZ file that I am trying to add to the ArcGIS.com Map Viewer through: Add > Add Layer from Web

http://50.16.208.225/ottawa/Unemployment.kmz 

The problem is that nothing ever gets displayed in the Map Viewer.  The layer is listed in the Legend though. 

The KMZ file has only one layer in it, a polygon layer. The same KMZ file can be added to Google Earth successfully.

This KMZ was actually generated from ArcGIS Server through the KML REST endpoint: http://50.16.208.225/ArcGIS/rest/services/MapServices/Unemployment/MapServer/generatekml

I figured that a KMZ generated from ArcGIS Server should be able to be displayed in the ArcGIS.com  Map Viewer.

I've reviewed the Help docs on using KML in the Map Viewer and polygon features are supported so I am not sure what I am doing wrong.

Thanks for your feedback,
Mike
Tags (2)
0 Kudos
4 Replies
MikeMinami
Esri Notable Contributor
The map viewer in arcgis.com doesn't currently support KML with network links with refresh parameters, which this one has. I edited the KML document (extracted it from the KMZ) and remove the refresh parameters and was able to add it over the map.

One question, why are you using KML when you can just add the layer by connecting to your ArcGIS Server directly?

Thanks,

Mike
0 Kudos
MikeGregotski
Esri Contributor
Hi Mike,

Thanks for your quick response. 

I have a client that needs the data in KML format.  They want to use several viewers that support KML so I can't use ArcGIS Server map services unfortunately.

I have a few questions for you.

1) Would you be able to post back the KML that you edited and were able to the map?

2) Are the parameters that you removed from the KML file these two:

<viewRefreshMode>onStop</viewRefreshMode>
      <viewRefreshTime>2</viewRefreshTime>

3) Do you know how to publish services from ArcGIS Server that do not include the refresh parameters?

I'm going to be creating several other KML services from ArcGIS Server so this would help me produce ones that that the ArcGIS.com Map Viewer can read without having to alter them.

Thanks,
Mike
0 Kudos
MikeMinami
Esri Notable Contributor
I just removed those two parameters you mention. However, I'm no KML expert, so I don't know if that has any other impact.  As far as I know, there is no way to remove these parameters automatically when generating a KML through Generate KML.  One of my coworkers mentioned the Query ability on the REST endpoint being able to generate KML...but I didn't investigate this further. You might look into it.

Hope this helps,

Mike
0 Kudos
MikeGregotski
Esri Contributor
Thanks Mike.

Your replies have allowed me to make progress.

Mike
0 Kudos