Skip to main content

MapImageLayer

Introduction

The MapImageLayer is used to display map images from ArcGIS Map Services on a map. MapImageLayer renders map images dynamically from a MapServer and can be declared alone or with child components to customize its behavior:

import React from "react";
import { MapImageLayer, MapView } from "esrieact";

const MAP_IMAGE_URL = "https://sampleserver6.arcgisonline.com/arcgis/rest/services/Census/MapServer";

export const ReactMap: React.FC = () => {
return (
<MapView>
<MapImageLayer url={MAP_IMAGE_URL} />
</MapView>
);
};

Props

Props extends MapImageLayer properties

children

Children components can be any of the following esrieact components:

events

  refresh: __esri.MapImageLayerRefreshEventHandler;
"layerview-create": __esri.MapImageLayerLayerviewCreateEventHandler;
"layerview-create-error": __esri.MapImageLayerLayerviewCreateErrorEventHandler;
"layerview-destroy": __esri.MapImageLayerLayerviewDestroyEventHandler;