Select to view content in your preferred language

Which esri-servers load KMLLayer

111
1
3 weeks ago
SokoFromNZ
Frequent Contributor

Hi guys,

I'm successfully loading/showing KML files on the map like this:

export function setPlotKmlLayer(uri) {
    require(["esri/layers/KMLLayer"], (KMLLayer) => {
        const kmlLayer = new KMLLayer({
            url: uri
        });

        view.map.add(kmlLayer, 0);
        plotLayer = kmlLayer;
    });
}

 

The uri points to a public endpoint of our own webservice. For security reasons I want to restrict the access to this endpoint so only the esri-servers can access it.

Is there a fixed domain from esri which always access my endpoint?

I found KMLLayer.kmlServiceUrl which has a default value of https://utility.arcgis.com/sharing/kml. So it should be utility.arcgis.com. But is this guaranteed?

thanks

Soko

0 Kudos
1 Reply
SokoFromNZ
Frequent Contributor

I was able to log the requests on our endpoint.

It seems that IP 34.234.176.30 does the request for the KML file. Which DNS wise resolve to
ec2-34-234-176-30.compute-1.amazonaws.com

😞

0 Kudos