// Shims import 'reflect-metadata'; import 'zone.js'; import { OSM_TILE_LAYER_URL, YagaModule } from '../../lib/index'; // @yaga/leflet-ng2 import { Component, PlatformRef } from '@angular/core'; import { NgModule } from '@angular/core'; import { FormsModule } from '@angular/forms'; import { BrowserModule } from '@angular/platform-browser'; import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; import { ExampleAppComponentBlueprint, IExampleProperties } from '../app-component-blueprint'; import { ExamplePropertiesModule, PROPERTIES_WRAPPER } from '../property.component'; const platform: PlatformRef = platformBrowserDynamic(); /* tslint:disable:max-line-length */ const template: string = `
${ PROPERTIES_WRAPPER }
`; /* tslint:enable */ @Component({ selector: 'app', template, }) export class AppComponent extends ExampleAppComponentBlueprint { public properties: IExampleProperties = { duplex: [ {name: 'url', value: OSM_TILE_LAYER_URL, type: 'text' }, {name: 'display', value: true, type: 'checkbox' }, {name: 'opacity', value: 7, type: 'relative' }, {name: 'zIndex', value: 5, type: 'number' }, ], input: [ {name: 'attribution', value: 'OpenStreetMap', type: 'text' }, // {name: 'tileSize', value: true, type: 'point' }, {name: 'updateWhenIdle', value: true, type: 'checkbox' }, {name: 'updateWhenZooming', value: true, type: 'checkbox' }, {name: 'updateInterval', value: 200, type: 'number' }, // {name: 'bounds', value: true, type: 'bounds' }, {name: 'noWrap', value: false, type: 'checkbox' }, {name: 'className', value: '', type: 'text' }, {name: 'keepBuffer', value: true, type: 'checkbox' }, {name: 'maxZoom', value: 24, type: 'number' }, {name: 'minZoom', value: 0, type: 'number' }, {name: 'maxNativeZoom', value: 19, type: 'number' }, {name: 'minNativeZoom', value: 3, type: 'number' }, {name: 'subdomains', value: ['a', 'b', 'c'], type: 'text[]' }, {name: 'errorTileUrl', value: '', type: 'url' }, {name: 'zoomOffset', value: 0, type: 'number' }, {name: 'tms', value: false, type: 'checkbox' }, {name: 'zoomReverse', value: false, type: 'checkbox' }, {name: 'detectRetina', value: false, type: 'checkbox' }, {name: 'crossOrigin', value: false, type: 'checkbox' }, ], output: [ {name: 'add', value: '', type: 'event' }, {name: 'remove', value: '', type: 'event' }, {name: 'popupopen', value: '', type: 'event' }, {name: 'popupclose', value: '', type: 'event' }, {name: 'tooltipopen', value: '', type: 'event' }, {name: 'tooltipclose', value: '', type: 'event' }, {name: 'click', value: '', type: 'event' }, {name: 'dblclick', value: '', type: 'event' }, {name: 'mousedown', value: '', type: 'event' }, {name: 'mouseover', value: '', type: 'event' }, {name: 'mouseout', value: '', type: 'event' }, {name: 'contextmenu', value: '', type: 'event' }, {name: 'loading', value: '', type: 'event' }, {name: 'tileunload', value: '', type: 'event' }, {name: 'tileloadstart', value: '', type: 'event' }, {name: 'tileerror', value: '', type: 'event' }, {name: 'tileload', value: '', type: 'event' }, {name: 'load', value: '', type: 'event' }, ], }; } /* tslint:disable:max-classes-per-file */ @NgModule({ bootstrap: [ AppComponent ], declarations: [ AppComponent ], imports: [ BrowserModule, FormsModule, YagaModule, ExamplePropertiesModule ], }) export class AppModule { } document.addEventListener('DOMContentLoaded', () => { platform.bootstrapModule(AppModule); });