UNPKG

@itwin/geo-tools-react

Version:
26 lines 1.37 kB
/*--------------------------------------------------------------------------------------------- * Copyright (c) Bentley Systems, Incorporated. All rights reserved. * See LICENSE.md in the project root for license terms and full copyright notice. *--------------------------------------------------------------------------------------------*/ import React from "react"; import { ToolbarItemUtilities } from "@itwin/appui-react"; import { SvgGeosearch } from "@itwin/itwinui-icons-react"; import { BingAddressProvider } from "./BingAddressProvider"; import { GeoAddressSearch } from "./components/GeoAddressSearch"; import { GeoTools } from "./GeoTools"; /** Utility Class that provides definitions of tools. These definitions can be used to populate the UI. * @public */ // istanbul ignore next export class GeoToolsItemDef { static getItemDef(opts) { var _a; return ToolbarItemUtilities.createCustomItem({ id: "geo-tools:geoAddressSearch", icon: React.createElement(SvgGeosearch, null), label: GeoTools.translate("geoAddressSearch.label"), panelContent: React.createElement(GeoAddressSearch, { provider: (_a = opts === null || opts === void 0 ? void 0 : opts.addressProvider) !== null && _a !== void 0 ? _a : new BingAddressProvider() }), }); } } //# sourceMappingURL=GeoToolsItemDef.js.map