import "@arcgis/embeddable-components/components/arcgis-embedded-map";- Inheritance:
- ArcgisEmbeddedMap→
PublicLitElement
The Embedded Map component allows users to embed a saved web map with default components (i.e. zoom, legend, bookmarks) pre-configured.
Demo
Properties
apiKey
- Type
- string
An authorization string used to access a resource or service. API keys are generated and managed in the portal. An API key is tied explicitly to an ArcGIS account; it is also used to monitor service usage.
- Attribute
- api-key
- Default value
- ""
basemapGalleryEnabled
- Type
- boolean
Indicates whether the basemap gallery panel for the WebMap can be viewed.
- Attribute
- basemap-gallery-enabled
- Default value
- false
bookmarksEnabled
- Type
- boolean
Indicates whether the bookmarks panel for the WebMap can be viewed.
- Attribute
- bookmarks-enabled
- Default value
- false
fullscreenDisabled
- Type
- boolean
Indicates whether the Fullscreen button is enabled.
- Attribute
- fullscreen-disabled
- Default value
- false
headingEnabled
- Type
- boolean
Indicates whether the heading that displays the title of the WebMap is enabled.
- Attribute
- heading-enabled
- Default value
- false
informationEnabled
- Type
- boolean
Indicates whether the information panel for WebMap is enabled.
- Attribute
- information-enabled
- Default value
- false
itemId
- Type
- string
The ID of a WebMap from ArcGIS Online or ArcGIS Enterprise portal.
- Attribute
- item-id
legendEnabled
- Type
- boolean
Indicates whether the legend panel for WebMap is enabled.
- Attribute
- legend-enabled
- Default value
- false
portalUrl
- Type
- string
The Portal for the WebMap from ArcGIS Online or ArcGIS Enterprise portal.
Default value is https://www.arcgis.com.
- Attribute
- portal-url
- Default value
- "https://www.arcgis.com"
scrollEnabled
- Type
- boolean
Indicates whether the mouse wheel scroll zooming is enabled.
- Attribute
- scroll-enabled
- Default value
- false
shareEnabled
- Type
- boolean
Indicates whether the button to open WebMap in Map Viewer is enabled.
- Attribute
- share-enabled
- Default value
- false
theme
- Type
- string
The light or dark theme of the component.
Default value is light.
- Attribute
- theme
- Default value
- "light"
Methods
| Method | Signature |
|---|---|
componentOnReady inherited | componentOnReady(): Promise<this> |
componentOnReady
- Signature
-
componentOnReady (): Promise<this>
Creates a promise that resolves once the component is fully loaded.
- Returns
- Promise<this>
Example
const arcgisEmbeddedMap = document.querySelector("arcgis-embedded-map");document.body.append(arcgisEmbeddedMap);await arcgisEmbeddedMap.componentOnReady();console.log("arcgis-embedded-map is ready to go!");