KML Layer esri javascript FME Cloud

  • 21 April 2018
  • 1 reply

I am trying to load a kml as layer and I am thinking I need to wait for a response before adding the layer, here is the code.

var workspace = ";_OGCKML=C%3A%5CUsers%5CChris%5CDesktop%5CTemp%5Ctest.kml";



// Create the ArcGIS Layer and display on the map //


layer = new KMLLayer( workspace );

map.addLayer( layer, 1000 );

layer.on( "load", function() { hideLoading();


I get the error

"File not found. Wrong url or out of memory." in console.

If I run the url in browser for the streaming service the kml comes back.

1 reply


Hi @garydlester

I assume you got the code from this example:

Did you try to just replace the workspace variable and to change the center of the map to match your content via the MapOptions object in the example code? By clicking on the Refresh Output button the example should pick up your KML layer.


I would also recommend configuring the FME Cloud instance to use a static IP address. I noticed that the google.maps.KmlLayer object can fail if the FME Cloud instance is very new and the DNS entries are not fully propagated yet.

Let us know how this goes!