How to add Landsat 8 as a basemap layer?

1564
3
02-26-2017 07:21 PM
PitersonPaulgek
New Contributor III

Hi,

We use ArcGIS Server 10.4, Javascript API 3.17

We need to add Landsat 8 as a basemap layer to the standard basemap Gallery.

app.basemapGallery = new BasemapGallery({
            showArcGISBasemaps: true,
            map: app.map
        }, "basemapGallery");

How to do it?

I know that it is ImageServer service.

Landsat8_PanSharpened (ImageServer) 

Any help please!

0 Kudos
3 Replies
PitersonPaulgek
New Contributor III

I have found how to do it. But how to show the copyright. I included "copyright" (copyright: "Sources: USGS",) as  BasemapLayer attribute - no effect

I found

The attribution information for the layer. NOTE: This property is only applicable to layers of type WebTiledLayer.

var landsatLayer = new BasemapLayer({
            url: "https://landsat2.arcgis.com/arcgis/rest/services/Landsat8_PanSharpened/ImageServer",

            copyright: "Sources: USGS"
        });
        var landsatBaseMap = new Basemap({
            layers: [landsatLayer],
            title: "Landsat 8",
            id: "landsat",

            thumbnailUrl: "/Resources/Image/basemap7.png"
        });

        basemapGallery = new BasemapGallery({
            showArcGISBasemaps: true,
            map: app.map
        }, "basemapGallery");
        basemapGallery.startup();

        basemapGallery.on("load", function () {
            basemapGallery.add(landsatBaseMap);
        });

0 Kudos
PitersonPaulgek
New Contributor III

In addition to the copyright issue, we have an issue with printing.

The layer does not showed on the downloaded image.

Any help would be greatly appreciated!

0 Kudos
SteveCole
Frequent Contributor

One thing I see is that the service isn't cached, so maybe that's a reason you can't use it as a basemap? It's also published as an ImageServer as opposed to a MapServer. For comparison, here's the REST service endpoint for the ESRI Imagery basemap.

0 Kudos