Remote data, explicit steps
Discover once. Request only what the application needs.
Service sources keep endpoint metadata, request construction, and decoded results separate. That makes a remote dataset behave like a predictable part of the data path.
01 · discover
ArcGIS REST endpoint
A service directory exposes layers, operations, and formats.
02 · request
Request the useful subset
Choose features, images, tiles, or scene content for this view.
03 · application result
VectorSource · ImageSource · Tileset3DSource
The application receives a source contract rather than a vendor-specific client. ↗
The source owns protocol details; the application owns how returned features, pixels, tiles, or tables are used.
What it provides
Choose rendered pixels or analytical raster values.
ImageServer can serve display-ready images or typed raster data. loaders.gl keeps those paths explicit so an application can choose the right representation for rendering or analysis.
Metadata
Extent, CRS, bands, and service details
Images
Viewport exports and tiled imagery
Raster
LERC values, masks, and NoData metadata
Requests
Rules, bands, formats, and credentials
Detailed guide
ImageServer reference
The sections below cover support, authentication, viewport images, analytical raster output, tiles, and parameters.
ArcGIS ImageServer endpoints expose rendered imagery and analytical raster data. loaders.gl offers
an ImageSource for viewport exports and a TileSource for tiled visualization or analysis.
| Property | Value |
|---|---|
| Data source | ArcGISImageSource, ArcGISImageTileSource |
Feature support
| Capability | Image source | Tile source | API and behavior |
|---|---|---|---|
| Service metadata | ✅ Supported | ✅ Supported | Normalizes title, description, extent, CRS, and attribution |
| Rendered imagery | getImage() / exportImage() | getTile() | Decodes PNG, JPEG, and other browser image formats |
| Analytical LERC | exportRaster() | getTile() with format: 'lerc' | Returns typed bands, mask, dimensions, statistics, and NoData metadata |
| Bounding box and output CRS | ✅ Supported | Web Mercator tiles | Viewport exports accept bboxSR and imageSR |
| Pixel type | ✅ Supported | Forwarded parameter | ArcGIS integer and floating-point pixel types are preserved by LERC |
| Band selection | ✅ Supported | Forwarded parameter | Use bandIds or tile request parameters |
| Rendering and mosaic rules | ✅ Supported | ✅ Supported | Pass ArcGIS JSON objects or serialized rules |
| Runtime parameter updates | Per request | ✅ Supported | Tile source updateParameters() affects subsequent requests |
| URL pools | Not applicable | ✅ Supported | Optional URL pool distributes tile exports deterministically |
| Authentication | ✅ Supported | ✅ Supported | URL tokens and standard fetch options are preserved |
| deck.gl rendering | First class for images | First class for image tiles | Analytical LERC requires an application-selected visualization |
Authentication
createArcGISCredential applies one exact-origin token to metadata, image/tile exports, and
LERC requests. Configure it in core.credentials; explicit URL tokens take precedence. See the
authentication guide.
Viewport images
import {createDataSource} from '@loaders.gl/core';
import {ArcGISImageServerLoader} from '@loaders.gl/arcgis/image-service';
const source = await createDataSource(imageServerUrl, [ArcGISImageServerLoader]);
const metadata = await source.getMetadata();
const image = await source.getImage({
layers: [],
boundingBox: [[-124, 32], [-114, 42]],
crs: 'EPSG:4326',
width: 1024,
height: 768,
format: 'image/png'
});
getImage() uses the generic ImageSource request shape. exportImage() exposes ArcGIS-specific
controls when an application needs exact pixel, band, mosaic, or rendering behavior:
const image = await source.exportImage({
bbox: [-124, 32, -114, 42],
bboxSR: 4326,
imageSR: 3857,
width: 1024,
height: 768,
format: 'png32',
renderingRule: {rasterFunction: 'Hillshade'}
});
Defaults can be supplied under arcgis-image-server.exportImageParameters and overridden by each
request.
Image tiles
ArcGISImageTileLoader requests one /exportImage response per Web Mercator tile:
import {ArcGISImageTileLoader} from '@loaders.gl/arcgis/image-service';
const tileSource = await createDataSource(imageServerUrl, [ArcGISImageTileLoader], {
'arcgis-image-server-tiles': {
tileSize: 512,
format: 'png32',
parameters: {transparent: true}
}
});
tileSource.updateParameters({
renderingRule: JSON.stringify({rasterFunction: 'Hillshade'})
});
The tile source is useful even when the server does not publish a cached tile endpoint. Requests are generated from the visible XYZ tile bounds.
Analytical LERC rasters
Use exportRaster() when pixel values must remain analysis-ready:
const raster = await source.exportRaster({
bbox: [-122.5, 37.7, -122.3, 37.85],
bboxSR: 4326,
imageSR: 4326,
width: 512,
height: 512,
pixelType: 'F32',
bandIds: [0]
});
const firstBand = raster.pixels[0];
const validMask = raster.mask;
For tiled analysis, set format: 'lerc' under arcgis-image-server-tiles. The source decodes each
tile directly with @loaders.gl/raster/lerc; it does not convert values through an 8-bit display image.
LERC data is deliberately not colorized automatically. Applications should choose a band, value domain, color ramp, and NoData policy appropriate to the dataset before uploading values to the GPU.
deck.gl integration
import {SourceLayer} from '@loaders.gl/deck-layers';
import {ARCGIS_LOADERS} from '@loaders.gl/arcgis/discovery';
const layer = new SourceLayer({
id: 'land-cover',
data: imageServerUrl,
loaders: ARCGIS_LOADERS,
opacity: 0.8
});
For the tile viewer, also set extent: [-180, -85.051129, 180, 85.051129] on SourceLayer
when service metadata bounds use projected coordinates.
Use core.type: 'arcgis-image-server-tiles' in sourceOptions when tiled export is preferred over
one viewport-sized image.
References
Explore numerical values
This live example reads LERC bands and applies an illustrative numeric color ramp. It is not the service’s rendered legend. Missing values remain transparent.