2

I have a javascript test page that adds a couple kml layers to a map and I can toggle them off and on. I seem to get info popups for free with KML. When I click on a point feature I get the data associated with it.

I set up an ARCGIS for Server because I want to start doing some geoprocessing. I can add a map service to my javascript as such:

var layer = new esri.layers.ArcGISDynamicMapServiceLayer("http://mywebserver/arcgis/rest/services/Test/PA_Hospitals_2000/MapServer")

However, when I do this I seem to lose the popup ability that happened with KML. So I thought I would create a KML link. For some reason the javascript api will not load the KML link when it is on ARCGIS for Server. If I browse to the URL it downloads the file but it will not display on the map in the javascript api.

This just seems wrong as you should be able to serve KML from ARCGIS for Server. I would rather have all my files on the arcgis server, from a workflow standpoint as opposed to exporting to KML for point features to get popups and other layers as a service.

How do you either serve kml files from ARCGIS for Server or retain popup data on a published service?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.