EodashMap
The primary map widget. It wraps eox-map and renders the interactive map, a floating button toolbar, and optional cursor coordinates and scale line. It is most often used as the dashboard background, and on mount it provides the map element that the other map-aware widgets read from.
Example
As the dashboard background (its most common use):
{
background: {
id: "background-map",
type: "internal",
widget: {
name: "EodashMap",
properties: {
enableCompare: true,
btns: { enableGlobe: true, enableExportMap: false },
},
},
},
}As a placed grid widget on the left half of the screen:
{
id: "map",
title: "Map",
type: "internal",
layout: { x: 0, y: 0, w: 6, h: 12 },
widget: {
name: "EodashMap",
properties: { center: [0, 20], zoom: 3 },
},
}Properties
btns?
Toolbar feature flags; set any flag to false to hide the corresponding button.
optional btns?: object = { enableExportMap: true, enableChangeProjection: true, enableCompareIndicators: true, enableBackToPOIs: true, enableSearch: true, enableZoom: true, enableGlobe: true, enableFeedback: true, searchParams: {}, };enableBackToPOIs?
optional enableBackToPOIs?: boolean;enableChangeProjection?
optional enableChangeProjection?: boolean;enableCompareIndicators?
optional enableCompareIndicators?:
| boolean
| {
compareTemplate?: string;
fallbackTemplate?: string;
itemFilterConfig?: Partial<{
aggregateResults: string;
cssVars: string | Record<string, any>;
enableCompare: boolean;
enableHighlighting: boolean;
expandMultipleFilters: boolean;
expandMultipleResults: boolean;
filterProperties: object[];
filtersTitle: string;
imageProperty: string;
resultsTitle: string;
resultType: string;
styleOverride: string;
subTitleProperty: string;
titleProperty: string;
}> & Omit<object & VNodeProps & AllowedComponentProps & ComponentCustomProps,
| "enableCompare"
| "filtersTitle"
| "resultsTitle"
| "imageProperty"
| "titleProperty"
| "aggregateResults"
| "subTitleProperty"
| "resultType"
| "cssVars"
| "enableHighlighting"
| "expandMultipleFilters"
| "expandMultipleResults"
| "styleOverride"
| "filterProperties">;
};enableExportMap?
optional enableExportMap?: boolean;enableFeedback?
optional enableFeedback?: boolean;enableGlobe?
optional enableGlobe?: boolean;enableSearch?
optional enableSearch?: boolean;enableZoom?
optional enableZoom?: boolean;searchParams?
optional searchParams?: object;btnsPosition?
Grid position of the floating button toolbar. x accepts responsive "mobile/tablet/desktop" column notation.
optional btnsPosition?: object = { x: "12/9/10", y: 1, gap: 16, };gap
gap: number;x
x: string | number;y
y: number;center?
Initial map center as [lon, lat]; falls back to the last stored map position.
optional center?: [number, number] = [15, 48];enableCompare?
Enables the side-by-side compare map; requires a selected compare STAC.
optional enableCompare?: boolean = false;enableCursorCoordinates?
Show live cursor coordinates as a fixed overlay at the bottom-left of the map.
optional enableCursorCoordinates?: boolean = true;enableScaleLine?
Show an OpenLayers scale-line control at the bottom-left of the map.
optional enableScaleLine?: boolean = true;zoom?
Initial zoom level; falls back to the last stored map position.
optional zoom?: number = 4;zoomToExtent?
Fly to the selected collection's spatial extent on selection.
optional zoomToExtent?: boolean = true;Toolbar buttons (btns)
Every btns flag defaults to true; set one to false to hide that button.
| Flag | Button |
|---|---|
enableZoom | Zoom in and out. |
enableExportMap | Export the current view as an image. |
enableChangeProjection | Switch the map projection. |
enableGlobe | Toggle the 3D globe view. |
enableSearch | Search for a location. |
enableFeedback | Open the feedback form. |
enableBackToPOIs | Return to the points of interest. |
enableCompareIndicators | Pick the dataset shown on the compare map. May also be an object with compareTemplate, fallbackTemplate, and itemFilterConfig. |
See also
- Map Layer Visualization - how STAC items become the layers shown on the map.
- Compare mode - running two maps side by side.