UNPKG

terriajs

Version:

Geospatial data visualization platform.

62 lines 2.68 kB
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; import Rectangle from "terriajs-cesium/Source/Core/Rectangle"; import objectTrait from "../Decorators/objectTrait"; import primitiveTrait from "../Decorators/primitiveTrait"; import ModelTraits from "../ModelTraits"; import { RectangleTraits } from "../TraitsClasses/MappableTraits"; export class SearchBarTraits extends ModelTraits { placeholder = "translate#search.placeholder"; recommendedListLength = 5; flightDurationSeconds = 1.5; minCharacters = 3; showSearchInCatalog = true; boundingBoxLimit = Rectangle.MAX_VALUE; } __decorate([ primitiveTrait({ type: "string", name: "placeholder", description: "Input text field placeholder shown when no input has been given yet. The string is translateable." }) ], SearchBarTraits.prototype, "placeholder", void 0); __decorate([ primitiveTrait({ type: "number", name: "Recommended list length", description: "Maximum amount of entries in the suggestion list." }) ], SearchBarTraits.prototype, "recommendedListLength", void 0); __decorate([ primitiveTrait({ type: "number", name: "Flight duration seconds", description: "The duration of the camera flight to an entered location, in seconds." }) ], SearchBarTraits.prototype, "flightDurationSeconds", void 0); __decorate([ primitiveTrait({ type: "number", name: "Minimum characters", description: "Minimum number of characters required for search to start" }) ], SearchBarTraits.prototype, "minCharacters", void 0); __decorate([ primitiveTrait({ type: "boolean", name: "Show 'Search In Catalog'", description: "Whether to show 'Search In Catalog' in search results" }) ], SearchBarTraits.prototype, "showSearchInCatalog", void 0); __decorate([ objectTrait({ type: RectangleTraits, name: "Bounding box limit", description: "Bounding box limits for the search results {west, south, east, north}" }) ], SearchBarTraits.prototype, "boundingBoxLimit", void 0); //# sourceMappingURL=SearchBarTraits.js.map