terriajs
Version:
Geospatial data visualization platform.
59 lines (52 loc) • 1.55 kB
text/typescript
import primitiveArrayTrait from "../Decorators/primitiveArrayTrait";
import primitiveTrait from "../Decorators/primitiveTrait";
import mixTraits from "../mixTraits";
import ModelTraits from "../ModelTraits";
import SearchProviderTraits from "./SearchProviderTraits";
export default class LocationSearchProviderTraits extends mixTraits(
SearchProviderTraits
) {
({
type: "string",
name: "URL",
description: "The URL of search provider."
})
url: string = "";
({
type: "number",
name: "recommendedListLength",
description: "Maximum amount of entries in the suggestion list."
})
recommendedListLength: number = 5;
({
type: "number",
name: "URL",
description: "Time to move to the result location.",
isNullable: true
})
flightDurationSeconds?: number = 1.5;
({
type: "boolean",
name: "Is open",
description:
"True if the search results of this search provider are visible; otherwise, false.",
isNullable: true
})
isOpen: boolean = true;
({
type: "string",
name: "Attribution",
description: "The attribution text for this search provider.",
isNullable: true
})
attributions: string[] = [];
}
export class SearchProviderMapCenterTraits extends ModelTraits {
({
type: "boolean",
name: "Map center",
description:
"Whether the current location of the map center is supplied with search request"
})
mapCenter: boolean = true;
}