UNPKG

@arcgis/map-components

Version:
85 lines (83 loc) 3.86 kB
/// <reference types="@arcgis/core/interfaces.d.ts" /> /// <reference types="../../index.d.ts" /> import { Use } from '@arcgis/components-controllers'; import { Nil } from '@arcgis/components-utils'; import { default as Bookmarks } from '@arcgis/core/widgets/Bookmarks.js'; import { PublicLitElement as LitElement, TargetedEvent } from '@arcgis/lumina'; import { ArcgisReferenceElement } from '../../utils/component-utils'; declare const useBookmarksWidget: (component: import('@arcgis/components-controllers').StencilLifecycles & { manager: import('@arcgis/components-controllers').ControllerManager; el: HTMLElement; autoDestroyDisabled?: boolean; destroy?: () => Promise<void>; } & Pick<Bookmarks, never> & { reactiveUtils?: typeof __esri.reactiveUtils; state?: unknown; viewModel?: __esri.BookmarksViewModel | undefined; icon: Nil | string; label: Nil | string; referenceElement: ArcgisReferenceElement | Nil | string; position: __esri.UIPosition; arcgisReady: import('@arcgis/components-controllers').EventEmitter; arcgisPropertyChange: import('@arcgis/components-controllers').EventEmitter<{ name: string; }> | undefined; el: HTMLElement & { childElem?: HTMLElement & { ownedBy?: HTMLElement; }; view?: __esri.MapView | __esri.SceneView | Nil; }; autoDestroyDisabled: boolean; destroy: () => Promise<void>; }, options?: { editConstructorProperties(props: __esri.BookmarksProperties | undefined): __esri.BookmarksProperties | Promise<__esri.BookmarksProperties | undefined> | undefined; } | undefined) => Bookmarks; /** Bookmarks component allow end users to quickly navigate to a particular area of interest. It displays a list of [bookmarks](https://developers.arcgis.com/javascript/latest/api-reference/esri-webmap-Bookmark.html), which are typically defined inside the [WebMap](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html#bookmarks). */ export declare class ArcgisBookmarks extends LitElement { /** * If true, the component will not be destroyed automatically when it is * disconnected from the document. This is useful when you want to move the * component to a different place on the page, or temporarily hide it. If this * is set, make sure to call the \`destroy\` method when you are done to prevent * memory leaks. */ autoDestroyDisabled: boolean; bookmarks: __esri.Collection<__esri.Bookmark>; defaultCreateOptions: __esri.BookmarkOptions; defaultEditOptions: __esri.BookmarkOptions; disabled: boolean; dragEnabled: boolean; filterPlaceholder: string; filterText: string; hideFlow: boolean; hideThumbnail: boolean; hideTime: boolean; /** * Icon which represents the component. * Typically used when the component is controlled by another component (e.g. by the Expand component). * Search [Calcite Icons](https://developers.arcgis.com/calcite-design-system/icons/) for possible values. */ icon: string; /** The component's default label. */ label: string; position: __esri.UIPosition; referenceElement: ArcgisReferenceElement | Nil | string; showAddBookmarkButton: boolean; showCloseButton: boolean; showCollapseButton: boolean; showEditBookmarkButton: boolean; showFilter: boolean; showHeading: boolean; readonly state: "ready" | "loading"; /** Permanently destroy the component */ destroy(): Promise<void>; readonly arcgisEdit: TargetedEvent<this, __esri.BookmarksBookmarkEditEvent>; readonly arcgisPropertyChange: TargetedEvent<this, { name: "state"; }>; readonly arcgisReady: TargetedEvent<this, undefined>; readonly arcgisSelect: TargetedEvent<this, __esri.BookmarksBookmarkSelectEvent>; } export {};