UNPKG

@paperbits/core

Version:
20 lines (18 loc) 634 B
import * as ko from "knockout"; import template from "./map.html"; import { Component } from "@paperbits/common/ko/decorators"; import { StyleModel } from "@paperbits/common/styles"; @Component({ selector: "map", template: template }) export class MapViewModel { public readonly runtimeConfig: ko.Observable<string>; public readonly styles: ko.Observable<StyleModel>; public readonly hasApiKey: ko.Observable<boolean>; constructor() { this.runtimeConfig = ko.observable(); this.styles = ko.observable<StyleModel>(); this.hasApiKey = ko.observable(false); } }