diff --git a/.editorconfig b/.editorconfig index f3526162..6e87a003 100644 --- a/.editorconfig +++ b/.editorconfig @@ -5,10 +5,9 @@ root = true charset = utf-8 indent_style = space indent_size = 2 -end_of_line = lf insert_final_newline = true trim_trailing_whitespace = true [*.md] -max_line_length = 0 +max_line_length = off trim_trailing_whitespace = false diff --git a/.gitignore b/.gitignore index cf0ce16e..f5a5e0b5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,27 +1,39 @@ -# Node -node_modules/* -npm-debug.log +# See http://help.github.com/ignore-files/ for more about ignoring files. # compiled output /dist +/tmp +/out-tsc + +# dependencies +node_modules -# JetBrains -.idea +# IDEs and editors +/.idea .project -.settings -.idea/* -*.iml +.classpath +.c9/ +*.launch +.settings/ +*.sublime-workspace -# Visual Studio Code -.vscode/ +# IDE - VSCode +.vscode/* +!.vscode/settings.json +!.vscode/tasks.json +!.vscode/launch.json +!.vscode/extensions.json -# Windows -Thumbs.db -Desktop.ini +# misc +/.sass-cache +/connect.lock +/coverage +/libpeerconnection.log +npm-debug.log +yarn-error.log +testem.log +/typings -# Mac +# System Files .DS_Store -**/.DS_Store - -# Angular -/aot +Thumbs.db diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 00000000..3b57ac29 --- /dev/null +++ b/.prettierrc @@ -0,0 +1,6 @@ +{ + "printWidth": 120, + "singleQuote": true, + "trailingComma": "es5", + "parser": "typescript" +} diff --git a/.travis.yml b/.travis.yml index 14b22ba0..e9ae67c6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,61 +1,72 @@ language: node_js sudo: false node_js: -- '6' - -env: -- NPM_CONFIG_LOGLEVEL='warn' +- 'lts/*' +install: +- yarn +cache: + yarn: true + directories: + - node_modules + - projects/ngx-openlayers/node_modules + - dist jobs: include: - - stage: build library - before_script: - - rm -rf lib + - stage: check + name: next lib linting script: - - npm pack - - mkdir -p lib - - cp *.tgz lib/ - cache: - directories: - - lib - - stage: build demo - before_install: - - cd example - install: - - npm i + - yarn lint + + - stage: build + name: next lib and demo script: - - npm un -S ngx-openlayers - - cp -r ../lib . - - npm i -S lib/*.tgz - - npm run build - cache: - directories: - - lib - - stage: deploy library release - script: ignore + - yarn build --prod --base-href "/ngx-openlayers/" --progress false + + - stage: release + name: next lib version on github releases + if: tag =~ /^\d+.\d+.\d+-next.\d+$/ + script: 'true' # skips tests + before_deploy: + - cd dist/ngx-openlayers + - cp ../../projects/ngx-openlayers/CHANGELOG.md CHANGELOG.md + - npm pack deploy: - - provider: releases - api_key: $GITHUB_OAUTH_TOKEN - file_glob: true - file: lib/* - skip_cleanup: true - on: - tags: true - - stage: deploy demo pages - script: ignore + - provider: releases + prerelease: true + api_key: $GITHUB_OAUTH_TOKEN + file_glob: true + file: '*.tgz' + skip_cleanup: true + on: + tags: true + + - stage: release + name: next demo on github pages + if: tag =~ /^\d+.\d+.\d+-next.\d+$/ + script: 'true' # skips tests + before_deploy: + - cd dist/demo-ngx-openlayers deploy: - - provider: pages - local_dir: dist - skip_cleanup: true - github_token: $GITHUB_OAUTH_TOKEN - on: - tags: true - - stage: publish library release + - provider: pages + local_dir: dist/demo-ngx-openlayers + skip_cleanup: true + github_token: $GITHUB_OAUTH_TOKEN + on: + tags: true + + - stage: deploy + name: next lib version on npm + if: tag =~ /^\d+.\d+.\d+-next.\d+$/ + script: 'true' # skips tests + before_deploy: + - cp projects/ngx-openlayers/CHANGELOG.md dist/ngx-openlayers/CHANGELOG.md + - cd dist/ngx-openlayers deploy: - provider: npm + - provider: npm email: $NPM_EMAIL api_key: $NPM_TOKEN + tag: next + skip_cleanup: true on: tags: true - skip_cleanup: true - diff --git a/README.MD b/README.MD index b0f858bc..3227e4bd 100644 --- a/README.MD +++ b/README.MD @@ -1,5 +1,8 @@ # ngx-openlayers [![Build Status](https://travis-ci.org/quentin-ol/ngx-openlayers.svg?branch=master)](https://travis-ci.org/quentin-ol/ngx-openlayers)[![Join the chat at https://gitter.im/ngx-openlayers](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/ngx-openlayers?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) +## Demo +https://quentin-ol.github.io/ngx-openlayers/ + ## Installation To install this library, run: diff --git a/angular.json b/angular.json new file mode 100644 index 00000000..5e2771cd --- /dev/null +++ b/angular.json @@ -0,0 +1,191 @@ +{ + "$schema": "./node_modules/@angular/cli/lib/config/schema.json", + "version": 1, + "newProjectRoot": "projects", + "projects": { + "demo-ngx-openlayers": { + "root": "", + "sourceRoot": "src", + "projectType": "application", + "prefix": "app", + "schematics": { + "@schematics/angular:component": { + "inlineTemplate": true, + "inlineStyle": true, + "spec": false + }, + "@schematics/angular:class": { + "spec": false + }, + "@schematics/angular:directive": { + "spec": false + }, + "@schematics/angular:guard": { + "spec": false + }, + "@schematics/angular:module": { + "spec": false + }, + "@schematics/angular:pipe": { + "spec": false + }, + "@schematics/angular:service": { + "spec": false + } + }, + "architect": { + "build": { + "builder": "@angular-devkit/build-angular:browser", + "options": { + "outputPath": "dist/demo-ngx-openlayers", + "index": "src/index.html", + "main": "src/main.ts", + "polyfills": "src/polyfills.ts", + "tsConfig": "src/tsconfig.app.json", + "assets": [ + "src/favicon.ico", + "src/assets" + ], + "styles": [ + "src/styles.css", + "projects/ngx-openlayers/node_modules/openlayers/dist/ol.css" + ], + "scripts": [] + }, + "configurations": { + "production": { + "fileReplacements": [ + { + "replace": "src/environments/environment.ts", + "with": "src/environments/environment.prod.ts" + } + ], + "optimization": true, + "outputHashing": "all", + "sourceMap": false, + "extractCss": true, + "namedChunks": false, + "aot": true, + "extractLicenses": true, + "vendorChunk": false, + "buildOptimizer": true + } + } + }, + "serve": { + "builder": "@angular-devkit/build-angular:dev-server", + "options": { + "browserTarget": "demo-ngx-openlayers:build" + }, + "configurations": { + "production": { + "browserTarget": "demo-ngx-openlayers:build:production" + } + } + }, + "extract-i18n": { + "builder": "@angular-devkit/build-angular:extract-i18n", + "options": { + "browserTarget": "demo-ngx-openlayers:build" + } + }, + "test": { + "builder": "@angular-devkit/build-angular:karma", + "options": { + "main": "src/test.ts", + "polyfills": "src/polyfills.ts", + "tsConfig": "src/tsconfig.spec.json", + "karmaConfig": "src/karma.conf.js", + "styles": [ + "src/styles.css" + ], + "scripts": [], + "assets": [ + "src/favicon.ico", + "src/assets" + ] + } + }, + "lint": { + "builder": "@angular-devkit/build-angular:tslint", + "options": { + "tsConfig": [ + "src/tsconfig.app.json", + "src/tsconfig.spec.json" + ], + "exclude": [ + "**/node_modules/**" + ], + "tslintConfig": "tslint-prettier.json", + "typeCheck": true + } + } + } + }, + "demo-ngx-openlayers-e2e": { + "root": "e2e/", + "projectType": "application", + "architect": { + "e2e": { + "builder": "@angular-devkit/build-angular:protractor", + "options": { + "protractorConfig": "e2e/protractor.conf.js", + "devServerTarget": "demo-ngx-openlayers:serve" + } + }, + "lint": { + "builder": "@angular-devkit/build-angular:tslint", + "options": { + "tsConfig": "e2e/tsconfig.e2e.json", + "exclude": [ + "**/node_modules/**" + ] + } + } + } + }, + "ngx-openlayers": { + "root": "projects/ngx-openlayers", + "sourceRoot": "projects/ngx-openlayers/src", + "projectType": "library", + "prefix": "lib", + "architect": { + "build": { + "builder": "@angular-devkit/build-ng-packagr:build", + "options": { + "tsConfig": "projects/ngx-openlayers/tsconfig.lib.json", + "project": "projects/ngx-openlayers/ng-package.json" + }, + "configurations": { + "production": { + "project": "projects/ngx-openlayers/ng-package.prod.json" + } + } + }, + "test": { + "builder": "@angular-devkit/build-angular:karma", + "options": { + "main": "projects/ngx-openlayers/src/test.ts", + "tsConfig": "projects/ngx-openlayers/tsconfig.spec.json", + "karmaConfig": "projects/ngx-openlayers/karma.conf.js" + } + }, + "lint": { + "builder": "@angular-devkit/build-angular:tslint", + "options": { + "tsConfig": [ + "projects/ngx-openlayers/tsconfig.lib.json", + "projects/ngx-openlayers/tsconfig.spec.json" + ], + "exclude": [ + "**/node_modules/**" + ], + "tslintConfig": "tslint-prettier.json", + "typeCheck": true + } + } + } + } + }, + "defaultProject": "demo-ngx-openlayers" +} diff --git a/dist/components/attribution.component.d.ts b/dist/components/attribution.component.d.ts deleted file mode 100644 index 63adde7e..00000000 --- a/dist/components/attribution.component.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -/// -import { ElementRef, OnInit } from '@angular/core'; -import { Attribution } from 'openlayers'; -export declare class AttributionComponent implements OnInit { - private elementRef; - instance: Attribution; - html: string; - constructor(elementRef: ElementRef); - ngOnInit(): void; -} diff --git a/dist/components/attribution.component.js b/dist/components/attribution.component.js deleted file mode 100644 index dc1a6ca8..00000000 --- a/dist/components/attribution.component.js +++ /dev/null @@ -1,26 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -var core_1 = require("@angular/core"); -var openlayers_1 = require("openlayers"); -var AttributionComponent = (function () { - function AttributionComponent(elementRef) { - this.elementRef = elementRef; - } - AttributionComponent.prototype.ngOnInit = function () { - this.html = this.elementRef.nativeElement.innerHTML; - this.instance = new openlayers_1.Attribution(this); - }; - return AttributionComponent; -}()); -AttributionComponent.decorators = [ - { type: core_1.Component, args: [{ - selector: 'aol-attribution', - template: '' - },] }, -]; -/** @nocollapse */ -AttributionComponent.ctorParameters = function () { return [ - { type: core_1.ElementRef, }, -]; }; -exports.AttributionComponent = AttributionComponent; -//# sourceMappingURL=attribution.component.js.map \ No newline at end of file diff --git a/dist/components/attribution.component.js.map b/dist/components/attribution.component.js.map deleted file mode 100644 index ce4937d6..00000000 --- a/dist/components/attribution.component.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../../src/components/attribution.component.ts"],"names":[],"mappings":";;AAAA,sCAA8D;AAC9D,yCAAyC;AAGzC;IAIE,8BACU,UAAsB;QAAtB,eAAU,GAAV,UAAU,CAAY;IAEhC,CAAC;IAED,uCAAQ,GAAR;QACE,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,SAAS,CAAC;QACpD,IAAI,CAAC,QAAQ,GAAG,IAAI,wBAAW,CAAC,IAAI,CAAC,CAAC;IACxC,CAAC;IAWH,2BAAC;AAAD,CAvBA,AAuBC;AAVM,+BAAU,GAA0B;IAC3C,EAAE,IAAI,EAAE,gBAAS,EAAE,IAAI,EAAE,CAAC;gBACxB,QAAQ,EAAE,iBAAiB;gBAC3B,QAAQ,EAAE,2BAA2B;aACtC,EAAG,EAAE;CACL,CAAC;AACF,kBAAkB;AACX,mCAAc,GAAmE,cAAM,OAAA;IAC9F,EAAC,IAAI,EAAE,iBAAU,GAAG;CACnB,EAF6F,CAE7F,CAAC;AAtBW,oDAAoB","file":"attribution.component.js","sourceRoot":""} \ No newline at end of file diff --git a/dist/components/attribution.component.metadata.json b/dist/components/attribution.component.metadata.json deleted file mode 100644 index fd593ca2..00000000 --- a/dist/components/attribution.component.metadata.json +++ /dev/null @@ -1 +0,0 @@ -[{"__symbolic":"module","version":3,"metadata":{"AttributionComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-attribution","template":""}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"}]}],"ngOnInit":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"AttributionComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-attribution","template":""}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"}]}],"ngOnInit":[{"__symbolic":"method"}]}}}}] \ No newline at end of file diff --git a/dist/components/attributions.component.d.ts b/dist/components/attributions.component.d.ts deleted file mode 100644 index 769fe3c1..00000000 --- a/dist/components/attributions.component.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -/// -import { AfterViewInit, QueryList } from '@angular/core'; -import { Attribution } from 'openlayers'; -import { SourceComponent } from './sources/source.component'; -import { AttributionComponent } from './attribution.component'; -export declare class AttributionsComponent implements AfterViewInit { - private source; - instance: Array; - attributions: QueryList; - constructor(source: SourceComponent); - ngAfterViewInit(): void; -} diff --git a/dist/components/attributions.component.js b/dist/components/attributions.component.js deleted file mode 100644 index aee29121..00000000 --- a/dist/components/attributions.component.js +++ /dev/null @@ -1,34 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -var core_1 = require("@angular/core"); -var source_component_1 = require("./sources/source.component"); -var attribution_component_1 = require("./attribution.component"); -var AttributionsComponent = (function () { - function AttributionsComponent(source) { - this.source = source; - } - /* we can do this at the very end */ - AttributionsComponent.prototype.ngAfterViewInit = function () { - if (this.attributions.length) { - this.instance = this.attributions.map(function (cmp) { return cmp.instance; }); - // console.log('setting attributions:', this.instance); - this.source.instance.setAttributions(this.instance); - } - }; - return AttributionsComponent; -}()); -AttributionsComponent.decorators = [ - { type: core_1.Component, args: [{ - selector: 'aol-attributions', - template: '' - },] }, -]; -/** @nocollapse */ -AttributionsComponent.ctorParameters = function () { return [ - { type: source_component_1.SourceComponent, decorators: [{ type: core_1.Host },] }, -]; }; -AttributionsComponent.propDecorators = { - 'attributions': [{ type: core_1.ContentChildren, args: [attribution_component_1.AttributionComponent,] },], -}; -exports.AttributionsComponent = AttributionsComponent; -//# sourceMappingURL=attributions.component.js.map \ No newline at end of file diff --git a/dist/components/attributions.component.js.map b/dist/components/attributions.component.js.map deleted file mode 100644 index 47b10ec0..00000000 --- a/dist/components/attributions.component.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../../src/components/attributions.component.ts"],"names":[],"mappings":";;AAAA,sCAA2F;AAE3F,+DAA6D;AAC7D,iEAA+D;AAG/D;IAKE,+BAAqB,MAAuB;QAAvB,WAAM,GAAN,MAAM,CAAiB;IAC5C,CAAC;IAED,oCAAoC;IACpC,+CAAe,GAAf;QACE,EAAE,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,CAAC;YAC7B,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,UAAA,GAAG,IAAI,OAAA,GAAG,CAAC,QAAQ,EAAZ,CAAY,CAAC,CAAC;YAC3D,uDAAuD;YACvD,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,eAAe,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACtD,CAAC;IACH,CAAC;IAcH,4BAAC;AAAD,CA7BA,AA6BC;AAbM,gCAAU,GAA0B;IAC3C,EAAE,IAAI,EAAE,gBAAS,EAAE,IAAI,EAAE,CAAC;gBACxB,QAAQ,EAAE,kBAAkB;gBAC5B,QAAQ,EAAE,2BAA2B;aACtC,EAAG,EAAE;CACL,CAAC;AACF,kBAAkB;AACX,oCAAc,GAAmE,cAAM,OAAA;IAC9F,EAAC,IAAI,EAAE,kCAAe,EAAE,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,WAAI,EAAE,EAAG,EAAC;CACtD,EAF6F,CAE7F,CAAC;AACK,oCAAc,GAA2C;IAChE,cAAc,EAAE,CAAC,EAAE,IAAI,EAAE,sBAAe,EAAE,IAAI,EAAE,CAAC,4CAAoB,EAAG,EAAE,EAAE;CAC3E,CAAC;AA5BW,sDAAqB","file":"attributions.component.js","sourceRoot":""} \ No newline at end of file diff --git a/dist/components/attributions.component.metadata.json b/dist/components/attributions.component.metadata.json deleted file mode 100644 index 6de1d10f..00000000 --- a/dist/components/attributions.component.metadata.json +++ /dev/null @@ -1 +0,0 @@ -[{"__symbolic":"module","version":3,"metadata":{"AttributionsComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-attributions","template":""}]}],"members":{"attributions":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChildren"},"arguments":[{"__symbolic":"reference","module":"./attribution.component","name":"AttributionComponent"}]}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Host"}}]],"parameters":[{"__symbolic":"reference","module":"./sources/source.component","name":"SourceComponent"}]}],"ngAfterViewInit":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"AttributionsComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-attributions","template":""}]}],"members":{"attributions":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChildren"},"arguments":[{"__symbolic":"reference","module":"./attribution.component","name":"AttributionComponent"}]}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Host"}}]],"parameters":[{"__symbolic":"reference","module":"./sources/source.component","name":"SourceComponent"}]}],"ngAfterViewInit":[{"__symbolic":"method"}]}}}}] \ No newline at end of file diff --git a/dist/components/content.component.d.ts b/dist/components/content.component.d.ts deleted file mode 100644 index 1d70ef8b..00000000 --- a/dist/components/content.component.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { ElementRef } from '@angular/core'; -export declare class ContentComponent { - elementRef: ElementRef; - constructor(elementRef: ElementRef); -} diff --git a/dist/components/content.component.js b/dist/components/content.component.js deleted file mode 100644 index 87ad9452..00000000 --- a/dist/components/content.component.js +++ /dev/null @@ -1,21 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -var core_1 = require("@angular/core"); -var ContentComponent = (function () { - function ContentComponent(elementRef) { - this.elementRef = elementRef; - } - return ContentComponent; -}()); -ContentComponent.decorators = [ - { type: core_1.Component, args: [{ - selector: 'aol-content', - template: '' - },] }, -]; -/** @nocollapse */ -ContentComponent.ctorParameters = function () { return [ - { type: core_1.ElementRef, }, -]; }; -exports.ContentComponent = ContentComponent; -//# sourceMappingURL=content.component.js.map \ No newline at end of file diff --git a/dist/components/content.component.js.map b/dist/components/content.component.js.map deleted file mode 100644 index ee1e376c..00000000 --- a/dist/components/content.component.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../../src/components/content.component.ts"],"names":[],"mappings":";;AAAA,sCAAsD;AAGtD;IAEE,0BACS,UAAsB;QAAtB,eAAU,GAAV,UAAU,CAAY;IAE/B,CAAC;IAWH,uBAAC;AAAD,CAhBA,AAgBC;AAVM,2BAAU,GAA0B;IAC3C,EAAE,IAAI,EAAE,gBAAS,EAAE,IAAI,EAAE,CAAC;gBACxB,QAAQ,EAAE,aAAa;gBACvB,QAAQ,EAAE,2BAA2B;aACtC,EAAG,EAAE;CACL,CAAC;AACF,kBAAkB;AACX,+BAAc,GAAmE,cAAM,OAAA;IAC9F,EAAC,IAAI,EAAE,iBAAU,GAAG;CACnB,EAF6F,CAE7F,CAAC;AAfW,4CAAgB","file":"content.component.js","sourceRoot":""} \ No newline at end of file diff --git a/dist/components/content.component.metadata.json b/dist/components/content.component.metadata.json deleted file mode 100644 index e0eba42e..00000000 --- a/dist/components/content.component.metadata.json +++ /dev/null @@ -1 +0,0 @@ -[{"__symbolic":"module","version":3,"metadata":{"ContentComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-content","template":""}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"}]}]}}}},{"__symbolic":"module","version":1,"metadata":{"ContentComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-content","template":""}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"}]}]}}}}] \ No newline at end of file diff --git a/dist/components/control.components.d.ts b/dist/components/control.components.d.ts deleted file mode 100644 index f8cfd87e..00000000 --- a/dist/components/control.components.d.ts +++ /dev/null @@ -1,68 +0,0 @@ -/// -import { ElementRef, OnDestroy, OnInit } from '@angular/core'; -import { control, CoordinateFormatType, ProjectionLike } from 'openlayers'; -import { MapComponent } from './map.component'; -export declare class ControlAttributionComponent implements OnInit, OnDestroy { - private map; - private element; - componentType: string; - instance: control.Attribution; - target: Element; - collapsible: boolean; - constructor(map: MapComponent, element: ElementRef); - ngOnInit(): void; - ngOnDestroy(): void; -} -export declare class ControlFullScreenComponent extends control.FullScreen implements OnInit, OnDestroy { - private map; - constructor(map: MapComponent); - ngOnInit(): void; - ngOnDestroy(): void; -} -export declare class ControlMousePositionComponent implements OnInit, OnDestroy { - private map; - private element; - instance: control.MousePosition; - coordinateFormat: CoordinateFormatType; - projection: ProjectionLike; - target: Element; - constructor(map: MapComponent, element: ElementRef); - ngOnInit(): void; - ngOnDestroy(): void; -} -export declare class ControlOverviewMapComponent extends control.OverviewMap implements OnInit, OnDestroy { - private map; - constructor(map: MapComponent); - ngOnInit(): void; - ngOnDestroy(): void; -} -export declare class ControlRotateComponent extends control.Rotate implements OnInit, OnDestroy { - private map; - constructor(map: MapComponent); - ngOnInit(): void; - ngOnDestroy(): void; -} -export declare class ControlScaleLineComponent extends control.ScaleLine implements OnInit, OnDestroy { - private map; - constructor(map: MapComponent); - ngOnInit(): void; - ngOnDestroy(): void; -} -export declare class ControlZoomComponent extends control.Zoom implements OnInit, OnDestroy { - private map; - constructor(map: MapComponent); - ngOnInit(): void; - ngOnDestroy(): void; -} -export declare class ControlZoomSliderComponent extends control.ZoomSlider implements OnInit, OnDestroy { - private map; - constructor(map: MapComponent); - ngOnInit(): void; - ngOnDestroy(): void; -} -export declare class ControlZoomToExtentComponent extends control.ZoomToExtent implements OnInit, OnDestroy { - private map; - constructor(map: MapComponent); - ngOnInit(): void; - ngOnDestroy(): void; -} diff --git a/dist/components/control.components.js b/dist/components/control.components.js deleted file mode 100644 index d9245d2e..00000000 --- a/dist/components/control.components.js +++ /dev/null @@ -1,265 +0,0 @@ -"use strict"; -var __extends = (this && this.__extends) || function (d, b) { - for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); -}; -var core_1 = require('@angular/core'); -var openlayers_1 = require('openlayers'); -var map_component_1 = require('./map.component'); -var ControlAttributionComponent = (function () { - function ControlAttributionComponent(map, element) { - this.map = map; - this.element = element; - this.componentType = 'control'; - } - ControlAttributionComponent.prototype.ngOnInit = function () { - this.target = this.element.nativeElement; - // console.log('ol.control.Attribution init: ', this); - this.instance = new openlayers_1.control.Attribution(this); - this.map.instance.addControl(this.instance); - }; - ControlAttributionComponent.prototype.ngOnDestroy = function () { - // console.log('removing aol-control-attribution'); - this.map.instance.removeControl(this.instance); - }; - ControlAttributionComponent.decorators = [ - { type: core_1.Component, args: [{ - selector: 'aol-control-attribution', - template: "" - },] }, - ]; - /** @nocollapse */ - ControlAttributionComponent.ctorParameters = function () { return [ - { type: map_component_1.MapComponent, decorators: [{ type: core_1.Host },] }, - { type: core_1.ElementRef, }, - ]; }; - ControlAttributionComponent.propDecorators = { - 'collapsible': [{ type: core_1.Input },], - }; - return ControlAttributionComponent; -}()); -exports.ControlAttributionComponent = ControlAttributionComponent; -var ControlFullScreenComponent = (function (_super) { - __extends(ControlFullScreenComponent, _super); - function ControlFullScreenComponent(map) { - // console.log('instancing aol-control-fullscreen'); - _super.call(this); - this.map = map; - } - ControlFullScreenComponent.prototype.ngOnInit = function () { - this.map.instance.addControl(this); - }; - ControlFullScreenComponent.prototype.ngOnDestroy = function () { - // console.log('removing aol-control-fullscreen'); - this.map.instance.removeControl(this); - }; - ControlFullScreenComponent.decorators = [ - { type: core_1.Component, args: [{ - selector: 'aol-control-fullscreen', - template: "" - },] }, - ]; - /** @nocollapse */ - ControlFullScreenComponent.ctorParameters = function () { return [ - { type: map_component_1.MapComponent, decorators: [{ type: core_1.Host },] }, - ]; }; - return ControlFullScreenComponent; -}(openlayers_1.control.FullScreen)); -exports.ControlFullScreenComponent = ControlFullScreenComponent; -var ControlMousePositionComponent = (function () { - function ControlMousePositionComponent(map, element) { - this.map = map; - this.element = element; - } - ControlMousePositionComponent.prototype.ngOnInit = function () { - this.target = this.element.nativeElement; - // console.log('ol.control.MousePosition init: ', this); - this.instance = new openlayers_1.control.MousePosition(this); - this.map.instance.addControl(this.instance); - }; - ControlMousePositionComponent.prototype.ngOnDestroy = function () { - // console.log('removing aol-control-mouseposition'); - this.map.instance.removeControl(this.instance); - }; - ControlMousePositionComponent.decorators = [ - { type: core_1.Component, args: [{ - selector: 'aol-control-mouseposition', - template: "" - },] }, - ]; - /** @nocollapse */ - ControlMousePositionComponent.ctorParameters = function () { return [ - { type: map_component_1.MapComponent, decorators: [{ type: core_1.Host },] }, - { type: core_1.ElementRef, }, - ]; }; - ControlMousePositionComponent.propDecorators = { - 'coordinateFormat': [{ type: core_1.Input },], - 'projection': [{ type: core_1.Input },], - }; - return ControlMousePositionComponent; -}()); -exports.ControlMousePositionComponent = ControlMousePositionComponent; -var ControlOverviewMapComponent = (function (_super) { - __extends(ControlOverviewMapComponent, _super); - function ControlOverviewMapComponent(map) { - // console.log('instancing aol-control-overviewmap'); - _super.call(this); - this.map = map; - } - ControlOverviewMapComponent.prototype.ngOnInit = function () { - this.map.instance.addControl(this); - }; - ControlOverviewMapComponent.prototype.ngOnDestroy = function () { - // console.log('removing aol-control-overviewmap'); - this.map.instance.removeControl(this); - }; - ControlOverviewMapComponent.decorators = [ - { type: core_1.Component, args: [{ - selector: 'aol-control-overviewmap', - template: "" - },] }, - ]; - /** @nocollapse */ - ControlOverviewMapComponent.ctorParameters = function () { return [ - { type: map_component_1.MapComponent, decorators: [{ type: core_1.Host },] }, - ]; }; - return ControlOverviewMapComponent; -}(openlayers_1.control.OverviewMap)); -exports.ControlOverviewMapComponent = ControlOverviewMapComponent; -var ControlRotateComponent = (function (_super) { - __extends(ControlRotateComponent, _super); - function ControlRotateComponent(map) { - // console.log('instancing aol-control-rotate'); - _super.call(this); - this.map = map; - } - ControlRotateComponent.prototype.ngOnInit = function () { - this.map.instance.addControl(this); - }; - ControlRotateComponent.prototype.ngOnDestroy = function () { - // console.log('removing aol-control-rotate'); - this.map.instance.removeControl(this); - }; - ControlRotateComponent.decorators = [ - { type: core_1.Component, args: [{ - selector: 'aol-control-rotate', - template: "" - },] }, - ]; - /** @nocollapse */ - ControlRotateComponent.ctorParameters = function () { return [ - { type: map_component_1.MapComponent, decorators: [{ type: core_1.Host },] }, - ]; }; - return ControlRotateComponent; -}(openlayers_1.control.Rotate)); -exports.ControlRotateComponent = ControlRotateComponent; -var ControlScaleLineComponent = (function (_super) { - __extends(ControlScaleLineComponent, _super); - function ControlScaleLineComponent(map) { - // console.log('instancing aol-control-scaleline'); - _super.call(this); - this.map = map; - } - ControlScaleLineComponent.prototype.ngOnInit = function () { - this.map.instance.addControl(this); - }; - ControlScaleLineComponent.prototype.ngOnDestroy = function () { - // console.log('removing aol-control-scaleline'); - this.map.instance.removeControl(this); - }; - ControlScaleLineComponent.decorators = [ - { type: core_1.Component, args: [{ - selector: 'aol-control-scaleline', - template: "" - },] }, - ]; - /** @nocollapse */ - ControlScaleLineComponent.ctorParameters = function () { return [ - { type: map_component_1.MapComponent, decorators: [{ type: core_1.Host },] }, - ]; }; - return ControlScaleLineComponent; -}(openlayers_1.control.ScaleLine)); -exports.ControlScaleLineComponent = ControlScaleLineComponent; -var ControlZoomComponent = (function (_super) { - __extends(ControlZoomComponent, _super); - function ControlZoomComponent(map) { - // console.log('instancing aol-control-zoom'); - _super.call(this); - this.map = map; - } - ControlZoomComponent.prototype.ngOnInit = function () { - this.map.instance.addControl(this); - }; - ControlZoomComponent.prototype.ngOnDestroy = function () { - // console.log('removing aol-control-zoom'); - this.map.instance.removeControl(this); - }; - ControlZoomComponent.decorators = [ - { type: core_1.Component, args: [{ - selector: 'aol-control-zoom', - template: "" - },] }, - ]; - /** @nocollapse */ - ControlZoomComponent.ctorParameters = function () { return [ - { type: map_component_1.MapComponent, decorators: [{ type: core_1.Host },] }, - ]; }; - return ControlZoomComponent; -}(openlayers_1.control.Zoom)); -exports.ControlZoomComponent = ControlZoomComponent; -var ControlZoomSliderComponent = (function (_super) { - __extends(ControlZoomSliderComponent, _super); - function ControlZoomSliderComponent(map) { - // console.log('instancing aol-control-zoomslider'); - _super.call(this); - this.map = map; - } - ControlZoomSliderComponent.prototype.ngOnInit = function () { - this.map.instance.addControl(this); - }; - ControlZoomSliderComponent.prototype.ngOnDestroy = function () { - // console.log('removing aol-control-zoomslider'); - this.map.instance.removeControl(this); - }; - ControlZoomSliderComponent.decorators = [ - { type: core_1.Component, args: [{ - selector: 'aol-control-zoomslider', - template: "" - },] }, - ]; - /** @nocollapse */ - ControlZoomSliderComponent.ctorParameters = function () { return [ - { type: map_component_1.MapComponent, decorators: [{ type: core_1.Host },] }, - ]; }; - return ControlZoomSliderComponent; -}(openlayers_1.control.ZoomSlider)); -exports.ControlZoomSliderComponent = ControlZoomSliderComponent; -var ControlZoomToExtentComponent = (function (_super) { - __extends(ControlZoomToExtentComponent, _super); - function ControlZoomToExtentComponent(map) { - // console.log('instancing aol-control-zoomtoextent'); - _super.call(this); - this.map = map; - } - ControlZoomToExtentComponent.prototype.ngOnInit = function () { - this.map.instance.addControl(this); - }; - ControlZoomToExtentComponent.prototype.ngOnDestroy = function () { - // console.log('removing aol-control-zoomtoextent'); - this.map.instance.removeControl(this); - }; - ControlZoomToExtentComponent.decorators = [ - { type: core_1.Component, args: [{ - selector: 'aol-control-zoomtoextent', - template: "" - },] }, - ]; - /** @nocollapse */ - ControlZoomToExtentComponent.ctorParameters = function () { return [ - { type: map_component_1.MapComponent, decorators: [{ type: core_1.Host },] }, - ]; }; - return ControlZoomToExtentComponent; -}(openlayers_1.control.ZoomToExtent)); -exports.ControlZoomToExtentComponent = ControlZoomToExtentComponent; -//# sourceMappingURL=control.components.js.map \ No newline at end of file diff --git a/dist/components/control.components.js.map b/dist/components/control.components.js.map deleted file mode 100644 index afbfa192..00000000 --- a/dist/components/control.components.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"control.components.js","sourceRoot":"","sources":["../../src/components/control.components.ts"],"names":[],"mappings":";;;;;;AAAA,qBAAsE,eAAe,CAAC,CAAA;AACtF,2BAA8D,YAAY,CAAC,CAAA;AAC3E,8BAA6B,iBAAiB,CAAC,CAAA;AAG/C;IAME,qCACW,GAAiB,EAClB,OAAmB;QADlB,QAAG,GAAH,GAAG,CAAc;QAClB,YAAO,GAAP,OAAO,CAAY;QAPtB,kBAAa,GAAW,SAAS,CAAC;IASzC,CAAC;IAED,8CAAQ,GAAR;QACE,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC;QACzC,sDAAsD;QACtD,IAAI,CAAC,QAAQ,GAAG,IAAI,oBAAO,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;QAC9C,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC9C,CAAC;IAED,iDAAW,GAAX;QACE,mDAAmD;QACnD,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,aAAa,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACjD,CAAC;IACI,sCAAU,GAA0B;QAC3C,EAAE,IAAI,EAAE,gBAAS,EAAE,IAAI,EAAE,CAAC;oBACxB,QAAQ,EAAE,yBAAyB;oBACnC,QAAQ,EAAE,EAAE;iBACb,EAAG,EAAE;KACL,CAAC;IACF,kBAAkB;IACX,0CAAc,GAAmE,cAAM,OAAA;QAC9F,EAAC,IAAI,EAAE,4BAAY,EAAE,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,WAAI,EAAE,EAAG,EAAC;QACpD,EAAC,IAAI,EAAE,iBAAU,GAAG;KACnB,EAH6F,CAG7F,CAAC;IACK,0CAAc,GAA2C;QAChE,aAAa,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE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C;IACxC,CAAC;IACI,uCAAU,GAA0B;QAC3C,EAAE,IAAI,EAAE,gBAAS,EAAE,IAAI,EAAE,CAAC;oBACxB,QAAQ,EAAE,0BAA0B;oBACpC,QAAQ,EAAE,2BAA2B;iBACtC,EAAG,EAAE;KACL,CAAC;IACF,kBAAkB;IACX,2CAAc,GAAmE,cAAM,OAAA;QAC9F,EAAC,IAAI,EAAE,4BAAY,EAAE,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,WAAI,EAAE,EAAG,EAAC;KACnD,EAF6F,CAE7F,CAAC;IACF,mCAAC;AAAD,CAAC,AAzBD,CAAkD,oBAAO,CAAC,YAAY,GAyBrE;AAzBY,oCAA4B,+BAyBxC,CAAA"} \ No newline at end of file diff --git a/dist/components/control.components.metadata.json b/dist/components/control.components.metadata.json deleted file mode 100644 index d79417a9..00000000 --- a/dist/components/control.components.metadata.json +++ /dev/null @@ -1 +0,0 @@ -[{"__symbolic":"module","version":3,"metadata":{"ControlAttributionComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-control-attribution","template":""}]}],"members":{"collapsible":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Host"}}],null],"parameters":[{"__symbolic":"reference","module":"./map.component","name":"MapComponent"},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}},"ControlFullScreenComponent":{"__symbolic":"class","extends":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"openlayers","name":"control"},"member":"FullScreen"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-control-fullscreen","template":""}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Host"}}]],"parameters":[{"__symbolic":"reference","module":"./map.component","name":"MapComponent"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}},"ControlMousePositionComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-control-mouseposition","template":""}]}],"members":{"coordinateFormat":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"projection":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Host"}}],null],"parameters":[{"__symbolic":"reference","module":"./map.component","name":"MapComponent"},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}},"ControlOverviewMapComponent":{"__symbolic":"class","extends":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"openlayers","name":"control"},"member":"OverviewMap"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-control-overviewmap","template":""}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Host"}}]],"parameters":[{"__symbolic":"reference","module":"./map.component","name":"MapComponent"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}},"ControlRotateComponent":{"__symbolic":"class","extends":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"openlayers","name":"control"},"member":"Rotate"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-control-rotate","template":""}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Host"}}]],"parameters":[{"__symbolic":"reference","module":"./map.component","name":"MapComponent"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}},"ControlScaleLineComponent":{"__symbolic":"class","extends":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"openlayers","name":"control"},"member":"ScaleLine"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-control-scaleline","template":""}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Host"}}]],"parameters":[{"__symbolic":"reference","module":"./map.component","name":"MapComponent"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}},"ControlZoomComponent":{"__symbolic":"class","extends":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"openlayers","name":"control"},"member":"Zoom"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-control-zoom","template":""}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Host"}}]],"parameters":[{"__symbolic":"reference","module":"./map.component","name":"MapComponent"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}},"ControlZoomSliderComponent":{"__symbolic":"class","extends":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"openlayers","name":"control"},"member":"ZoomSlider"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-control-zoomslider","template":""}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Host"}}]],"parameters":[{"__symbolic":"reference","module":"./map.component","name":"MapComponent"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}},"ControlZoomToExtentComponent":{"__symbolic":"class","extends":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"openlayers","name":"control"},"member":"ZoomToExtent"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-control-zoomtoextent","template":""}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Host"}}]],"parameters":[{"__symbolic":"reference","module":"./map.component","name":"MapComponent"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"ControlAttributionComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-control-attribution","template":""}]}],"members":{"collapsible":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Host"}}],null],"parameters":[{"__symbolic":"reference","module":"./map.component","name":"MapComponent"},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}},"ControlFullScreenComponent":{"__symbolic":"class","extends":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"openlayers","name":"control"},"member":"FullScreen"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-control-fullscreen","template":""}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Host"}}]],"parameters":[{"__symbolic":"reference","module":"./map.component","name":"MapComponent"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}},"ControlMousePositionComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-control-mouseposition","template":""}]}],"members":{"coordinateFormat":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"projection":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Host"}}],null],"parameters":[{"__symbolic":"reference","module":"./map.component","name":"MapComponent"},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}},"ControlOverviewMapComponent":{"__symbolic":"class","extends":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"openlayers","name":"control"},"member":"OverviewMap"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-control-overviewmap","template":""}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Host"}}]],"parameters":[{"__symbolic":"reference","module":"./map.component","name":"MapComponent"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}},"ControlRotateComponent":{"__symbolic":"class","extends":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"openlayers","name":"control"},"member":"Rotate"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-control-rotate","template":""}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Host"}}]],"parameters":[{"__symbolic":"reference","module":"./map.component","name":"MapComponent"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}},"ControlScaleLineComponent":{"__symbolic":"class","extends":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"openlayers","name":"control"},"member":"ScaleLine"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-control-scaleline","template":""}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Host"}}]],"parameters":[{"__symbolic":"reference","module":"./map.component","name":"MapComponent"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}},"ControlZoomComponent":{"__symbolic":"class","extends":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"openlayers","name":"control"},"member":"Zoom"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-control-zoom","template":""}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Host"}}]],"parameters":[{"__symbolic":"reference","module":"./map.component","name":"MapComponent"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}},"ControlZoomSliderComponent":{"__symbolic":"class","extends":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"openlayers","name":"control"},"member":"ZoomSlider"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-control-zoomslider","template":""}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Host"}}]],"parameters":[{"__symbolic":"reference","module":"./map.component","name":"MapComponent"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}},"ControlZoomToExtentComponent":{"__symbolic":"class","extends":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"openlayers","name":"control"},"member":"ZoomToExtent"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-control-zoomtoextent","template":""}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Host"}}]],"parameters":[{"__symbolic":"reference","module":"./map.component","name":"MapComponent"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}}}}] \ No newline at end of file diff --git a/dist/components/controls/attribution.component.d.ts b/dist/components/controls/attribution.component.d.ts deleted file mode 100644 index ab896444..00000000 --- a/dist/components/controls/attribution.component.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -/// -import { ElementRef, OnDestroy, OnInit } from '@angular/core'; -import { control } from 'openlayers'; -import { MapComponent } from '../map.component'; -export declare class ControlAttributionComponent implements OnInit, OnDestroy { - private map; - private element; - componentType: string; - instance: control.Attribution; - target: Element; - collapsible: boolean; - constructor(map: MapComponent, element: ElementRef); - ngOnInit(): void; - ngOnDestroy(): void; -} diff --git a/dist/components/controls/attribution.component.js b/dist/components/controls/attribution.component.js deleted file mode 100644 index ec2be5c8..00000000 --- a/dist/components/controls/attribution.component.js +++ /dev/null @@ -1,39 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -var core_1 = require("@angular/core"); -var openlayers_1 = require("openlayers"); -var map_component_1 = require("../map.component"); -var ControlAttributionComponent = (function () { - function ControlAttributionComponent(map, element) { - this.map = map; - this.element = element; - this.componentType = 'control'; - } - ControlAttributionComponent.prototype.ngOnInit = function () { - this.target = this.element.nativeElement; - // console.log('ol.control.Attribution init: ', this); - this.instance = new openlayers_1.control.Attribution(this); - this.map.instance.addControl(this.instance); - }; - ControlAttributionComponent.prototype.ngOnDestroy = function () { - // console.log('removing aol-control-attribution'); - this.map.instance.removeControl(this.instance); - }; - return ControlAttributionComponent; -}()); -ControlAttributionComponent.decorators = [ - { type: core_1.Component, args: [{ - selector: 'aol-control-attribution', - template: "" - },] }, -]; -/** @nocollapse */ -ControlAttributionComponent.ctorParameters = function () { return [ - { type: map_component_1.MapComponent, }, - { type: core_1.ElementRef, }, -]; }; -ControlAttributionComponent.propDecorators = { - 'collapsible': [{ type: core_1.Input },], -}; -exports.ControlAttributionComponent = ControlAttributionComponent; -//# sourceMappingURL=attribution.component.js.map \ No newline at end of file diff --git a/dist/components/controls/attribution.component.js.map b/dist/components/controls/attribution.component.js.map deleted file mode 100644 index cd159eac..00000000 --- a/dist/components/controls/attribution.component.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../../../src/components/controls/attribution.component.ts"],"names":[],"mappings":";;AAAA,sCAAgF;AAChF,yCAAqC;AACrC,kDAAgD;AAGhD;IAME,qCACU,GAAiB,EACjB,OAAmB;QADnB,QAAG,GAAH,GAAG,CAAc;QACjB,YAAO,GAAP,OAAO,CAAY;QAPtB,kBAAa,GAAW,SAAS,CAAC;IASzC,CAAC;IAED,8CAAQ,GAAR;QACE,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC;QACzC,sDAAsD;QACtD,IAAI,CAAC,QAAQ,GAAG,IAAI,oBAAO,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;QAC9C,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC9C,CAAC;IAED,iDAAW,GAAX;QACE,mDAAmD;QACnD,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,aAAa,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACjD,CAAC;IAeH,kCAAC;AAAD,CArCA,AAqCC;AAdM,sCAAU,GAA0B;IAC3C,EAAE,IAAI,EAAE,gBAAS,EAAE,IAAI,EAAE,CAAC;gBACxB,QAAQ,EAAE,yBAAyB;gBACnC,QAAQ,EAAE,EAAE;aACb,EAAG,EAAE;CACL,CAAC;AACF,kBAAkB;AACX,0CAAc,GAAmE,cAAM,OAAA;IAC9F,EAAC,IAAI,EAAE,4BAAY,GAAG;IACtB,EAAC,IAAI,EAAE,iBAAU,GAAG;CACnB,EAH6F,CAG7F,CAAC;AACK,0CAAc,GAA2C;IAChE,aAAa,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;CAChC,CAAC;AApCW,kEAA2B","file":"attribution.component.js","sourceRoot":""} \ No newline at end of file diff --git a/dist/components/controls/attribution.component.metadata.json b/dist/components/controls/attribution.component.metadata.json deleted file mode 100644 index f56f7ad9..00000000 --- a/dist/components/controls/attribution.component.metadata.json +++ /dev/null @@ -1 +0,0 @@ -[{"__symbolic":"module","version":3,"metadata":{"ControlAttributionComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-control-attribution","template":""}]}],"members":{"collapsible":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"../map.component","name":"MapComponent"},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"ControlAttributionComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-control-attribution","template":""}]}],"members":{"collapsible":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"../map.component","name":"MapComponent"},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}}}}] \ No newline at end of file diff --git a/dist/components/controls/control.component.d.ts b/dist/components/controls/control.component.d.ts deleted file mode 100644 index b7ea2354..00000000 --- a/dist/components/controls/control.component.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -/// -import { OnDestroy, OnInit } from '@angular/core'; -import { control } from 'openlayers'; -import { MapComponent } from '../map.component'; -import { ContentComponent } from '../content.component'; -export declare class ControlComponent implements OnInit, OnDestroy { - private map; - componentType: string; - instance: control.Control; - element: Element; - content: ContentComponent; - constructor(map: MapComponent); - ngOnInit(): void; - ngOnDestroy(): void; -} diff --git a/dist/components/controls/control.component.js b/dist/components/controls/control.component.js deleted file mode 100644 index 6c58b93c..00000000 --- a/dist/components/controls/control.component.js +++ /dev/null @@ -1,40 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -var core_1 = require("@angular/core"); -var openlayers_1 = require("openlayers"); -var map_component_1 = require("../map.component"); -var content_component_1 = require("../content.component"); -var ControlComponent = (function () { - function ControlComponent(map) { - this.map = map; - this.componentType = 'control'; - } - ControlComponent.prototype.ngOnInit = function () { - if (this.content) { - this.element = this.content.elementRef.nativeElement; - this.instance = new openlayers_1.control.Control(this); - this.map.instance.addControl(this.instance); - } - }; - ControlComponent.prototype.ngOnDestroy = function () { - if (this.instance) { - this.map.instance.removeControl(this.instance); - } - }; - return ControlComponent; -}()); -ControlComponent.decorators = [ - { type: core_1.Component, args: [{ - selector: 'aol-control', - template: "" - },] }, -]; -/** @nocollapse */ -ControlComponent.ctorParameters = function () { return [ - { type: map_component_1.MapComponent, }, -]; }; -ControlComponent.propDecorators = { - 'content': [{ type: core_1.ContentChild, args: [content_component_1.ContentComponent,] },], -}; -exports.ControlComponent = ControlComponent; -//# sourceMappingURL=control.component.js.map \ No newline at end of file diff --git a/dist/components/controls/control.component.js.map b/dist/components/controls/control.component.js.map deleted file mode 100644 index 964faefc..00000000 --- a/dist/components/controls/control.component.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../../../src/components/controls/control.component.ts"],"names":[],"mappings":";;AAAA,sCAA2E;AAC3E,yCAAqC;AACrC,kDAAgD;AAChD,0DAAwD;AAGxD;IAME,0BACU,GAAiB;QAAjB,QAAG,GAAH,GAAG,CAAc;QANpB,kBAAa,GAAW,SAAS,CAAC;IAQzC,CAAC;IAED,mCAAQ,GAAR;QACE,EAAE,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC;YACjB,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,aAAa,CAAC;YACrD,IAAI,CAAC,QAAQ,GAAG,IAAI,oBAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;YAC1C,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAC9C,CAAC;IACH,CAAC;IAED,sCAAW,GAAX;QACE,EAAE,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;YAClB,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,aAAa,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACjD,CAAC;IACH,CAAC;IAcH,uBAAC;AAAD,CArCA,AAqCC;AAbM,2BAAU,GAA0B;IAC3C,EAAE,IAAI,EAAE,gBAAS,EAAE,IAAI,EAAE,CAAC;gBACxB,QAAQ,EAAE,aAAa;gBACvB,QAAQ,EAAE,2BAA2B;aACtC,EAAG,EAAE;CACL,CAAC;AACF,kBAAkB;AACX,+BAAc,GAAmE,cAAM,OAAA;IAC9F,EAAC,IAAI,EAAE,4BAAY,GAAG;CACrB,EAF6F,CAE7F,CAAC;AACK,+BAAc,GAA2C;IAChE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,mBAAY,EAAE,IAAI,EAAE,CAAC,oCAAgB,EAAG,EAAE,EAAE;CAC/D,CAAC;AApCW,4CAAgB","file":"control.component.js","sourceRoot":""} \ No newline at end of file diff --git a/dist/components/controls/control.component.metadata.json b/dist/components/controls/control.component.metadata.json deleted file mode 100644 index 6dd6d402..00000000 --- a/dist/components/controls/control.component.metadata.json +++ /dev/null @@ -1 +0,0 @@ -[{"__symbolic":"module","version":3,"metadata":{"ControlComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-control","template":""}]}],"members":{"content":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild"},"arguments":[{"__symbolic":"reference","module":"../content.component","name":"ContentComponent"}]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"../map.component","name":"MapComponent"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"ControlComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-control","template":""}]}],"members":{"content":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild"},"arguments":[{"__symbolic":"reference","module":"../content.component","name":"ContentComponent"}]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"../map.component","name":"MapComponent"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}}}}] \ No newline at end of file diff --git a/dist/components/controls/default.component.d.ts b/dist/components/controls/default.component.d.ts deleted file mode 100644 index 4735b1b9..00000000 --- a/dist/components/controls/default.component.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -/// -import { OnDestroy, OnInit } from '@angular/core'; -import { control, Collection } from 'openlayers'; -import { MapComponent } from '../map.component'; -export declare class DefaultControlComponent implements OnInit, OnDestroy { - private map; - instance: Collection; - attribution: boolean; - attributionOptions: olx.control.AttributionOptions; - rotate: boolean; - rotateOptions: olx.control.RotateOptions; - zoom: boolean; - zoomOptions: olx.control.ZoomOptions; - constructor(map: MapComponent); - ngOnInit(): void; - ngOnDestroy(): void; -} diff --git a/dist/components/controls/default.component.js b/dist/components/controls/default.component.js deleted file mode 100644 index 2a971549..00000000 --- a/dist/components/controls/default.component.js +++ /dev/null @@ -1,42 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -var core_1 = require("@angular/core"); -var openlayers_1 = require("openlayers"); -var map_component_1 = require("../map.component"); -var DefaultControlComponent = (function () { - function DefaultControlComponent(map) { - this.map = map; - } - DefaultControlComponent.prototype.ngOnInit = function () { - var _this = this; - // console.log('ol.control.defaults init: ', this); - this.instance = openlayers_1.control.defaults(this); - this.instance.forEach(function (control) { return _this.map.instance.addControl(control); }); - }; - DefaultControlComponent.prototype.ngOnDestroy = function () { - var _this = this; - // console.log('removing aol-control-defaults'); - this.instance.forEach(function (control) { return _this.map.instance.removeControl(control); }); - }; - return DefaultControlComponent; -}()); -DefaultControlComponent.decorators = [ - { type: core_1.Component, args: [{ - selector: 'aol-control-defaults', - template: '' - },] }, -]; -/** @nocollapse */ -DefaultControlComponent.ctorParameters = function () { return [ - { type: map_component_1.MapComponent, }, -]; }; -DefaultControlComponent.propDecorators = { - 'attribution': [{ type: core_1.Input },], - 'attributionOptions': [{ type: core_1.Input },], - 'rotate': [{ type: core_1.Input },], - 'rotateOptions': [{ type: core_1.Input },], - 'zoom': [{ type: core_1.Input },], - 'zoomOptions': [{ type: core_1.Input },], -}; -exports.DefaultControlComponent = DefaultControlComponent; -//# sourceMappingURL=default.component.js.map \ No newline at end of file diff --git a/dist/components/controls/default.component.js.map b/dist/components/controls/default.component.js.map deleted file mode 100644 index d7e07ba7..00000000 --- a/dist/components/controls/default.component.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../../../src/components/controls/default.component.ts"],"names":[],"mappings":";;AAAA,sCAAoE;AACpE,yCAAiD;AACjD,kDAAgD;AAGhD;IASE,iCAAoB,GAAiB;QAAjB,QAAG,GAAH,GAAG,CAAc;IACrC,CAAC;IAED,0CAAQ,GAAR;QAAA,iBAIC;QAHC,mDAAmD;QACnD,IAAI,CAAC,QAAQ,GAAG,oBAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QACvC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,UAAC,OAAO,IAAK,OAAA,KAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,UAAU,CAAC,OAAO,CAAC,EAArC,CAAqC,CAAC,CAAC;IAC5E,CAAC;IAED,6CAAW,GAAX;QAAA,iBAGC;QAFC,gDAAgD;QAChD,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,UAAC,OAAO,IAAK,OAAA,KAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC,EAAxC,CAAwC,CAAC,CAAC;IAC/E,CAAC;IAmBH,8BAAC;AAAD,CAxCA,AAwCC;AAlBM,kCAAU,GAA0B;IAC3C,EAAE,IAAI,EAAE,gBAAS,EAAE,IAAI,EAAE,CAAC;gBACxB,QAAQ,EAAE,sBAAsB;gBAChC,QAAQ,EAAE,EAAE;aACb,EAAG,EAAE;CACL,CAAC;AACF,kBAAkB;AACX,sCAAc,GAAmE,cAAM,OAAA;IAC9F,EAAC,IAAI,EAAE,4BAAY,GAAG;CACrB,EAF6F,CAE7F,CAAC;AACK,sCAAc,GAA2C;IAChE,aAAa,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IACjC,oBAAoB,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IACxC,QAAQ,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IAC5B,eAAe,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IACnC,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IAC1B,aAAa,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;CAChC,CAAC;AAvCW,0DAAuB","file":"default.component.js","sourceRoot":""} \ No newline at end of file diff --git a/dist/components/controls/default.component.metadata.json b/dist/components/controls/default.component.metadata.json deleted file mode 100644 index a3e24be8..00000000 --- a/dist/components/controls/default.component.metadata.json +++ /dev/null @@ -1 +0,0 @@ -[{"__symbolic":"module","version":3,"metadata":{"DefaultControlComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-control-defaults","template":""}]}],"members":{"attribution":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"attributionOptions":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"rotate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"rotateOptions":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"zoom":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"zoomOptions":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"../map.component","name":"MapComponent"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"DefaultControlComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-control-defaults","template":""}]}],"members":{"attribution":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"attributionOptions":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"rotate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"rotateOptions":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"zoom":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"zoomOptions":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"../map.component","name":"MapComponent"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}}}}] \ No newline at end of file diff --git a/dist/components/controls/fullscreen.component.d.ts b/dist/components/controls/fullscreen.component.d.ts deleted file mode 100644 index f4edc808..00000000 --- a/dist/components/controls/fullscreen.component.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -/// -import { OnDestroy, OnInit } from '@angular/core'; -import { control } from 'openlayers'; -import { MapComponent } from '../map.component'; -export declare class ControlFullScreenComponent implements OnInit, OnDestroy { - private map; - instance: control.FullScreen; - constructor(map: MapComponent); - ngOnInit(): void; - ngOnDestroy(): void; -} diff --git a/dist/components/controls/fullscreen.component.js b/dist/components/controls/fullscreen.component.js deleted file mode 100644 index 989c25bb..00000000 --- a/dist/components/controls/fullscreen.component.js +++ /dev/null @@ -1,32 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -var core_1 = require("@angular/core"); -var openlayers_1 = require("openlayers"); -var map_component_1 = require("../map.component"); -var ControlFullScreenComponent = (function () { - function ControlFullScreenComponent(map) { - this.map = map; - // console.log('instancing aol-control-fullscreen'); - } - ControlFullScreenComponent.prototype.ngOnInit = function () { - this.instance = new openlayers_1.control.FullScreen(this); - this.map.instance.addControl(this.instance); - }; - ControlFullScreenComponent.prototype.ngOnDestroy = function () { - // console.log('removing aol-control-fullscreen'); - this.map.instance.removeControl(this.instance); - }; - return ControlFullScreenComponent; -}()); -ControlFullScreenComponent.decorators = [ - { type: core_1.Component, args: [{ - selector: 'aol-control-fullscreen', - template: "" - },] }, -]; -/** @nocollapse */ -ControlFullScreenComponent.ctorParameters = function () { return [ - { type: map_component_1.MapComponent, }, -]; }; -exports.ControlFullScreenComponent = ControlFullScreenComponent; -//# sourceMappingURL=fullscreen.component.js.map \ No newline at end of file diff --git a/dist/components/controls/fullscreen.component.js.map b/dist/components/controls/fullscreen.component.js.map deleted file mode 100644 index cfa677c3..00000000 --- a/dist/components/controls/fullscreen.component.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../../../src/components/controls/fullscreen.component.ts"],"names":[],"mappings":";;AAAA,sCAA6D;AAC7D,yCAAqC;AACrC,kDAAgD;AAGhD;IAGE,oCAAoB,GAAiB;QAAjB,QAAG,GAAH,GAAG,CAAc;QACnC,oDAAoD;IACtD,CAAC;IAED,6CAAQ,GAAR;QACE,IAAI,CAAC,QAAQ,GAAG,IAAI,oBAAO,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;QAC7C,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC9C,CAAC;IAED,gDAAW,GAAX;QACE,kDAAkD;QAClD,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,aAAa,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACjD,CAAC;IAWH,iCAAC;AAAD,CA1BA,AA0BC;AAVM,qCAAU,GAA0B;IAC3C,EAAE,IAAI,EAAE,gBAAS,EAAE,IAAI,EAAE,CAAC;gBACxB,QAAQ,EAAE,wBAAwB;gBAClC,QAAQ,EAAE,2BAA2B;aACtC,EAAG,EAAE;CACL,CAAC;AACF,kBAAkB;AACX,yCAAc,GAAmE,cAAM,OAAA;IAC9F,EAAC,IAAI,EAAE,4BAAY,GAAG;CACrB,EAF6F,CAE7F,CAAC;AAzBW,gEAA0B","file":"fullscreen.component.js","sourceRoot":""} \ No newline at end of file diff --git a/dist/components/controls/fullscreen.component.metadata.json b/dist/components/controls/fullscreen.component.metadata.json deleted file mode 100644 index 16e74b75..00000000 --- a/dist/components/controls/fullscreen.component.metadata.json +++ /dev/null @@ -1 +0,0 @@ -[{"__symbolic":"module","version":3,"metadata":{"ControlFullScreenComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-control-fullscreen","template":""}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"../map.component","name":"MapComponent"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"ControlFullScreenComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-control-fullscreen","template":""}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"../map.component","name":"MapComponent"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}}}}] \ No newline at end of file diff --git a/dist/components/controls/index.d.ts b/dist/components/controls/index.d.ts deleted file mode 100644 index d35c0a85..00000000 --- a/dist/components/controls/index.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -export * from './attribution.component'; -export * from './control.component'; -export * from './default.component'; -export * from './fullscreen.component'; -export * from './mouseposition.component'; -export * from './overviewmap.component'; -export * from './rotate.component'; -export * from './scaleline.component'; -export * from './zoom.component'; -export * from './zoomslider.component'; -export * from './zoomtoextent.component'; diff --git a/dist/components/controls/index.js b/dist/components/controls/index.js deleted file mode 100644 index b47cfb1e..00000000 --- a/dist/components/controls/index.js +++ /dev/null @@ -1,17 +0,0 @@ -"use strict"; -function __export(m) { - for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; -} -Object.defineProperty(exports, "__esModule", { value: true }); -__export(require("./attribution.component")); -__export(require("./control.component")); -__export(require("./default.component")); -__export(require("./fullscreen.component")); -__export(require("./mouseposition.component")); -__export(require("./overviewmap.component")); -__export(require("./rotate.component")); -__export(require("./scaleline.component")); -__export(require("./zoom.component")); -__export(require("./zoomslider.component")); -__export(require("./zoomtoextent.component")); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/components/controls/index.js.map b/dist/components/controls/index.js.map deleted file mode 100644 index 844de258..00000000 --- a/dist/components/controls/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../../../src/components/controls/index.ts"],"names":[],"mappings":";;;;;AAAA,6CAAwC;AACxC,yCAAoC;AACpC,yCAAoC;AACpC,4CAAuC;AACvC,+CAA0C;AAC1C,6CAAwC;AACxC,wCAAmC;AACnC,2CAAsC;AACtC,sCAAiC;AACjC,4CAAuC;AACvC,8CAAyC","file":"index.js","sourceRoot":""} \ No newline at end of file diff --git a/dist/components/controls/index.metadata.json b/dist/components/controls/index.metadata.json deleted file mode 100644 index 387d1a5a..00000000 --- a/dist/components/controls/index.metadata.json +++ /dev/null @@ -1 +0,0 @@ -[{"__symbolic":"module","version":3,"metadata":{},"exports":[{"from":"./attribution.component"},{"from":"./control.component"},{"from":"./default.component"},{"from":"./fullscreen.component"},{"from":"./mouseposition.component"},{"from":"./overviewmap.component"},{"from":"./rotate.component"},{"from":"./scaleline.component"},{"from":"./zoom.component"},{"from":"./zoomslider.component"},{"from":"./zoomtoextent.component"}]},{"__symbolic":"module","version":1,"metadata":{},"exports":[{"from":"./attribution.component"},{"from":"./control.component"},{"from":"./default.component"},{"from":"./fullscreen.component"},{"from":"./mouseposition.component"},{"from":"./overviewmap.component"},{"from":"./rotate.component"},{"from":"./scaleline.component"},{"from":"./zoom.component"},{"from":"./zoomslider.component"},{"from":"./zoomtoextent.component"}]}] \ No newline at end of file diff --git a/dist/components/controls/mouseposition.component.d.ts b/dist/components/controls/mouseposition.component.d.ts deleted file mode 100644 index 1d4e7b56..00000000 --- a/dist/components/controls/mouseposition.component.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -/// -import { ElementRef, OnDestroy, OnInit } from '@angular/core'; -import { control, CoordinateFormatType, ProjectionLike } from 'openlayers'; -import { MapComponent } from '../map.component'; -export declare class ControlMousePositionComponent implements OnInit, OnDestroy { - private map; - private element; - instance: control.MousePosition; - coordinateFormat: CoordinateFormatType; - projection: ProjectionLike; - target: Element; - constructor(map: MapComponent, element: ElementRef); - ngOnInit(): void; - ngOnDestroy(): void; -} diff --git a/dist/components/controls/mouseposition.component.js b/dist/components/controls/mouseposition.component.js deleted file mode 100644 index 5857fe2b..00000000 --- a/dist/components/controls/mouseposition.component.js +++ /dev/null @@ -1,39 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -var core_1 = require("@angular/core"); -var openlayers_1 = require("openlayers"); -var map_component_1 = require("../map.component"); -var ControlMousePositionComponent = (function () { - function ControlMousePositionComponent(map, element) { - this.map = map; - this.element = element; - } - ControlMousePositionComponent.prototype.ngOnInit = function () { - this.target = this.element.nativeElement; - // console.log('ol.control.MousePosition init: ', this); - this.instance = new openlayers_1.control.MousePosition(this); - this.map.instance.addControl(this.instance); - }; - ControlMousePositionComponent.prototype.ngOnDestroy = function () { - // console.log('removing aol-control-mouseposition'); - this.map.instance.removeControl(this.instance); - }; - return ControlMousePositionComponent; -}()); -ControlMousePositionComponent.decorators = [ - { type: core_1.Component, args: [{ - selector: 'aol-control-mouseposition', - template: "" - },] }, -]; -/** @nocollapse */ -ControlMousePositionComponent.ctorParameters = function () { return [ - { type: map_component_1.MapComponent, }, - { type: core_1.ElementRef, }, -]; }; -ControlMousePositionComponent.propDecorators = { - 'coordinateFormat': [{ type: core_1.Input },], - 'projection': [{ type: core_1.Input },], -}; -exports.ControlMousePositionComponent = ControlMousePositionComponent; -//# sourceMappingURL=mouseposition.component.js.map \ No newline at end of file diff --git a/dist/components/controls/mouseposition.component.js.map b/dist/components/controls/mouseposition.component.js.map deleted file mode 100644 index 57bcd106..00000000 --- a/dist/components/controls/mouseposition.component.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../../../src/components/controls/mouseposition.component.ts"],"names":[],"mappings":";;AAAA,sCAAgF;AAChF,yCAA2E;AAC3E,kDAAgD;AAGhD;IAME,uCACU,GAAiB,EACjB,OAAmB;QADnB,QAAG,GAAH,GAAG,CAAc;QACjB,YAAO,GAAP,OAAO,CAAY;IAE7B,CAAC;IAED,gDAAQ,GAAR;QACE,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC;QACzC,wDAAwD;QACxD,IAAI,CAAC,QAAQ,GAAG,IAAI,oBAAO,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;QAChD,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC9C,CAAC;IAED,mDAAW,GAAX;QACE,qDAAqD;QACrD,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,aAAa,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACjD,CAAC;IAgBH,oCAAC;AAAD,CAtCA,AAsCC;AAfM,wCAAU,GAA0B;IAC3C,EAAE,IAAI,EAAE,gBAAS,EAAE,IAAI,EAAE,CAAC;gBACxB,QAAQ,EAAE,2BAA2B;gBACrC,QAAQ,EAAE,EAAE;aACb,EAAG,EAAE;CACL,CAAC;AACF,kBAAkB;AACX,4CAAc,GAAmE,cAAM,OAAA;IAC9F,EAAC,IAAI,EAAE,4BAAY,GAAG;IACtB,EAAC,IAAI,EAAE,iBAAU,GAAG;CACnB,EAH6F,CAG7F,CAAC;AACK,4CAAc,GAA2C;IAChE,kBAAkB,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IACtC,YAAY,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;CAC/B,CAAC;AArCW,sEAA6B","file":"mouseposition.component.js","sourceRoot":""} \ No newline at end of file diff --git a/dist/components/controls/mouseposition.component.metadata.json b/dist/components/controls/mouseposition.component.metadata.json deleted file mode 100644 index 1c838349..00000000 --- a/dist/components/controls/mouseposition.component.metadata.json +++ /dev/null @@ -1 +0,0 @@ -[{"__symbolic":"module","version":3,"metadata":{"ControlMousePositionComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-control-mouseposition","template":""}]}],"members":{"coordinateFormat":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"projection":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"../map.component","name":"MapComponent"},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"ControlMousePositionComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-control-mouseposition","template":""}]}],"members":{"coordinateFormat":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"projection":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"../map.component","name":"MapComponent"},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}}}}] \ No newline at end of file diff --git a/dist/components/controls/overviewmap.component.d.ts b/dist/components/controls/overviewmap.component.d.ts deleted file mode 100644 index 903d052c..00000000 --- a/dist/components/controls/overviewmap.component.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -/// -import { OnDestroy, OnInit } from '@angular/core'; -import { control, View, layer } from 'openlayers'; -import { MapComponent } from '../map.component'; -export declare class ControlOverviewMapComponent implements OnInit, OnDestroy { - private map; - instance: control.OverviewMap; - collapsed: boolean; - collapseLabel: string; - collapsible: boolean; - label: string; - layers: layer.Layer[]; - target: Element; - tipLabel: string; - view: View; - constructor(map: MapComponent); - ngOnInit(): void; - ngOnDestroy(): void; -} diff --git a/dist/components/controls/overviewmap.component.js b/dist/components/controls/overviewmap.component.js deleted file mode 100644 index 7ffef126..00000000 --- a/dist/components/controls/overviewmap.component.js +++ /dev/null @@ -1,42 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -var core_1 = require("@angular/core"); -var openlayers_1 = require("openlayers"); -var map_component_1 = require("../map.component"); -var ControlOverviewMapComponent = (function () { - function ControlOverviewMapComponent(map) { - this.map = map; - // console.log('instancing aol-control-overviewmap'); - } - ControlOverviewMapComponent.prototype.ngOnInit = function () { - this.instance = new openlayers_1.control.OverviewMap(this); - this.map.instance.addControl(this.instance); - }; - ControlOverviewMapComponent.prototype.ngOnDestroy = function () { - // console.log('removing aol-control-overviewmap'); - this.map.instance.removeControl(this.instance); - }; - return ControlOverviewMapComponent; -}()); -ControlOverviewMapComponent.decorators = [ - { type: core_1.Component, args: [{ - selector: 'aol-control-overviewmap', - template: "" - },] }, -]; -/** @nocollapse */ -ControlOverviewMapComponent.ctorParameters = function () { return [ - { type: map_component_1.MapComponent, }, -]; }; -ControlOverviewMapComponent.propDecorators = { - 'collapsed': [{ type: core_1.Input },], - 'collapseLabel': [{ type: core_1.Input },], - 'collapsible': [{ type: core_1.Input },], - 'label': [{ type: core_1.Input },], - 'layers': [{ type: core_1.Input },], - 'target': [{ type: core_1.Input },], - 'tipLabel': [{ type: core_1.Input },], - 'view': [{ type: core_1.Input },], -}; -exports.ControlOverviewMapComponent = ControlOverviewMapComponent; -//# sourceMappingURL=overviewmap.component.js.map \ No newline at end of file diff --git a/dist/components/controls/overviewmap.component.js.map b/dist/components/controls/overviewmap.component.js.map deleted file mode 100644 index 42410f49..00000000 --- a/dist/components/controls/overviewmap.component.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../../../src/components/controls/overviewmap.component.ts"],"names":[],"mappings":";;AAAA,sCAAoE;AACpE,yCAAkD;AAClD,kDAAgD;AAGhD;IAWE,qCAAoB,GAAiB;QAAjB,QAAG,GAAH,GAAG,CAAc;QACnC,qDAAqD;IACvD,CAAC;IAED,8CAAQ,GAAR;QACE,IAAI,CAAC,QAAQ,GAAG,IAAI,oBAAO,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;QAC9C,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC9C,CAAC;IAED,iDAAW,GAAX;QACE,mDAAmD;QACnD,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,aAAa,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACjD,CAAC;IAqBH,kCAAC;AAAD,CA5CA,AA4CC;AApBM,sCAAU,GAA0B;IAC3C,EAAE,IAAI,EAAE,gBAAS,EAAE,IAAI,EAAE,CAAC;gBACxB,QAAQ,EAAE,yBAAyB;gBACnC,QAAQ,EAAE,2BAA2B;aACtC,EAAG,EAAE;CACL,CAAC;AACF,kBAAkB;AACX,0CAAc,GAAmE,cAAM,OAAA;IAC9F,EAAC,IAAI,EAAE,4BAAY,GAAG;CACrB,EAF6F,CAE7F,CAAC;AACK,0CAAc,GAA2C;IAChE,WAAW,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IAC/B,eAAe,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IACnC,aAAa,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IACjC,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IAC3B,QAAQ,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IAC5B,QAAQ,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IAC5B,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IAC9B,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;CACzB,CAAC;AA3CW,kEAA2B","file":"overviewmap.component.js","sourceRoot":""} \ No newline at end of file diff --git a/dist/components/controls/overviewmap.component.metadata.json b/dist/components/controls/overviewmap.component.metadata.json deleted file mode 100644 index bc1a55d5..00000000 --- a/dist/components/controls/overviewmap.component.metadata.json +++ /dev/null @@ -1 +0,0 @@ -[{"__symbolic":"module","version":3,"metadata":{"ControlOverviewMapComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-control-overviewmap","template":""}]}],"members":{"collapsed":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"collapseLabel":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"collapsible":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"label":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"layers":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"target":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"tipLabel":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"view":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"../map.component","name":"MapComponent"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"ControlOverviewMapComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-control-overviewmap","template":""}]}],"members":{"collapsed":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"collapseLabel":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"collapsible":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"label":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"layers":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"target":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"tipLabel":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"view":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"../map.component","name":"MapComponent"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}}}}] \ No newline at end of file diff --git a/dist/components/controls/rotate.component.d.ts b/dist/components/controls/rotate.component.d.ts deleted file mode 100644 index 033f7093..00000000 --- a/dist/components/controls/rotate.component.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -/// -import { OnDestroy, OnInit } from '@angular/core'; -import { control } from 'openlayers'; -import { MapComponent } from '../map.component'; -export declare class ControlRotateComponent implements OnInit, OnDestroy { - private map; - instance: control.Rotate; - constructor(map: MapComponent); - ngOnInit(): void; - ngOnDestroy(): void; -} diff --git a/dist/components/controls/rotate.component.js b/dist/components/controls/rotate.component.js deleted file mode 100644 index 4aae57ee..00000000 --- a/dist/components/controls/rotate.component.js +++ /dev/null @@ -1,32 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -var core_1 = require("@angular/core"); -var openlayers_1 = require("openlayers"); -var map_component_1 = require("../map.component"); -var ControlRotateComponent = (function () { - function ControlRotateComponent(map) { - this.map = map; - // console.log('instancing aol-control-rotate'); - } - ControlRotateComponent.prototype.ngOnInit = function () { - this.instance = new openlayers_1.control.Rotate(this); - this.map.instance.addControl(this.instance); - }; - ControlRotateComponent.prototype.ngOnDestroy = function () { - // console.log('removing aol-control-rotate'); - this.map.instance.removeControl(this.instance); - }; - return ControlRotateComponent; -}()); -ControlRotateComponent.decorators = [ - { type: core_1.Component, args: [{ - selector: 'aol-control-rotate', - template: "" - },] }, -]; -/** @nocollapse */ -ControlRotateComponent.ctorParameters = function () { return [ - { type: map_component_1.MapComponent, }, -]; }; -exports.ControlRotateComponent = ControlRotateComponent; -//# sourceMappingURL=rotate.component.js.map \ No newline at end of file diff --git a/dist/components/controls/rotate.component.js.map b/dist/components/controls/rotate.component.js.map deleted file mode 100644 index 9ce66c22..00000000 --- a/dist/components/controls/rotate.component.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../../../src/components/controls/rotate.component.ts"],"names":[],"mappings":";;AAAA,sCAA6D;AAC7D,yCAAqC;AACrC,kDAAgD;AAGhD;IAGE,gCAAoB,GAAiB;QAAjB,QAAG,GAAH,GAAG,CAAc;QACnC,gDAAgD;IAClD,CAAC;IAED,yCAAQ,GAAR;QACE,IAAI,CAAC,QAAQ,GAAG,IAAI,oBAAO,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QACzC,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC9C,CAAC;IAED,4CAAW,GAAX;QACE,8CAA8C;QAC9C,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,aAAa,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACjD,CAAC;IAWH,6BAAC;AAAD,CA1BA,AA0BC;AAVM,iCAAU,GAA0B;IAC3C,EAAE,IAAI,EAAE,gBAAS,EAAE,IAAI,EAAE,CAAC;gBACxB,QAAQ,EAAE,oBAAoB;gBAC9B,QAAQ,EAAE,2BAA2B;aACtC,EAAG,EAAE;CACL,CAAC;AACF,kBAAkB;AACX,qCAAc,GAAmE,cAAM,OAAA;IAC9F,EAAC,IAAI,EAAE,4BAAY,GAAG;CACrB,EAF6F,CAE7F,CAAC;AAzBW,wDAAsB","file":"rotate.component.js","sourceRoot":""} \ No newline at end of file diff --git a/dist/components/controls/rotate.component.metadata.json b/dist/components/controls/rotate.component.metadata.json deleted file mode 100644 index 3150fd3a..00000000 --- a/dist/components/controls/rotate.component.metadata.json +++ /dev/null @@ -1 +0,0 @@ -[{"__symbolic":"module","version":3,"metadata":{"ControlRotateComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-control-rotate","template":""}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"../map.component","name":"MapComponent"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"ControlRotateComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-control-rotate","template":""}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"../map.component","name":"MapComponent"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}}}}] \ No newline at end of file diff --git a/dist/components/controls/scaleline.component.d.ts b/dist/components/controls/scaleline.component.d.ts deleted file mode 100644 index df68d5c2..00000000 --- a/dist/components/controls/scaleline.component.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -/// -import { OnDestroy, OnInit } from '@angular/core'; -import { control } from 'openlayers'; -import { MapComponent } from '../map.component'; -export declare class ControlScaleLineComponent implements OnInit, OnDestroy { - private map; - instance: control.ScaleLine; - constructor(map: MapComponent); - ngOnInit(): void; - ngOnDestroy(): void; -} diff --git a/dist/components/controls/scaleline.component.js b/dist/components/controls/scaleline.component.js deleted file mode 100644 index 5001a513..00000000 --- a/dist/components/controls/scaleline.component.js +++ /dev/null @@ -1,32 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -var core_1 = require("@angular/core"); -var openlayers_1 = require("openlayers"); -var map_component_1 = require("../map.component"); -var ControlScaleLineComponent = (function () { - function ControlScaleLineComponent(map) { - this.map = map; - // console.log('instancing aol-control-scaleline'); - } - ControlScaleLineComponent.prototype.ngOnInit = function () { - this.instance = new openlayers_1.control.ScaleLine(this); - this.map.instance.addControl(this.instance); - }; - ControlScaleLineComponent.prototype.ngOnDestroy = function () { - // console.log('removing aol-control-scaleline'); - this.map.instance.removeControl(this.instance); - }; - return ControlScaleLineComponent; -}()); -ControlScaleLineComponent.decorators = [ - { type: core_1.Component, args: [{ - selector: 'aol-control-scaleline', - template: "" - },] }, -]; -/** @nocollapse */ -ControlScaleLineComponent.ctorParameters = function () { return [ - { type: map_component_1.MapComponent, }, -]; }; -exports.ControlScaleLineComponent = ControlScaleLineComponent; -//# sourceMappingURL=scaleline.component.js.map \ No newline at end of file diff --git a/dist/components/controls/scaleline.component.js.map b/dist/components/controls/scaleline.component.js.map deleted file mode 100644 index 1551436b..00000000 --- a/dist/components/controls/scaleline.component.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../../../src/components/controls/scaleline.component.ts"],"names":[],"mappings":";;AAAA,sCAA6D;AAC7D,yCAAqC;AACrC,kDAAgD;AAGhD;IAGE,mCAAoB,GAAiB;QAAjB,QAAG,GAAH,GAAG,CAAc;QACnC,mDAAmD;IACrD,CAAC;IAED,4CAAQ,GAAR;QACE,IAAI,CAAC,QAAQ,GAAG,IAAI,oBAAO,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;QAC5C,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC9C,CAAC;IAED,+CAAW,GAAX;QACE,iDAAiD;QACjD,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,aAAa,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACjD,CAAC;IAWH,gCAAC;AAAD,CA1BA,AA0BC;AAVM,oCAAU,GAA0B;IAC3C,EAAE,IAAI,EAAE,gBAAS,EAAE,IAAI,EAAE,CAAC;gBACxB,QAAQ,EAAE,uBAAuB;gBACjC,QAAQ,EAAE,2BAA2B;aACtC,EAAG,EAAE;CACL,CAAC;AACF,kBAAkB;AACX,wCAAc,GAAmE,cAAM,OAAA;IAC9F,EAAC,IAAI,EAAE,4BAAY,GAAG;CACrB,EAF6F,CAE7F,CAAC;AAzBW,8DAAyB","file":"scaleline.component.js","sourceRoot":""} \ No newline at end of file diff --git a/dist/components/controls/scaleline.component.metadata.json b/dist/components/controls/scaleline.component.metadata.json deleted file mode 100644 index 84a9709a..00000000 --- a/dist/components/controls/scaleline.component.metadata.json +++ /dev/null @@ -1 +0,0 @@ -[{"__symbolic":"module","version":3,"metadata":{"ControlScaleLineComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-control-scaleline","template":""}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"../map.component","name":"MapComponent"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"ControlScaleLineComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-control-scaleline","template":""}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"../map.component","name":"MapComponent"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}}}}] \ No newline at end of file diff --git a/dist/components/controls/zoom.component.d.ts b/dist/components/controls/zoom.component.d.ts deleted file mode 100644 index 31133bf5..00000000 --- a/dist/components/controls/zoom.component.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -/// -import { OnDestroy, OnInit } from '@angular/core'; -import { control } from 'openlayers'; -import { MapComponent } from '../map.component'; -export declare class ControlZoomComponent implements OnInit, OnDestroy { - private map; - instance: control.Zoom; - duration: number; - zoomInLabel: (string | Node); - zoomOutLabel: (string | Node); - zoomInTipLabel: string; - zoomOutTipLabel: string; - delta: number; - constructor(map: MapComponent); - ngOnInit(): void; - ngOnDestroy(): void; -} diff --git a/dist/components/controls/zoom.component.js b/dist/components/controls/zoom.component.js deleted file mode 100644 index 98d9810d..00000000 --- a/dist/components/controls/zoom.component.js +++ /dev/null @@ -1,40 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -var core_1 = require("@angular/core"); -var openlayers_1 = require("openlayers"); -var map_component_1 = require("../map.component"); -var ControlZoomComponent = (function () { - function ControlZoomComponent(map) { - this.map = map; - // console.log('instancing aol-control-zoom'); - } - ControlZoomComponent.prototype.ngOnInit = function () { - this.instance = new openlayers_1.control.Zoom(this); - this.map.instance.addControl(this.instance); - }; - ControlZoomComponent.prototype.ngOnDestroy = function () { - // console.log('removing aol-control-zoom'); - this.map.instance.removeControl(this.instance); - }; - return ControlZoomComponent; -}()); -ControlZoomComponent.decorators = [ - { type: core_1.Component, args: [{ - selector: 'aol-control-zoom', - template: "" - },] }, -]; -/** @nocollapse */ -ControlZoomComponent.ctorParameters = function () { return [ - { type: map_component_1.MapComponent, }, -]; }; -ControlZoomComponent.propDecorators = { - 'duration': [{ type: core_1.Input },], - 'zoomInLabel': [{ type: core_1.Input },], - 'zoomOutLabel': [{ type: core_1.Input },], - 'zoomInTipLabel': [{ type: core_1.Input },], - 'zoomOutTipLabel': [{ type: core_1.Input },], - 'delta': [{ type: core_1.Input },], -}; -exports.ControlZoomComponent = ControlZoomComponent; -//# sourceMappingURL=zoom.component.js.map \ No newline at end of file diff --git a/dist/components/controls/zoom.component.js.map b/dist/components/controls/zoom.component.js.map deleted file mode 100644 index 8740e73f..00000000 --- a/dist/components/controls/zoom.component.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../../../src/components/controls/zoom.component.ts"],"names":[],"mappings":";;AAAA,sCAAoE;AACpE,yCAAqC;AACrC,kDAAgD;AAGhD;IAUE,8BAAoB,GAAiB;QAAjB,QAAG,GAAH,GAAG,CAAc;QACnC,8CAA8C;IAChD,CAAC;IAED,uCAAQ,GAAR;QACE,IAAI,CAAC,QAAQ,GAAG,IAAI,oBAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACvC,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC9C,CAAC;IAED,0CAAW,GAAX;QACE,4CAA4C;QAC5C,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,aAAa,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACjD,CAAC;IAmBH,2BAAC;AAAD,CAzCA,AAyCC;AAlBM,+BAAU,GAA0B;IAC3C,EAAE,IAAI,EAAE,gBAAS,EAAE,IAAI,EAAE,CAAC;gBACxB,QAAQ,EAAE,kBAAkB;gBAC5B,QAAQ,EAAE,2BAA2B;aACtC,EAAG,EAAE;CACL,CAAC;AACF,kBAAkB;AACX,mCAAc,GAAmE,cAAM,OAAA;IAC9F,EAAC,IAAI,EAAE,4BAAY,GAAG;CACrB,EAF6F,CAE7F,CAAC;AACK,mCAAc,GAA2C;IAChE,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IAC9B,aAAa,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IACjC,cAAc,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IAClC,gBAAgB,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IACpC,iBAAiB,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IACrC,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;CAC1B,CAAC;AAxCW,oDAAoB","file":"zoom.component.js","sourceRoot":""} \ No newline at end of file diff --git a/dist/components/controls/zoom.component.metadata.json b/dist/components/controls/zoom.component.metadata.json deleted file mode 100644 index 3a623e51..00000000 --- a/dist/components/controls/zoom.component.metadata.json +++ /dev/null @@ -1 +0,0 @@ -[{"__symbolic":"module","version":3,"metadata":{"ControlZoomComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-control-zoom","template":""}]}],"members":{"duration":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"zoomInLabel":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"zoomOutLabel":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"zoomInTipLabel":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"zoomOutTipLabel":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"delta":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"../map.component","name":"MapComponent"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"ControlZoomComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-control-zoom","template":""}]}],"members":{"duration":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"zoomInLabel":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"zoomOutLabel":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"zoomInTipLabel":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"zoomOutTipLabel":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"delta":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"../map.component","name":"MapComponent"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}}}}] \ No newline at end of file diff --git a/dist/components/controls/zoomslider.component.d.ts b/dist/components/controls/zoomslider.component.d.ts deleted file mode 100644 index 295b5e21..00000000 --- a/dist/components/controls/zoomslider.component.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -/// -import { OnDestroy, OnInit } from '@angular/core'; -import { control } from 'openlayers'; -import { MapComponent } from '../map.component'; -export declare class ControlZoomSliderComponent implements OnInit, OnDestroy { - private map; - instance: control.ZoomSlider; - constructor(map: MapComponent); - ngOnInit(): void; - ngOnDestroy(): void; -} diff --git a/dist/components/controls/zoomslider.component.js b/dist/components/controls/zoomslider.component.js deleted file mode 100644 index da1b43e6..00000000 --- a/dist/components/controls/zoomslider.component.js +++ /dev/null @@ -1,32 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -var core_1 = require("@angular/core"); -var openlayers_1 = require("openlayers"); -var map_component_1 = require("../map.component"); -var ControlZoomSliderComponent = (function () { - function ControlZoomSliderComponent(map) { - this.map = map; - // console.log('instancing aol-control-zoomslider'); - } - ControlZoomSliderComponent.prototype.ngOnInit = function () { - this.instance = new openlayers_1.control.ZoomSlider(this); - this.map.instance.addControl(this.instance); - }; - ControlZoomSliderComponent.prototype.ngOnDestroy = function () { - // console.log('removing aol-control-zoomslider'); - this.map.instance.removeControl(this.instance); - }; - return ControlZoomSliderComponent; -}()); -ControlZoomSliderComponent.decorators = [ - { type: core_1.Component, args: [{ - selector: 'aol-control-zoomslider', - template: "" - },] }, -]; -/** @nocollapse */ -ControlZoomSliderComponent.ctorParameters = function () { return [ - { type: map_component_1.MapComponent, }, -]; }; -exports.ControlZoomSliderComponent = ControlZoomSliderComponent; -//# sourceMappingURL=zoomslider.component.js.map \ No newline at end of file diff --git a/dist/components/controls/zoomslider.component.js.map b/dist/components/controls/zoomslider.component.js.map deleted file mode 100644 index 0e629bd7..00000000 --- a/dist/components/controls/zoomslider.component.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../../../src/components/controls/zoomslider.component.ts"],"names":[],"mappings":";;AAAA,sCAA6D;AAC7D,yCAAqC;AACrC,kDAAgD;AAGhD;IAGE,oCAAoB,GAAiB;QAAjB,QAAG,GAAH,GAAG,CAAc;QACnC,oDAAoD;IACtD,CAAC;IAED,6CAAQ,GAAR;QACE,IAAI,CAAC,QAAQ,GAAG,IAAI,oBAAO,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;QAC7C,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC9C,CAAC;IAED,gDAAW,GAAX;QACE,kDAAkD;QAClD,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,aAAa,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACjD,CAAC;IAWH,iCAAC;AAAD,CA1BA,AA0BC;AAVM,qCAAU,GAA0B;IAC3C,EAAE,IAAI,EAAE,gBAAS,EAAE,IAAI,EAAE,CAAC;gBACxB,QAAQ,EAAE,wBAAwB;gBAClC,QAAQ,EAAE,2BAA2B;aACtC,EAAG,EAAE;CACL,CAAC;AACF,kBAAkB;AACX,yCAAc,GAAmE,cAAM,OAAA;IAC9F,EAAC,IAAI,EAAE,4BAAY,GAAG;CACrB,EAF6F,CAE7F,CAAC;AAzBW,gEAA0B","file":"zoomslider.component.js","sourceRoot":""} \ No newline at end of file diff --git a/dist/components/controls/zoomslider.component.metadata.json b/dist/components/controls/zoomslider.component.metadata.json deleted file mode 100644 index 7d8e33af..00000000 --- a/dist/components/controls/zoomslider.component.metadata.json +++ /dev/null @@ -1 +0,0 @@ -[{"__symbolic":"module","version":3,"metadata":{"ControlZoomSliderComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-control-zoomslider","template":""}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"../map.component","name":"MapComponent"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"ControlZoomSliderComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-control-zoomslider","template":""}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"../map.component","name":"MapComponent"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}}}}] \ No newline at end of file diff --git a/dist/components/controls/zoomtoextent.component.d.ts b/dist/components/controls/zoomtoextent.component.d.ts deleted file mode 100644 index e71b0a60..00000000 --- a/dist/components/controls/zoomtoextent.component.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -/// -import { OnDestroy, OnInit } from '@angular/core'; -import { control, Extent } from 'openlayers'; -import { MapComponent } from '../map.component'; -export declare class ControlZoomToExtentComponent implements OnInit, OnDestroy { - private map; - instance: control.ZoomToExtent; - className: string; - label: (string | Node); - tipLabel: string; - extent: Extent; - constructor(map: MapComponent); - ngOnInit(): void; - ngOnDestroy(): void; -} diff --git a/dist/components/controls/zoomtoextent.component.js b/dist/components/controls/zoomtoextent.component.js deleted file mode 100644 index ebbcf57c..00000000 --- a/dist/components/controls/zoomtoextent.component.js +++ /dev/null @@ -1,38 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -var core_1 = require("@angular/core"); -var openlayers_1 = require("openlayers"); -var map_component_1 = require("../map.component"); -var ControlZoomToExtentComponent = (function () { - function ControlZoomToExtentComponent(map) { - this.map = map; - // console.log('instancing aol-control-zoomtoextent'); - } - ControlZoomToExtentComponent.prototype.ngOnInit = function () { - this.instance = new openlayers_1.control.ZoomToExtent(this); - this.map.instance.addControl(this.instance); - }; - ControlZoomToExtentComponent.prototype.ngOnDestroy = function () { - // console.log('removing aol-control-zoomtoextent'); - this.map.instance.removeControl(this.instance); - }; - return ControlZoomToExtentComponent; -}()); -ControlZoomToExtentComponent.decorators = [ - { type: core_1.Component, args: [{ - selector: 'aol-control-zoomtoextent', - template: "" - },] }, -]; -/** @nocollapse */ -ControlZoomToExtentComponent.ctorParameters = function () { return [ - { type: map_component_1.MapComponent, }, -]; }; -ControlZoomToExtentComponent.propDecorators = { - 'className': [{ type: core_1.Input },], - 'label': [{ type: core_1.Input },], - 'tipLabel': [{ type: core_1.Input },], - 'extent': [{ type: core_1.Input },], -}; -exports.ControlZoomToExtentComponent = ControlZoomToExtentComponent; -//# sourceMappingURL=zoomtoextent.component.js.map \ No newline at end of file diff --git a/dist/components/controls/zoomtoextent.component.js.map b/dist/components/controls/zoomtoextent.component.js.map deleted file mode 100644 index de3efdce..00000000 --- a/dist/components/controls/zoomtoextent.component.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../../../src/components/controls/zoomtoextent.component.ts"],"names":[],"mappings":";;AAAA,sCAAoE;AACpE,yCAA6C;AAC7C,kDAAgD;AAGhD;IAQE,sCAAoB,GAAiB;QAAjB,QAAG,GAAH,GAAG,CAAc;QACnC,sDAAsD;IACxD,CAAC;IAED,+CAAQ,GAAR;QACE,IAAI,CAAC,QAAQ,GAAG,IAAI,oBAAO,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;QAC/C,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC9C,CAAC;IAED,kDAAW,GAAX;QACE,oDAAoD;QACpD,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,aAAa,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACjD,CAAC;IAiBH,mCAAC;AAAD,CArCA,AAqCC;AAhBM,uCAAU,GAA0B;IAC3C,EAAE,IAAI,EAAE,gBAAS,EAAE,IAAI,EAAE,CAAC;gBACxB,QAAQ,EAAE,0BAA0B;gBACpC,QAAQ,EAAE,2BAA2B;aACtC,EAAG,EAAE;CACL,CAAC;AACF,kBAAkB;AACX,2CAAc,GAAmE,cAAM,OAAA;IAC9F,EAAC,IAAI,EAAE,4BAAY,GAAG;CACrB,EAF6F,CAE7F,CAAC;AACK,2CAAc,GAA2C;IAChE,WAAW,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IAC/B,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IAC3B,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IAC9B,QAAQ,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;CAC3B,CAAC;AApCW,oEAA4B","file":"zoomtoextent.component.js","sourceRoot":""} \ No newline at end of file diff --git a/dist/components/controls/zoomtoextent.component.metadata.json b/dist/components/controls/zoomtoextent.component.metadata.json deleted file mode 100644 index f729becf..00000000 --- a/dist/components/controls/zoomtoextent.component.metadata.json +++ /dev/null @@ -1 +0,0 @@ -[{"__symbolic":"module","version":3,"metadata":{"ControlZoomToExtentComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-control-zoomtoextent","template":""}]}],"members":{"className":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"label":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"tipLabel":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"extent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"../map.component","name":"MapComponent"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"ControlZoomToExtentComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-control-zoomtoextent","template":""}]}],"members":{"className":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"label":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"tipLabel":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"extent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"../map.component","name":"MapComponent"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}}}}] \ No newline at end of file diff --git a/dist/components/coordinate.component.d.ts b/dist/components/coordinate.component.d.ts deleted file mode 100644 index 748ca703..00000000 --- a/dist/components/coordinate.component.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -import { OnChanges, SimpleChanges } from '@angular/core'; -import { MapComponent } from './map.component'; -import { GeometryPointComponent, GeometryLinestringComponent, GeometryPolygonComponent } from './geometry.components'; -import { ViewComponent } from './view.component'; -import { OverlayComponent } from './overlay.component'; -export declare class CoordinateComponent implements OnChanges { - private map; - private host; - x: number; - y: number; - srid: string; - constructor(map: MapComponent, viewHost: ViewComponent, geometryPointHost: GeometryPointComponent, overlayHost: OverlayComponent); - ngOnChanges(changes: SimpleChanges): void; -} -export declare class CollectionCoordinatesComponent implements OnChanges { - private map; - private host; - coordinates: [number, number][]; - srid: string; - constructor(map: MapComponent, geometryLinestring: GeometryLinestringComponent, geometryPolygon: GeometryPolygonComponent); - ngOnChanges(changes: SimpleChanges): void; -} diff --git a/dist/components/coordinate.component.js b/dist/components/coordinate.component.js deleted file mode 100644 index 84660a74..00000000 --- a/dist/components/coordinate.component.js +++ /dev/null @@ -1,130 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -var core_1 = require("@angular/core"); -var openlayers_1 = require("openlayers"); -var map_component_1 = require("./map.component"); -var geometry_components_1 = require("./geometry.components"); -var view_component_1 = require("./view.component"); -var overlay_component_1 = require("./overlay.component"); -var CoordinateComponent = (function () { - function CoordinateComponent(map, viewHost, geometryPointHost, overlayHost) { - this.map = map; - this.srid = 'EPSG:3857'; - // console.log('instancing aol-coordinate'); - if (geometryPointHost !== null) { - this.host = geometryPointHost; - } - else if (viewHost !== null) { - this.host = viewHost; - } - else if (overlayHost !== null) { - this.host = overlayHost; - } - } - CoordinateComponent.prototype.ngOnChanges = function (changes) { - var referenceProjection; - var referenceProjectionCode; - var transformedCoordinates; - referenceProjection = this.map.instance.getView().getProjection(); - referenceProjectionCode = referenceProjection ? referenceProjection.getCode() : 'EPSG:3857'; - if (this.srid === referenceProjectionCode) { - transformedCoordinates = [this.x, this.y]; - } - else { - transformedCoordinates = openlayers_1.proj.transform([this.x, this.y], this.srid, referenceProjectionCode); - } - switch (this.host.componentType) { - case 'geometry-point': - this.host.instance.setCoordinates(transformedCoordinates); - break; - case 'view': - this.host.instance.setCenter(transformedCoordinates); - break; - case 'overlay': - this.host.instance.setPosition(transformedCoordinates); - break; - } - }; - return CoordinateComponent; -}()); -CoordinateComponent.decorators = [ - { type: core_1.Component, args: [{ - selector: 'aol-coordinate', - template: "
" - },] }, -]; -/** @nocollapse */ -CoordinateComponent.ctorParameters = function () { return [ - { type: map_component_1.MapComponent, }, - { type: view_component_1.ViewComponent, decorators: [{ type: core_1.Optional },] }, - { type: geometry_components_1.GeometryPointComponent, decorators: [{ type: core_1.Optional },] }, - { type: overlay_component_1.OverlayComponent, decorators: [{ type: core_1.Optional },] }, -]; }; -CoordinateComponent.propDecorators = { - 'x': [{ type: core_1.Input },], - 'y': [{ type: core_1.Input },], - 'srid': [{ type: core_1.Input },], -}; -exports.CoordinateComponent = CoordinateComponent; -var CollectionCoordinatesComponent = (function () { - function CollectionCoordinatesComponent(map, geometryLinestring, geometryPolygon) { - this.map = map; - this.srid = 'EPSG:3857'; - // console.log('creating aol-collection-coordinates'); - if (!!geometryLinestring) { - this.host = geometryLinestring; - } - else if (!!geometryPolygon) { - this.host = geometryPolygon; - } - else { - throw new Error('aol-collection-coordinates must be a child of a geometry component'); - } - } - CollectionCoordinatesComponent.prototype.ngOnChanges = function (changes) { - var referenceProjection; - var referenceProjectionCode; - var transformedCoordinates; - // console.log('coordinates change: ', this.coordinates); - referenceProjection = this.map.instance.getView().getProjection(); - referenceProjectionCode = referenceProjection ? referenceProjection.getCode() : 'EPSG:3857'; - if (this.srid === referenceProjectionCode) { - transformedCoordinates = this.coordinates; - } - else { - transformedCoordinates = []; - this.coordinates.forEach(function (coordinate) { - transformedCoordinates.push(openlayers_1.proj.transform(coordinate, this.srid, referenceProjectionCode)); - }.bind(this)); - } - switch (this.host.componentType) { - case 'geometry-linestring': - this.host.instance.setCoordinates(transformedCoordinates); - break; - case 'geometry-polygon': - this.host.instance.setCoordinates([transformedCoordinates]); - break; - default: - throw new Error('aol-collection-coordinates\' host is of unknown type: ' + this.host.componentType); - } - }; - return CollectionCoordinatesComponent; -}()); -CollectionCoordinatesComponent.decorators = [ - { type: core_1.Component, args: [{ - selector: 'aol-collection-coordinates', - template: "
" - },] }, -]; -/** @nocollapse */ -CollectionCoordinatesComponent.ctorParameters = function () { return [ - { type: map_component_1.MapComponent, }, - { type: geometry_components_1.GeometryLinestringComponent, decorators: [{ type: core_1.Optional },] }, - { type: geometry_components_1.GeometryPolygonComponent, decorators: [{ type: core_1.Optional },] }, -]; }; -CollectionCoordinatesComponent.propDecorators = { - 'coordinates': [{ type: core_1.Input },], - 'srid': [{ type: core_1.Input },], -}; -exports.CollectionCoordinatesComponent = CollectionCoordinatesComponent; -//# sourceMappingURL=coordinate.component.js.map \ No newline at end of file diff --git a/dist/components/coordinate.component.js.map b/dist/components/coordinate.component.js.map deleted file mode 100644 index ee8cd37e..00000000 --- a/dist/components/coordinate.component.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../../src/components/coordinate.component.ts"],"names":[],"mappings":";;AAAA,sCAAqF;AACrF,yCAA8C;AAC9C,iDAA+C;AAC/C,6DAAsH;AACtH,mDAAiD;AACjD,yDAAuD;AAGvD;IAOE,6BACU,GAAiB,EACxB,QAAuB,EACvB,iBAAyC,EACzC,WAA6B;QAHtB,QAAG,GAAH,GAAG,CAAc;QAH1B,SAAI,GAAW,WAAW,CAAC;QAQ1B,4CAA4C;QAC5C,EAAE,CAAC,CAAC,iBAAiB,KAAK,IAAI,CAAC,CAAC,CAAC;YAC/B,IAAI,CAAC,IAAI,GAAG,iBAAiB,CAAC;QAChC,CAAC;QAAC,IAAI,CAAC,EAAE,CAAC,CAAC,QAAQ,KAAK,IAAI,CAAC,CAAC,CAAC;YAC7B,IAAI,CAAC,IAAI,GAAG,QAAQ,CAAC;QACvB,CAAC;QAAC,IAAI,CAAC,EAAE,CAAC,CAAC,WAAW,KAAK,IAAI,CAAC,CAAC,CAAC;YAChC,IAAI,CAAC,IAAI,GAAG,WAAW,CAAC;QAC1B,CAAC;IACH,CAAC;IAED,yCAAW,GAAX,UAAY,OAAsB;QAChC,IAAI,mBAAoC,CAAC;QACzC,IAAI,uBAA+B,CAAC;QACpC,IAAI,sBAAgC,CAAC;QAErC,mBAAmB,GAAG,IAAI,CAAC,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AAG;IACtB,EAAC,IAAI,EAAE,iDAA2B,EAAE,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,eAAQ,EAAE,EAAG,EAAC;IACvE,EAAC,IAAI,EAAE,8CAAwB,EAAE,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,eAAQ,EAAE,EAAG,EAAC;CACnE,EAJ6F,CAI7F,CAAC;AACK,6CAAc,GAA2C;IAChE,aAAa,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IACjC,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;CACzB,CAAC;AAlEW,wEAA8B","file":"coordinate.component.js","sourceRoot":""} \ No newline at end of file diff --git a/dist/components/coordinate.component.metadata.json b/dist/components/coordinate.component.metadata.json deleted file mode 100644 index 3f87471b..00000000 --- a/dist/components/coordinate.component.metadata.json +++ /dev/null @@ -1 +0,0 @@ -[{"__symbolic":"module","version":3,"metadata":{"CoordinateComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-coordinate","template":"
"}]}],"members":{"x":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"y":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"srid":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}]],"parameters":[{"__symbolic":"reference","module":"./map.component","name":"MapComponent"},{"__symbolic":"reference","module":"./view.component","name":"ViewComponent"},{"__symbolic":"reference","module":"./geometry.components","name":"GeometryPointComponent"},{"__symbolic":"reference","module":"./overlay.component","name":"OverlayComponent"}]}],"ngOnChanges":[{"__symbolic":"method"}]}},"CollectionCoordinatesComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-collection-coordinates","template":"
"}]}],"members":{"coordinates":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"srid":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}]],"parameters":[{"__symbolic":"reference","module":"./map.component","name":"MapComponent"},{"__symbolic":"reference","module":"./geometry.components","name":"GeometryLinestringComponent"},{"__symbolic":"reference","module":"./geometry.components","name":"GeometryPolygonComponent"}]}],"ngOnChanges":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"CoordinateComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-coordinate","template":"
"}]}],"members":{"x":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"y":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"srid":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}]],"parameters":[{"__symbolic":"reference","module":"./map.component","name":"MapComponent"},{"__symbolic":"reference","module":"./view.component","name":"ViewComponent"},{"__symbolic":"reference","module":"./geometry.components","name":"GeometryPointComponent"},{"__symbolic":"reference","module":"./overlay.component","name":"OverlayComponent"}]}],"ngOnChanges":[{"__symbolic":"method"}]}},"CollectionCoordinatesComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-collection-coordinates","template":"
"}]}],"members":{"coordinates":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"srid":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}]],"parameters":[{"__symbolic":"reference","module":"./map.component","name":"MapComponent"},{"__symbolic":"reference","module":"./geometry.components","name":"GeometryLinestringComponent"},{"__symbolic":"reference","module":"./geometry.components","name":"GeometryPolygonComponent"}]}],"ngOnChanges":[{"__symbolic":"method"}]}}}}] \ No newline at end of file diff --git a/dist/components/feature.component.d.ts b/dist/components/feature.component.d.ts deleted file mode 100644 index 9e0c6be3..00000000 --- a/dist/components/feature.component.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -/// -import { OnInit, OnDestroy, OnChanges, SimpleChanges } from '@angular/core'; -import { Feature } from 'openlayers'; -import { SourceVectorComponent } from './sources'; -export declare class FeatureComponent implements OnInit, OnDestroy, OnChanges { - private host; - componentType: string; - instance: Feature; - id: string | number | undefined; - constructor(host: SourceVectorComponent); - ngOnInit(): void; - ngOnDestroy(): void; - ngOnChanges(changes: SimpleChanges): void; -} diff --git a/dist/components/feature.component.js b/dist/components/feature.component.js deleted file mode 100644 index d94b1c2e..00000000 --- a/dist/components/feature.component.js +++ /dev/null @@ -1,42 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -var core_1 = require("@angular/core"); -var openlayers_1 = require("openlayers"); -var sources_1 = require("./sources"); -var FeatureComponent = (function () { - function FeatureComponent(host) { - this.host = host; - this.componentType = 'feature'; - } - FeatureComponent.prototype.ngOnInit = function () { - this.instance = new openlayers_1.Feature(); - if (this.id !== undefined) { - this.instance.setId(this.id); - } - this.host.instance.addFeature(this.instance); - }; - FeatureComponent.prototype.ngOnDestroy = function () { - this.host.instance.removeFeature(this.instance); - }; - FeatureComponent.prototype.ngOnChanges = function (changes) { - if (this.instance) { - this.instance.setId(this.id); - } - }; - return FeatureComponent; -}()); -FeatureComponent.decorators = [ - { type: core_1.Component, args: [{ - selector: 'aol-feature', - template: "" - },] }, -]; -/** @nocollapse */ -FeatureComponent.ctorParameters = function () { return [ - { type: sources_1.SourceVectorComponent, }, -]; }; -FeatureComponent.propDecorators = { - 'id': [{ type: core_1.Input },], -}; -exports.FeatureComponent = FeatureComponent; -//# sourceMappingURL=feature.component.js.map \ No newline at end of file diff --git a/dist/components/feature.component.js.map b/dist/components/feature.component.js.map deleted file mode 100644 index 37e4e934..00000000 --- a/dist/components/feature.component.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../../src/components/feature.component.ts"],"names":[],"mappings":";;AAAA,sCAA8F;AAC9F,yCAAqC;AACrC,qCAAkD;AAGlD;IAME,0BAAoB,IAA2B;QAA3B,SAAI,GAAJ,IAAI,CAAuB;QALxC,kBAAa,GAAG,SAAS,CAAC;IAMjC,CAAC;IAED,mCAAQ,GAAR;QACE,IAAI,CAAC,QAAQ,GAAG,IAAI,oBAAO,EAAE,CAAC;QAC9B,EAAE,CAAC,CAAC,IAAI,CAAC,EAAE,KAAK,SAAS,CAAC,CAAC,CAAC;YAC1B,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QAC/B,CAAC;QACD,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC/C,CAAC;IAED,sCAAW,GAAX;QACE,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,aAAa,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAClD,CAAC;IAED,sCAAW,GAAX,UAAY,OAAsB;QAChC,EAAE,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;YAClB,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QAC/B,CAAC;IACH,CAAC;IAcH,uBAAC;AAAD,CAvCA,AAuCC;AAbM,2BAAU,GAA0B;IAC3C,EAAE,IAAI,EAAE,gBAAS,EAAE,IAAI,EAAE,CAAC;gBACxB,QAAQ,EAAE,aAAa;gBACvB,QAAQ,EAAE,2BAA2B;aACtC,EAAG,EAAE;CACL,CAAC;AACF,kBAAkB;AACX,+BAAc,GAAmE,cAAM,OAAA;IAC9F,EAAC,IAAI,EAAE,+BAAqB,GAAG;CAC9B,EAF6F,CAE7F,CAAC;AACK,+BAAc,GAA2C;IAChE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;CACvB,CAAC;AAtCW,4CAAgB","file":"feature.component.js","sourceRoot":""} \ No newline at end of file diff --git a/dist/components/feature.component.metadata.json b/dist/components/feature.component.metadata.json deleted file mode 100644 index cb0fc4a8..00000000 --- a/dist/components/feature.component.metadata.json +++ /dev/null @@ -1 +0,0 @@ -[{"__symbolic":"module","version":3,"metadata":{"FeatureComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-feature","template":""}]}],"members":{"id":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"./sources","name":"SourceVectorComponent"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"FeatureComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-feature","template":""}]}],"members":{"id":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"./sources","name":"SourceVectorComponent"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}]}}}}] \ No newline at end of file diff --git a/dist/components/format.component.d.ts b/dist/components/format.component.d.ts deleted file mode 100644 index 5483d6f8..00000000 --- a/dist/components/format.component.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -/// -import { format, geom } from 'openlayers'; -export declare class FormatComponent { - instance: format.Feature; - componentType: string; -} -export declare class FormatMVTComponent extends FormatComponent { - instance: format.MVT; - featureClass: (((geom: (geom.Geometry | { - [k: string]: any; - })) => any) | ((geom: geom.GeometryType, arg2: number[], arg3: (number[] | number[][]), arg4: { - [k: string]: any; - }) => any)); - geometryName: string; - layerName: string; - layers: string[]; - constructor(); -} diff --git a/dist/components/format.component.js b/dist/components/format.component.js deleted file mode 100644 index 9ad64f42..00000000 --- a/dist/components/format.component.js +++ /dev/null @@ -1,42 +0,0 @@ -"use strict"; -var __extends = (this && this.__extends) || function (d, b) { - for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); -}; -var core_1 = require('@angular/core'); -var openlayers_1 = require('openlayers'); -var FormatComponent = (function () { - function FormatComponent() { - this.componentType = 'format'; - } - return FormatComponent; -}()); -exports.FormatComponent = FormatComponent; -var FormatMVTComponent = (function (_super) { - __extends(FormatMVTComponent, _super); - function FormatMVTComponent() { - _super.call(this); - this.instance = new openlayers_1.format.MVT(this); - } - FormatMVTComponent.decorators = [ - { type: core_1.Component, args: [{ - selector: 'aol-format-mvt', - template: '', - providers: [ - { provide: FormatComponent, useExisting: core_1.forwardRef(function () { return FormatMVTComponent; }) } - ] - },] }, - ]; - /** @nocollapse */ - FormatMVTComponent.ctorParameters = function () { return []; }; - FormatMVTComponent.propDecorators = { - 'featureClass': [{ type: core_1.Input },], - 'geometryName': [{ type: core_1.Input },], - 'layerName': [{ type: core_1.Input },], - 'layers': [{ type: core_1.Input },], - }; - return FormatMVTComponent; -}(FormatComponent)); -exports.FormatMVTComponent = FormatMVTComponent; -//# sourceMappingURL=format.component.js.map \ No newline at end of file diff --git a/dist/components/format.component.js.map b/dist/components/format.component.js.map deleted file mode 100644 index 3a00f552..00000000 --- a/dist/components/format.component.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"format.component.js","sourceRoot":"","sources":["../../src/components/format.component.ts"],"names":[],"mappings":";;;;;;AAAA,qBAA6C,eAAe,CAAC,CAAA;AAC7D,2BAA6B,YAAY,CAAC,CAAA;AAE1C;IAAA;QAES,kBAAa,GAAG,QAAQ,CAAC;IAClC,CAAC;IAAD,sBAAC;AAAD,CAAC,AAHD,IAGC;AAHY,uBAAe,kBAG3B,CAAA;AAGD;IAAwC,sCAAe;IASrD;QACE,iBAAO,CAAC;QACR,IAAI,CAAC,QAAQ,GAAG,IAAI,mBAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IACvC,CAAC;IACI,6BAAU,GAA0B;QAC3C,EAAE,IAAI,EAAE,gBAAS,EAAE,IAAI,EAAE,CAAC;oBACxB,QAAQ,EAAE,gBAAgB;oBAC1B,QAAQ,EAAE,EAAE;oBACZ,SAAS,EAAE;wBACT,EAAE,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,iBAAU,CAAC,cAAM,OAAA,kBAAkB,EAAlB,CAAkB,CAAC,EAAE;qBAChF;iBACF,EAAG,EAAE;KACL,CAAC;IACF,kBAAkB;IACX,iCAAc,GAAmE,cAAM,OAAA,EAC7F,EAD6F,CAC7F,CAAC;IACK,iCAAc,GAA2C;QAChE,cAAc,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;QAClC,cAAc,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;QAClC,WAAW,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;QAC/B,QAAQ,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;KAC3B,CAAC;IACF,yBAAC;AAAD,CAAC,AA/BD,CAAwC,eAAe,GA+BtD;AA/BY,0BAAkB,qBA+B9B,CAAA"} \ No newline at end of file diff --git a/dist/components/format.component.metadata.json b/dist/components/format.component.metadata.json deleted file mode 100644 index 07aa441b..00000000 --- a/dist/components/format.component.metadata.json +++ /dev/null @@ -1 +0,0 @@ -[{"__symbolic":"module","version":3,"metadata":{"FormatComponent":{"__symbolic":"class"},"FormatMVTComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"FormatComponent"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-format-mvt","template":"","providers":[{"provide":{"__symbolic":"reference","name":"FormatComponent"},"useExisting":{"__symbolic":"reference","name":"FormatMVTComponent"}}]}]}],"members":{"featureClass":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"geometryName":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"layerName":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"layers":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor"}]}}}},{"__symbolic":"module","version":1,"metadata":{"FormatComponent":{"__symbolic":"class"},"FormatMVTComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"FormatComponent"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-format-mvt","template":"","providers":[{"provide":{"__symbolic":"reference","name":"FormatComponent"},"useExisting":{"__symbolic":"reference","name":"FormatMVTComponent"}}]}]}],"members":{"featureClass":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"geometryName":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"layerName":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"layers":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor"}]}}}}] \ No newline at end of file diff --git a/dist/components/formats/format.component.d.ts b/dist/components/formats/format.component.d.ts deleted file mode 100644 index 0e40a2f3..00000000 --- a/dist/components/formats/format.component.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -/// -import { format } from 'openlayers'; -export declare class FormatComponent { - instance: format.Feature; - componentType: string; -} diff --git a/dist/components/formats/format.component.js b/dist/components/formats/format.component.js deleted file mode 100644 index 45050ff1..00000000 --- a/dist/components/formats/format.component.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -var FormatComponent = (function () { - function FormatComponent() { - this.componentType = 'format'; - } - return FormatComponent; -}()); -exports.FormatComponent = FormatComponent; -//# sourceMappingURL=format.component.js.map \ No newline at end of file diff --git a/dist/components/formats/format.component.js.map b/dist/components/formats/format.component.js.map deleted file mode 100644 index 1ceae9c6..00000000 --- a/dist/components/formats/format.component.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../../../src/components/formats/format.component.ts"],"names":[],"mappings":";;AAEA;IAAA;QAES,kBAAa,GAAG,QAAQ,CAAC;IAClC,CAAC;IAAD,sBAAC;AAAD,CAHA,AAGC,IAAA;AAHY,0CAAe","file":"format.component.js","sourceRoot":""} \ No newline at end of file diff --git a/dist/components/formats/format.component.metadata.json b/dist/components/formats/format.component.metadata.json deleted file mode 100644 index 40e08c09..00000000 --- a/dist/components/formats/format.component.metadata.json +++ /dev/null @@ -1 +0,0 @@ -[{"__symbolic":"module","version":3,"metadata":{"FormatComponent":{"__symbolic":"class"}}},{"__symbolic":"module","version":1,"metadata":{"FormatComponent":{"__symbolic":"class"}}}] \ No newline at end of file diff --git a/dist/components/formats/index.d.ts b/dist/components/formats/index.d.ts deleted file mode 100644 index b5c81176..00000000 --- a/dist/components/formats/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from './format.component'; -export * from './mvt.component'; diff --git a/dist/components/formats/index.js b/dist/components/formats/index.js deleted file mode 100644 index 4db19e7f..00000000 --- a/dist/components/formats/index.js +++ /dev/null @@ -1,8 +0,0 @@ -"use strict"; -function __export(m) { - for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; -} -Object.defineProperty(exports, "__esModule", { value: true }); -__export(require("./format.component")); -__export(require("./mvt.component")); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/components/formats/index.js.map b/dist/components/formats/index.js.map deleted file mode 100644 index add5ce19..00000000 --- a/dist/components/formats/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../../../src/components/formats/index.ts"],"names":[],"mappings":";;;;;AAAA,wCAAmC;AACnC,qCAAgC","file":"index.js","sourceRoot":""} \ No newline at end of file diff --git a/dist/components/formats/index.metadata.json b/dist/components/formats/index.metadata.json deleted file mode 100644 index 6e9ecfcc..00000000 --- a/dist/components/formats/index.metadata.json +++ /dev/null @@ -1 +0,0 @@ -[{"__symbolic":"module","version":3,"metadata":{},"exports":[{"from":"./format.component"},{"from":"./mvt.component"}]},{"__symbolic":"module","version":1,"metadata":{},"exports":[{"from":"./format.component"},{"from":"./mvt.component"}]}] \ No newline at end of file diff --git a/dist/components/formats/mvt.component.d.ts b/dist/components/formats/mvt.component.d.ts deleted file mode 100644 index 901813a2..00000000 --- a/dist/components/formats/mvt.component.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -/// -import { format, geom } from 'openlayers'; -import { FormatComponent } from './format.component'; -export declare class FormatMVTComponent extends FormatComponent { - instance: format.MVT; - featureClass: (((geom: (geom.Geometry | { - [k: string]: any; - })) => any) | ((geom: geom.GeometryType, arg2: number[], arg3: (number[] | number[][]), arg4: { - [k: string]: any; - }) => any)); - geometryName: string; - layerName: string; - layers: string[]; - constructor(); -} diff --git a/dist/components/formats/mvt.component.js b/dist/components/formats/mvt.component.js deleted file mode 100644 index dce902b0..00000000 --- a/dist/components/formats/mvt.component.js +++ /dev/null @@ -1,43 +0,0 @@ -"use strict"; -var __extends = (this && this.__extends) || (function () { - var extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; - return function (d, b) { - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -Object.defineProperty(exports, "__esModule", { value: true }); -var core_1 = require("@angular/core"); -var openlayers_1 = require("openlayers"); -var format_component_1 = require("./format.component"); -var FormatMVTComponent = (function (_super) { - __extends(FormatMVTComponent, _super); - function FormatMVTComponent() { - var _this = _super.call(this) || this; - _this.instance = new openlayers_1.format.MVT(_this); - return _this; - } - return FormatMVTComponent; -}(format_component_1.FormatComponent)); -FormatMVTComponent.decorators = [ - { type: core_1.Component, args: [{ - selector: 'aol-format-mvt', - template: '', - providers: [ - { provide: format_component_1.FormatComponent, useExisting: core_1.forwardRef(function () { return FormatMVTComponent; }) } - ] - },] }, -]; -/** @nocollapse */ -FormatMVTComponent.ctorParameters = function () { return []; }; -FormatMVTComponent.propDecorators = { - 'featureClass': [{ type: core_1.Input },], - 'geometryName': [{ type: core_1.Input },], - 'layerName': [{ type: core_1.Input },], - 'layers': [{ type: core_1.Input },], -}; -exports.FormatMVTComponent = FormatMVTComponent; -//# sourceMappingURL=mvt.component.js.map \ No newline at end of file diff --git a/dist/components/formats/mvt.component.js.map b/dist/components/formats/mvt.component.js.map deleted file mode 100644 index 439c3c76..00000000 --- a/dist/components/formats/mvt.component.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../../../src/components/formats/mvt.component.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,sCAA6D;AAC7D,yCAA0C;AAC1C,uDAAqD;AAGrD;IAAwC,sCAAe;IASrD;QAAA,YACE,iBAAO,SAER;QADC,KAAI,CAAC,QAAQ,GAAG,IAAI,mBAAM,CAAC,GAAG,CAAC,KAAI,CAAC,CAAC;;IACvC,CAAC;IAmBH,yBAAC;AAAD,CA/BA,AA+BC,CA/BuC,kCAAe;AAahD,6BAAU,GAA0B;IAC3C,EAAE,IAAI,EAAE,gBAAS,EAAE,IAAI,EAAE,CAAC;gBACxB,QAAQ,EAAE,gBAAgB;gBAC1B,QAAQ,EAAE,EAAE;gBACZ,SAAS,EAAE;oBACT,EAAE,OAAO,EAAE,kCAAe,EAAE,WAAW,EAAE,iBAAU,CAAC,cAAM,OAAA,kBAAkB,EAAlB,CAAkB,CAAC,EAAE;iBAChF;aACF,EAAG,EAAE;CACL,CAAC;AACF,kBAAkB;AACX,iCAAc,GAAmE,cAAM,OAAA,EAC7F,EAD6F,CAC7F,CAAC;AACK,iCAAc,GAA2C;IAChE,cAAc,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IAClC,cAAc,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IAClC,WAAW,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IAC/B,QAAQ,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;CAC3B,CAAC;AA9BW,gDAAkB","file":"mvt.component.js","sourceRoot":""} \ No newline at end of file diff --git a/dist/components/formats/mvt.component.metadata.json b/dist/components/formats/mvt.component.metadata.json deleted file mode 100644 index 8dc9c72a..00000000 --- a/dist/components/formats/mvt.component.metadata.json +++ /dev/null @@ -1 +0,0 @@ -[{"__symbolic":"module","version":3,"metadata":{"FormatMVTComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"./format.component","name":"FormatComponent"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-format-mvt","template":"","providers":[{"provide":{"__symbolic":"reference","module":"./format.component","name":"FormatComponent"},"useExisting":{"__symbolic":"reference","name":"FormatMVTComponent"}}]}]}],"members":{"featureClass":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"geometryName":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"layerName":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"layers":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor"}]}}}},{"__symbolic":"module","version":1,"metadata":{"FormatMVTComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"./format.component","name":"FormatComponent"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-format-mvt","template":"","providers":[{"provide":{"__symbolic":"reference","module":"./format.component","name":"FormatComponent"},"useExisting":{"__symbolic":"reference","name":"FormatMVTComponent"}}]}]}],"members":{"featureClass":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"geometryName":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"layerName":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"layers":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor"}]}}}}] \ No newline at end of file diff --git a/dist/components/geometry.components.d.ts b/dist/components/geometry.components.d.ts deleted file mode 100644 index d2ee1ab2..00000000 --- a/dist/components/geometry.components.d.ts +++ /dev/null @@ -1,28 +0,0 @@ -/// -import { OnInit, OnDestroy } from '@angular/core'; -import { geom } from 'openlayers'; -import { FeatureComponent } from './feature.component'; -export declare class GeometryLinestringComponent implements OnInit, OnDestroy { - private host; - componentType: string; - instance: geom.LineString; - constructor(host: FeatureComponent); - ngOnInit(): void; - ngOnDestroy(): void; -} -export declare class GeometryPointComponent implements OnInit, OnDestroy { - private host; - componentType: string; - instance: geom.Point; - constructor(host: FeatureComponent); - ngOnInit(): void; - ngOnDestroy(): void; -} -export declare class GeometryPolygonComponent implements OnInit, OnDestroy { - private host; - componentType: string; - instance: geom.Polygon; - constructor(host: FeatureComponent); - ngOnInit(): void; - ngOnDestroy(): void; -} diff --git a/dist/components/geometry.components.js b/dist/components/geometry.components.js deleted file mode 100644 index 1df460ab..00000000 --- a/dist/components/geometry.components.js +++ /dev/null @@ -1,85 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -var core_1 = require("@angular/core"); -var openlayers_1 = require("openlayers"); -var feature_component_1 = require("./feature.component"); -var GeometryLinestringComponent = (function () { - function GeometryLinestringComponent(host) { - this.host = host; - this.componentType = 'geometry-linestring'; - // console.log('instancing aol-geometry-linestring'); - } - GeometryLinestringComponent.prototype.ngOnInit = function () { - this.instance = new openlayers_1.geom.LineString([]); - this.host.instance.setGeometry(this.instance); - }; - GeometryLinestringComponent.prototype.ngOnDestroy = function () { - // this.host.setGeometry(null); - }; - return GeometryLinestringComponent; -}()); -GeometryLinestringComponent.decorators = [ - { type: core_1.Component, args: [{ - selector: 'aol-geometry-linestring', - template: "" - },] }, -]; -/** @nocollapse */ -GeometryLinestringComponent.ctorParameters = function () { return [ - { type: feature_component_1.FeatureComponent, }, -]; }; -exports.GeometryLinestringComponent = GeometryLinestringComponent; -var GeometryPointComponent = (function () { - function GeometryPointComponent(host) { - this.host = host; - this.componentType = 'geometry-point'; - // console.log('creating aol-geometry-point'); - } - GeometryPointComponent.prototype.ngOnInit = function () { - this.instance = new openlayers_1.geom.Point([0, 0]); // defaulting coordinates to [0,0]. To be overridden in child component. - this.host.instance.setGeometry(this.instance); - }; - GeometryPointComponent.prototype.ngOnDestroy = function () { - // this.host.setGeometry(null); - }; - return GeometryPointComponent; -}()); -GeometryPointComponent.decorators = [ - { type: core_1.Component, args: [{ - selector: 'aol-geometry-point', - template: "" - },] }, -]; -/** @nocollapse */ -GeometryPointComponent.ctorParameters = function () { return [ - { type: feature_component_1.FeatureComponent, }, -]; }; -exports.GeometryPointComponent = GeometryPointComponent; -var GeometryPolygonComponent = (function () { - function GeometryPolygonComponent(host) { - this.host = host; - this.componentType = 'geometry-polygon'; - // console.log('creating aol-geometry-polygon'); - } - GeometryPolygonComponent.prototype.ngOnInit = function () { - // defaulting coordinates to [0,0]. To be overridden in child component. - this.instance = new openlayers_1.geom.Polygon([[[0, 0], [1, 0], [1, 1]]]); - this.host.instance.setGeometry(this.instance); - }; - GeometryPolygonComponent.prototype.ngOnDestroy = function () { - // this.host.setGeometry(null); - }; - return GeometryPolygonComponent; -}()); -GeometryPolygonComponent.decorators = [ - { type: core_1.Component, args: [{ - selector: 'aol-geometry-polygon', - template: "" - },] }, -]; -/** @nocollapse */ -GeometryPolygonComponent.ctorParameters = function () { return [ - { type: feature_component_1.FeatureComponent, }, -]; }; -exports.GeometryPolygonComponent = GeometryPolygonComponent; -//# sourceMappingURL=geometry.components.js.map \ No newline at end of file diff --git a/dist/components/geometry.components.js.map b/dist/components/geometry.components.js.map deleted file mode 100644 index ed1bb5d8..00000000 --- a/dist/components/geometry.components.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../../src/components/geometry.components.ts"],"names":[],"mappings":";;AAAA,sCAA6D;AAC7D,yCAAkC;AAClC,yDAAuD;AAGvD;IAIE,qCAAoB,IAAsB;QAAtB,SAAI,GAAJ,IAAI,CAAkB;QAHnC,kBAAa,GAAW,qBAAqB,CAAC;QAInD,qDAAqD;IACvD,CAAC;IAED,8CAAQ,GAAR;QACE,IAAI,CAAC,QAAQ,GAAG,IAAI,iBAAI,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC;QACxC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAChD,CAAC;IACD,iDAAW,GAAX;QACE,+BAA+B;IACjC,CAAC;IAWH,kCAAC;AAAD,CAzBA,AAyBC;AAVM,sCAAU,GAA0B;IAC3C,EAAE,IAAI,EAAE,gBAAS,EAAE,IAAI,EAAE,CAAC;gBACxB,QAAQ,EAAE,yBAAyB;gBACnC,QAAQ,EAAE,2BAA2B;aACtC,EAAG,EAAE;CACL,CAAC;AACF,kBAAkB;AACX,0CAAc,GAAmE,cAAM,OAAA;IAC9F,EAAC,IAAI,EAAE,oCAAgB,GAAG;CACzB,EAF6F,CAE7F,CAAC;AAxBW,kEAA2B;AA4BxC;IAIE,gCAAoB,IAAsB;QAAtB,SAAI,GAAJ,I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B;IAC3C,EAAE,IAAI,EAAE,gBAAS,EAAE,IAAI,EAAE,CAAC;gBACxB,QAAQ,EAAE,sBAAsB;gBAChC,QAAQ,EAAE,2BAA2B;aACtC,EAAG,EAAE;CACL,CAAC;AACF,kBAAkB;AACX,uCAAc,GAAmE,cAAM,OAAA;IAC9F,EAAC,IAAI,EAAE,oCAAgB,GAAG;CACzB,EAF6F,CAE7F,CAAC;AA1BW,4DAAwB","file":"geometry.components.js","sourceRoot":""} \ No newline at end of file diff --git a/dist/components/geometry.components.metadata.json b/dist/components/geometry.components.metadata.json deleted file mode 100644 index 3864cfb5..00000000 --- a/dist/components/geometry.components.metadata.json +++ /dev/null @@ -1 +0,0 @@ -[{"__symbolic":"module","version":3,"metadata":{"GeometryLinestringComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-geometry-linestring","template":""}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"./feature.component","name":"FeatureComponent"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}},"GeometryPointComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-geometry-point","template":""}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"./feature.component","name":"FeatureComponent"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}},"GeometryPolygonComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-geometry-polygon","template":""}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"./feature.component","name":"FeatureComponent"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"GeometryLinestringComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-geometry-linestring","template":""}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"./feature.component","name":"FeatureComponent"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}},"GeometryPointComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-geometry-point","template":""}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"./feature.component","name":"FeatureComponent"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}},"GeometryPolygonComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-geometry-polygon","template":""}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"./feature.component","name":"FeatureComponent"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}}}}] \ No newline at end of file diff --git a/dist/components/index.d.ts b/dist/components/index.d.ts deleted file mode 100644 index 945f3949..00000000 --- a/dist/components/index.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -export * from './controls'; -export * from './formats'; -export * from './interactions'; -export * from './layers'; -export * from './sources'; -export * from './styles'; -export * from './attribution.component'; -export * from './attributions.component'; -export * from './content.component'; -export * from './coordinate.component'; -export * from './feature.component'; -export * from './geometry.components'; -export * from './graticule.component'; -export * from './map.component'; -export * from './overlay.component'; -export * from './tilegrid.component'; -export * from './tilegridwmts.component'; -export * from './view.component'; diff --git a/dist/components/index.js b/dist/components/index.js deleted file mode 100644 index 205dddc2..00000000 --- a/dist/components/index.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; -function __export(m) { - for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; -} -Object.defineProperty(exports, "__esModule", { value: true }); -__export(require("./controls")); -__export(require("./formats")); -__export(require("./interactions")); -__export(require("./layers")); -__export(require("./sources")); -__export(require("./styles")); -__export(require("./attribution.component")); -__export(require("./attributions.component")); -__export(require("./content.component")); -__export(require("./coordinate.component")); -__export(require("./feature.component")); -__export(require("./geometry.components")); -__export(require("./graticule.component")); -__export(require("./map.component")); -__export(require("./overlay.component")); -__export(require("./tilegrid.component")); -__export(require("./tilegridwmts.component")); -__export(require("./view.component")); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/components/index.js.map b/dist/components/index.js.map deleted file mode 100644 index 90224ce1..00000000 --- a/dist/components/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../../src/components/index.ts"],"names":[],"mappings":";;;;;AAAA,gCAA2B;AAC3B,+BAA0B;AAC1B,oCAA+B;AAC/B,8BAAyB;AACzB,+BAA0B;AAC1B,8BAAyB;AAEzB,6CAAwC;AACxC,8CAAyC;AACzC,yCAAoC;AACpC,4CAAuC;AACvC,yCAAoC;AACpC,2CAAsC;AACtC,2CAAsC;AACtC,qCAAgC;AAChC,yCAAoC;AACpC,0CAAqC;AACrC,8CAAyC;AACzC,sCAAiC","file":"index.js","sourceRoot":""} \ No newline at end of file diff --git a/dist/components/index.metadata.json b/dist/components/index.metadata.json deleted file mode 100644 index f4ba3d16..00000000 --- a/dist/components/index.metadata.json +++ /dev/null @@ -1 +0,0 @@ -[{"__symbolic":"module","version":3,"metadata":{},"exports":[{"from":"./controls"},{"from":"./formats"},{"from":"./interactions"},{"from":"./layers"},{"from":"./sources"},{"from":"./styles"},{"from":"./attribution.component"},{"from":"./attributions.component"},{"from":"./content.component"},{"from":"./coordinate.component"},{"from":"./feature.component"},{"from":"./geometry.components"},{"from":"./graticule.component"},{"from":"./map.component"},{"from":"./overlay.component"},{"from":"./tilegrid.component"},{"from":"./tilegridwmts.component"},{"from":"./view.component"}]},{"__symbolic":"module","version":1,"metadata":{},"exports":[{"from":"./controls"},{"from":"./formats"},{"from":"./interactions"},{"from":"./layers"},{"from":"./sources"},{"from":"./styles"},{"from":"./attribution.component"},{"from":"./attributions.component"},{"from":"./content.component"},{"from":"./coordinate.component"},{"from":"./feature.component"},{"from":"./geometry.components"},{"from":"./graticule.component"},{"from":"./map.component"},{"from":"./overlay.component"},{"from":"./tilegrid.component"},{"from":"./tilegridwmts.component"},{"from":"./view.component"}]}] \ No newline at end of file diff --git a/dist/components/interactions/default.component.d.ts b/dist/components/interactions/default.component.d.ts deleted file mode 100644 index 48c6a166..00000000 --- a/dist/components/interactions/default.component.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -/// -import { OnDestroy, OnInit } from '@angular/core'; -import { interaction, Collection } from 'openlayers'; -import { MapComponent } from '../map.component'; -export declare class DefaultInteractionComponent implements OnInit, OnDestroy { - private map; - instance: Collection; - constructor(map: MapComponent); - ngOnInit(): void; - ngOnDestroy(): void; -} diff --git a/dist/components/interactions/default.component.js b/dist/components/interactions/default.component.js deleted file mode 100644 index a693d745..00000000 --- a/dist/components/interactions/default.component.js +++ /dev/null @@ -1,32 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -var core_1 = require("@angular/core"); -var openlayers_1 = require("openlayers"); -var map_component_1 = require("../map.component"); -var DefaultInteractionComponent = (function () { - function DefaultInteractionComponent(map) { - this.map = map; - } - DefaultInteractionComponent.prototype.ngOnInit = function () { - var _this = this; - this.instance = openlayers_1.interaction.defaults(); - this.instance.forEach(function (interaction) { return _this.map.instance.addInteraction(interaction); }); - }; - DefaultInteractionComponent.prototype.ngOnDestroy = function () { - var _this = this; - this.instance.forEach(function (interaction) { return _this.map.instance.removeInteraction(interaction); }); - }; - return DefaultInteractionComponent; -}()); -DefaultInteractionComponent.decorators = [ - { type: core_1.Component, args: [{ - selector: 'aol-interaction-default', - template: '' - },] }, -]; -/** @nocollapse */ -DefaultInteractionComponent.ctorParameters = function () { return [ - { type: map_component_1.MapComponent, }, -]; }; -exports.DefaultInteractionComponent = DefaultInteractionComponent; -//# sourceMappingURL=default.component.js.map \ No newline at end of file diff --git a/dist/components/interactions/default.component.js.map b/dist/components/interactions/default.component.js.map deleted file mode 100644 index cb0bce77..00000000 --- a/dist/components/interactions/default.component.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../../../src/components/interactions/default.component.ts"],"names":[],"mappings":";;AAAA,sCAA6D;AAC7D,yCAAqD;AACrD,kDAAgD;AAGhD;IAGE,qCAAoB,GAAiB;QAAjB,QAAG,GAAH,GAAG,CAAc;IACrC,CAAC;IAED,8CAAQ,GAAR;QAAA,iBAGC;QAFC,IAAI,CAAC,QAAQ,GAAG,wBAAW,CAAC,QAAQ,EAAE,CAAC;QACvC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,UAAC,WAAW,IAAK,OAAA,KAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,cAAc,CAAC,WAAW,CAAC,EAA7C,CAA6C,CAAC,CAAC;IACxF,CAAC;IAED,iDAAW,GAAX;QAAA,iBAEC;QADC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,UAAC,WAAW,IAAK,OAAA,KAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,iBAAiB,CAAC,WAAW,CAAC,EAAhD,CAAgD,CAAC,CAAC;IAC3F,CAAC;IAWH,kCAAC;AAAD,CAxBA,AAwBC;AAVM,sCAAU,GAA0B;IAC3C,EAAE,IAAI,EAAE,gBAAS,EAAE,IAAI,EAAE,CAAC;gBACxB,QAAQ,EAAE,yBAAyB;gBACnC,QAAQ,EAAE,EAAE;aACb,EAAG,EAAE;CACL,CAAC;AACF,kBAAkB;AACX,0CAAc,GAAmE,cAAM,OAAA;IAC9F,EAAC,IAAI,EAAE,4BAAY,GAAG;CACrB,EAF6F,CAE7F,CAAC;AAvBW,kEAA2B","file":"default.component.js","sourceRoot":""} \ No newline at end of file diff --git a/dist/components/interactions/default.component.metadata.json b/dist/components/interactions/default.component.metadata.json deleted file mode 100644 index cfa94414..00000000 --- a/dist/components/interactions/default.component.metadata.json +++ /dev/null @@ -1 +0,0 @@ -[{"__symbolic":"module","version":3,"metadata":{"DefaultInteractionComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-interaction-default","template":""}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"../map.component","name":"MapComponent"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"DefaultInteractionComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-interaction-default","template":""}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"../map.component","name":"MapComponent"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}}}}] \ No newline at end of file diff --git a/dist/components/interactions/doubleclickzoom.component.d.ts b/dist/components/interactions/doubleclickzoom.component.d.ts deleted file mode 100644 index e5809081..00000000 --- a/dist/components/interactions/doubleclickzoom.component.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -/// -import { OnDestroy, OnInit } from '@angular/core'; -import { interaction } from 'openlayers'; -import { MapComponent } from '../map.component'; -export declare class DoubleClickZoomInteractionComponent implements OnInit, OnDestroy { - private map; - instance: interaction.DoubleClickZoom; - duration: number; - delta: number; - constructor(map: MapComponent); - ngOnInit(): void; - ngOnDestroy(): void; -} diff --git a/dist/components/interactions/doubleclickzoom.component.js b/dist/components/interactions/doubleclickzoom.component.js deleted file mode 100644 index d9debc40..00000000 --- a/dist/components/interactions/doubleclickzoom.component.js +++ /dev/null @@ -1,34 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -var core_1 = require("@angular/core"); -var openlayers_1 = require("openlayers"); -var map_component_1 = require("../map.component"); -var DoubleClickZoomInteractionComponent = (function () { - function DoubleClickZoomInteractionComponent(map) { - this.map = map; - } - DoubleClickZoomInteractionComponent.prototype.ngOnInit = function () { - this.instance = new openlayers_1.interaction.DoubleClickZoom(this); - this.map.instance.addInteraction(this.instance); - }; - DoubleClickZoomInteractionComponent.prototype.ngOnDestroy = function () { - this.map.instance.removeInteraction(this.instance); - }; - return DoubleClickZoomInteractionComponent; -}()); -DoubleClickZoomInteractionComponent.decorators = [ - { type: core_1.Component, args: [{ - selector: 'aol-interaction-doubleclickzoom', - template: '' - },] }, -]; -/** @nocollapse */ -DoubleClickZoomInteractionComponent.ctorParameters = function () { return [ - { type: map_component_1.MapComponent, }, -]; }; -DoubleClickZoomInteractionComponent.propDecorators = { - 'duration': [{ type: core_1.Input },], - 'delta': [{ type: core_1.Input },], -}; -exports.DoubleClickZoomInteractionComponent = DoubleClickZoomInteractionComponent; -//# sourceMappingURL=doubleclickzoom.component.js.map \ No newline at end of file diff --git a/dist/components/interactions/doubleclickzoom.component.js.map b/dist/components/interactions/doubleclickzoom.component.js.map deleted file mode 100644 index b1bca0c7..00000000 --- a/dist/components/interactions/doubleclickzoom.component.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../../../src/components/interactions/doubleclickzoom.component.ts"],"names":[],"mappings":";;AAAA,sCAAoE;AACpE,yCAAyC;AACzC,kDAAgD;AAGhD;IAME,6CAAoB,GAAiB;QAAjB,QAAG,GAAH,GAAG,CAAc;IACrC,CAAC;IAED,sDAAQ,GAAR;QACE,IAAI,CAAC,QAAQ,GAAG,IAAI,wBAAW,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;QACtD,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,cAAc,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAClD,CAAC;IAED,yDAAW,GAAX;QACE,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,iBAAiB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACrD,CAAC;IAeH,0CAAC;AAAD,CA/BA,AA+BC;AAdM,8CAAU,GAA0B;IAC3C,EAAE,IAAI,EAAE,gBAAS,EAAE,IAAI,EAAE,CAAC;gBACxB,QAAQ,EAAE,iCAAiC;gBAC3C,QAAQ,EAAE,EAAE;aACb,EAAG,EAAE;CACL,CAAC;AACF,kBAAkB;AACX,kDAAc,GAAmE,cAAM,OAAA;IAC9F,EAAC,IAAI,EAAE,4BAAY,GAAG;CACrB,EAF6F,CAE7F,CAAC;AACK,kDAAc,GAA2C;IAChE,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IAC9B,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;CAC1B,CAAC;AA9BW,kFAAmC","file":"doubleclickzoom.component.js","sourceRoot":""} \ No newline at end of file diff --git a/dist/components/interactions/doubleclickzoom.component.metadata.json b/dist/components/interactions/doubleclickzoom.component.metadata.json deleted file mode 100644 index 43089ebd..00000000 --- a/dist/components/interactions/doubleclickzoom.component.metadata.json +++ /dev/null @@ -1 +0,0 @@ -[{"__symbolic":"module","version":3,"metadata":{"DoubleClickZoomInteractionComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-interaction-doubleclickzoom","template":""}]}],"members":{"duration":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"delta":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"../map.component","name":"MapComponent"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"DoubleClickZoomInteractionComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-interaction-doubleclickzoom","template":""}]}],"members":{"duration":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"delta":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"../map.component","name":"MapComponent"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}}}}] \ No newline at end of file diff --git a/dist/components/interactions/draganddrop.component.d.ts b/dist/components/interactions/draganddrop.component.d.ts deleted file mode 100644 index 63ef089d..00000000 --- a/dist/components/interactions/draganddrop.component.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -/// -import { OnDestroy, OnInit } from '@angular/core'; -import { interaction, format, ProjectionLike } from 'openlayers'; -import { MapComponent } from '../map.component'; -export declare class DragAndDropInteractionComponent implements OnInit, OnDestroy { - private map; - instance: interaction.DragAndDrop; - formatConstructors: ((n: format.Feature) => any)[]; - projection: ProjectionLike; - target: Element; - constructor(map: MapComponent); - ngOnInit(): void; - ngOnDestroy(): void; -} diff --git a/dist/components/interactions/draganddrop.component.js b/dist/components/interactions/draganddrop.component.js deleted file mode 100644 index 1c6b8eb2..00000000 --- a/dist/components/interactions/draganddrop.component.js +++ /dev/null @@ -1,35 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -var core_1 = require("@angular/core"); -var openlayers_1 = require("openlayers"); -var map_component_1 = require("../map.component"); -var DragAndDropInteractionComponent = (function () { - function DragAndDropInteractionComponent(map) { - this.map = map; - } - DragAndDropInteractionComponent.prototype.ngOnInit = function () { - this.instance = new openlayers_1.interaction.DragAndDrop(this); - this.map.instance.addInteraction(this.instance); - }; - DragAndDropInteractionComponent.prototype.ngOnDestroy = function () { - this.map.instance.removeInteraction(this.instance); - }; - return DragAndDropInteractionComponent; -}()); -DragAndDropInteractionComponent.decorators = [ - { type: core_1.Component, args: [{ - selector: 'aol-interaction-draganddrop', - template: '' - },] }, -]; -/** @nocollapse */ -DragAndDropInteractionComponent.ctorParameters = function () { return [ - { type: map_component_1.MapComponent, }, -]; }; -DragAndDropInteractionComponent.propDecorators = { - 'formatConstructors': [{ type: core_1.Input },], - 'projection': [{ type: core_1.Input },], - 'target': [{ type: core_1.Input },], -}; -exports.DragAndDropInteractionComponent = DragAndDropInteractionComponent; -//# sourceMappingURL=draganddrop.component.js.map \ No newline at end of file diff --git a/dist/components/interactions/draganddrop.component.js.map b/dist/components/interactions/draganddrop.component.js.map deleted file mode 100644 index 511e28b6..00000000 --- a/dist/components/interactions/draganddrop.component.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../../../src/components/interactions/draganddrop.component.ts"],"names":[],"mappings":";;AAAA,sCAAoE;AACpE,yCAAiE;AACjE,kDAAgD;AAGhD;IAOE,yCAAoB,GAAiB;QAAjB,QAAG,GAAH,GAAG,CAAc;IACrC,CAAC;IAED,kDAAQ,GAAR;QACE,IAAI,CAAC,QAAQ,GAAG,IAAI,wBAAW,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;QAClD,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,cAAc,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAClD,CAAC;IAED,qDAAW,GAAX;QACE,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,iBAAiB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACrD,CAAC;IAgBH,sCAAC;AAAD,CAjCA,AAiCC;AAfM,0CAAU,GAA0B;IAC3C,EAAE,IAAI,EAAE,gBAAS,EAAE,IAAI,EAAE,CAAC;gBACxB,QAAQ,EAAE,6BAA6B;gBACvC,QAAQ,EAAE,EAAE;aACb,EAAG,EAAE;CACL,CAAC;AACF,kBAAkB;AACX,8CAAc,GAAmE,cAAM,OAAA;IAC9F,EAAC,IAAI,EAAE,4BAAY,GAAG;CACrB,EAF6F,CAE7F,CAAC;AACK,8CAAc,GAA2C;IAChE,oBAAoB,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IACxC,YAAY,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IAChC,QAAQ,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;CAC3B,CAAC;AAhCW,0EAA+B","file":"draganddrop.component.js","sourceRoot":""} \ No newline at end of file diff --git a/dist/components/interactions/draganddrop.component.metadata.json b/dist/components/interactions/draganddrop.component.metadata.json deleted file mode 100644 index 95715bdb..00000000 --- a/dist/components/interactions/draganddrop.component.metadata.json +++ /dev/null @@ -1 +0,0 @@ -[{"__symbolic":"module","version":3,"metadata":{"DragAndDropInteractionComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-interaction-draganddrop","template":""}]}],"members":{"formatConstructors":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"projection":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"target":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"../map.component","name":"MapComponent"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"DragAndDropInteractionComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-interaction-draganddrop","template":""}]}],"members":{"formatConstructors":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"projection":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"target":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"../map.component","name":"MapComponent"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}}}}] \ No newline at end of file diff --git a/dist/components/interactions/dragbox.component.d.ts b/dist/components/interactions/dragbox.component.d.ts deleted file mode 100644 index 10e95e87..00000000 --- a/dist/components/interactions/dragbox.component.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -/// -import { OnDestroy, OnInit } from '@angular/core'; -import { interaction, EventsConditionType, DragBoxEndConditionType } from 'openlayers'; -import { MapComponent } from '../map.component'; -export declare class DragBoxInteractionComponent implements OnInit, OnDestroy { - private map; - instance: interaction.DragBox; - className: string; - condition: EventsConditionType; - boxEndCondition: DragBoxEndConditionType; - constructor(map: MapComponent); - ngOnInit(): void; - ngOnDestroy(): void; -} diff --git a/dist/components/interactions/dragbox.component.js b/dist/components/interactions/dragbox.component.js deleted file mode 100644 index e493a5c8..00000000 --- a/dist/components/interactions/dragbox.component.js +++ /dev/null @@ -1,35 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -var core_1 = require("@angular/core"); -var openlayers_1 = require("openlayers"); -var map_component_1 = require("../map.component"); -var DragBoxInteractionComponent = (function () { - function DragBoxInteractionComponent(map) { - this.map = map; - } - DragBoxInteractionComponent.prototype.ngOnInit = function () { - this.instance = new openlayers_1.interaction.DragBox(this); - this.map.instance.addInteraction(this.instance); - }; - DragBoxInteractionComponent.prototype.ngOnDestroy = function () { - this.map.instance.removeInteraction(this.instance); - }; - return DragBoxInteractionComponent; -}()); -DragBoxInteractionComponent.decorators = [ - { type: core_1.Component, args: [{ - selector: 'aol-interaction-dragbox', - template: '' - },] }, -]; -/** @nocollapse */ -DragBoxInteractionComponent.ctorParameters = function () { return [ - { type: map_component_1.MapComponent, }, -]; }; -DragBoxInteractionComponent.propDecorators = { - 'className': [{ type: core_1.Input },], - 'condition': [{ type: core_1.Input },], - 'boxEndCondition': [{ type: core_1.Input },], -}; -exports.DragBoxInteractionComponent = DragBoxInteractionComponent; -//# sourceMappingURL=dragbox.component.js.map \ No newline at end of file diff --git a/dist/components/interactions/dragbox.component.js.map b/dist/components/interactions/dragbox.component.js.map deleted file mode 100644 index 6f77626e..00000000 --- a/dist/components/interactions/dragbox.component.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../../../src/components/interactions/dragbox.component.ts"],"names":[],"mappings":";;AAAA,sCAAoE;AACpE,yCAAuF;AACvF,kDAAgD;AAGhD;IAOE,qCAAoB,GAAiB;QAAjB,QAAG,GAAH,GAAG,CAAc;IACrC,CAAC;IAED,8CAAQ,GAAR;QACE,IAAI,CAAC,QAAQ,GAAG,IAAI,wBAAW,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAC9C,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,cAAc,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAClD,CAAC;IAED,iDAAW,GAAX;QACE,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,iBAAiB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACrD,CAAC;IAgBH,kCAAC;AAAD,CAjCA,AAiCC;AAfM,sCAAU,GAA0B;IAC3C,EAAE,IAAI,EAAE,gBAAS,EAAE,IAAI,EAAE,CAAC;gBACxB,QAAQ,EAAE,yBAAyB;gBACnC,QAAQ,EAAE,EAAE;aACb,EAAG,EAAE;CACL,CAAC;AACF,kBAAkB;AACX,0CAAc,GAAmE,cAAM,OAAA;IAC9F,EAAC,IAAI,EAAE,4BAAY,GAAG;CACrB,EAF6F,CAE7F,CAAC;AACK,0CAAc,GAA2C;IAChE,WAAW,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IAC/B,WAAW,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IAC/B,iBAAiB,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;CACpC,CAAC;AAhCW,kEAA2B","file":"dragbox.component.js","sourceRoot":""} \ No newline at end of file diff --git a/dist/components/interactions/dragbox.component.metadata.json b/dist/components/interactions/dragbox.component.metadata.json deleted file mode 100644 index b03067d8..00000000 --- a/dist/components/interactions/dragbox.component.metadata.json +++ /dev/null @@ -1 +0,0 @@ -[{"__symbolic":"module","version":3,"metadata":{"DragBoxInteractionComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-interaction-dragbox","template":""}]}],"members":{"className":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"condition":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"boxEndCondition":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"../map.component","name":"MapComponent"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"DragBoxInteractionComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-interaction-dragbox","template":""}]}],"members":{"className":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"condition":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"boxEndCondition":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"../map.component","name":"MapComponent"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}}}}] \ No newline at end of file diff --git a/dist/components/interactions/dragpan.component.d.ts b/dist/components/interactions/dragpan.component.d.ts deleted file mode 100644 index 87669e0f..00000000 --- a/dist/components/interactions/dragpan.component.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -/// -import { OnDestroy, OnInit } from '@angular/core'; -import { interaction, EventsConditionType, Kinetic } from 'openlayers'; -import { MapComponent } from '../map.component'; -export declare class DragPanInteractionComponent implements OnInit, OnDestroy { - private map; - instance: interaction.DragPan; - condition: EventsConditionType; - kinetic: Kinetic; - constructor(map: MapComponent); - ngOnInit(): void; - ngOnDestroy(): void; -} diff --git a/dist/components/interactions/dragpan.component.js b/dist/components/interactions/dragpan.component.js deleted file mode 100644 index edecaf57..00000000 --- a/dist/components/interactions/dragpan.component.js +++ /dev/null @@ -1,34 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -var core_1 = require("@angular/core"); -var openlayers_1 = require("openlayers"); -var map_component_1 = require("../map.component"); -var DragPanInteractionComponent = (function () { - function DragPanInteractionComponent(map) { - this.map = map; - } - DragPanInteractionComponent.prototype.ngOnInit = function () { - this.instance = new openlayers_1.interaction.DragPan(this); - this.map.instance.addInteraction(this.instance); - }; - DragPanInteractionComponent.prototype.ngOnDestroy = function () { - this.map.instance.removeInteraction(this.instance); - }; - return DragPanInteractionComponent; -}()); -DragPanInteractionComponent.decorators = [ - { type: core_1.Component, args: [{ - selector: 'aol-interaction-dragpan', - template: '' - },] }, -]; -/** @nocollapse */ -DragPanInteractionComponent.ctorParameters = function () { return [ - { type: map_component_1.MapComponent, }, -]; }; -DragPanInteractionComponent.propDecorators = { - 'condition': [{ type: core_1.Input },], - 'kinetic': [{ type: core_1.Input },], -}; -exports.DragPanInteractionComponent = DragPanInteractionComponent; -//# sourceMappingURL=dragpan.component.js.map \ No newline at end of file diff --git a/dist/components/interactions/dragpan.component.js.map b/dist/components/interactions/dragpan.component.js.map deleted file mode 100644 index 6f808227..00000000 --- a/dist/components/interactions/dragpan.component.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../../../src/components/interactions/dragpan.component.ts"],"names":[],"mappings":";;AAAA,sCAAoE;AACpE,yCAAuE;AACvE,kDAAgD;AAGhD;IAME,qCAAoB,GAAiB;QAAjB,QAAG,GAAH,GAAG,CAAc;IACrC,CAAC;IAED,8CAAQ,GAAR;QACE,IAAI,CAAC,QAAQ,GAAG,IAAI,wBAAW,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAC9C,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,cAAc,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAClD,CAAC;IAED,iDAAW,GAAX;QACE,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,iBAAiB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACrD,CAAC;IAeH,kCAAC;AAAD,CA/BA,AA+BC;AAdM,sCAAU,GAA0B;IAC3C,EAAE,IAAI,EAAE,gBAAS,EAAE,IAAI,EAAE,CAAC;gBACxB,QAAQ,EAAE,yBAAyB;gBACnC,QAAQ,EAAE,EAAE;aACb,EAAG,EAAE;CACL,CAAC;AACF,kBAAkB;AACX,0CAAc,GAAmE,cAAM,OAAA;IAC9F,EAAC,IAAI,EAAE,4BAAY,GAAG;CACrB,EAF6F,CAE7F,CAAC;AACK,0CAAc,GAA2C;IAChE,WAAW,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IAC/B,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;CAC5B,CAAC;AA9BW,kEAA2B","file":"dragpan.component.js","sourceRoot":""} \ No newline at end of file diff --git a/dist/components/interactions/dragpan.component.metadata.json b/dist/components/interactions/dragpan.component.metadata.json deleted file mode 100644 index 4751349c..00000000 --- a/dist/components/interactions/dragpan.component.metadata.json +++ /dev/null @@ -1 +0,0 @@ -[{"__symbolic":"module","version":3,"metadata":{"DragPanInteractionComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-interaction-dragpan","template":""}]}],"members":{"condition":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"kinetic":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"../map.component","name":"MapComponent"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"DragPanInteractionComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-interaction-dragpan","template":""}]}],"members":{"condition":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"kinetic":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"../map.component","name":"MapComponent"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}}}}] \ No newline at end of file diff --git a/dist/components/interactions/dragrotate.component.d.ts b/dist/components/interactions/dragrotate.component.d.ts deleted file mode 100644 index 9b0ee5ad..00000000 --- a/dist/components/interactions/dragrotate.component.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -/// -import { OnDestroy, OnInit } from '@angular/core'; -import { interaction, EventsConditionType } from 'openlayers'; -import { MapComponent } from '../map.component'; -export declare class DragRotateInteractionComponent implements OnInit, OnDestroy { - private map; - instance: interaction.DragRotate; - condition: EventsConditionType; - duration: number; - constructor(map: MapComponent); - ngOnInit(): void; - ngOnDestroy(): void; -} diff --git a/dist/components/interactions/dragrotate.component.js b/dist/components/interactions/dragrotate.component.js deleted file mode 100644 index bb92de14..00000000 --- a/dist/components/interactions/dragrotate.component.js +++ /dev/null @@ -1,34 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -var core_1 = require("@angular/core"); -var openlayers_1 = require("openlayers"); -var map_component_1 = require("../map.component"); -var DragRotateInteractionComponent = (function () { - function DragRotateInteractionComponent(map) { - this.map = map; - } - DragRotateInteractionComponent.prototype.ngOnInit = function () { - this.instance = new openlayers_1.interaction.DragRotate(this); - this.map.instance.addInteraction(this.instance); - }; - DragRotateInteractionComponent.prototype.ngOnDestroy = function () { - this.map.instance.removeInteraction(this.instance); - }; - return DragRotateInteractionComponent; -}()); -DragRotateInteractionComponent.decorators = [ - { type: core_1.Component, args: [{ - selector: 'aol-interaction-dragrotate', - template: '' - },] }, -]; -/** @nocollapse */ -DragRotateInteractionComponent.ctorParameters = function () { return [ - { type: map_component_1.MapComponent, }, -]; }; -DragRotateInteractionComponent.propDecorators = { - 'condition': [{ type: core_1.Input },], - 'duration': [{ type: core_1.Input },], -}; -exports.DragRotateInteractionComponent = DragRotateInteractionComponent; -//# sourceMappingURL=dragrotate.component.js.map \ No newline at end of file diff --git a/dist/components/interactions/dragrotate.component.js.map b/dist/components/interactions/dragrotate.component.js.map deleted file mode 100644 index a3a88f80..00000000 --- a/dist/components/interactions/dragrotate.component.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../../../src/components/interactions/dragrotate.component.ts"],"names":[],"mappings":";;AAAA,sCAAoE;AACpE,yCAA8D;AAC9D,kDAAgD;AAGhD;IAME,wCAAoB,GAAiB;QAAjB,QAAG,GAAH,GAAG,CAAc;IACrC,CAAC;IAED,iDAAQ,GAAR;QACE,IAAI,CAAC,QAAQ,GAAG,IAAI,wBAAW,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;QACjD,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,cAAc,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAClD,CAAC;IAED,oDAAW,GAAX;QACE,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,iBAAiB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACrD,CAAC;IAeH,qCAAC;AAAD,CA/BA,AA+BC;AAdM,yCAAU,GAA0B;IAC3C,EAAE,IAAI,EAAE,gBAAS,EAAE,IAAI,EAAE,CAAC;gBACxB,QAAQ,EAAE,4BAA4B;gBACtC,QAAQ,EAAE,EAAE;aACb,EAAG,EAAE;CACL,CAAC;AACF,kBAAkB;AACX,6CAAc,GAAmE,cAAM,OAAA;IAC9F,EAAC,IAAI,EAAE,4BAAY,GAAG;CACrB,EAF6F,CAE7F,CAAC;AACK,6CAAc,GAA2C;IAChE,WAAW,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IAC/B,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;CAC7B,CAAC;AA9BW,wEAA8B","file":"dragrotate.component.js","sourceRoot":""} \ No newline at end of file diff --git a/dist/components/interactions/dragrotate.component.metadata.json b/dist/components/interactions/dragrotate.component.metadata.json deleted file mode 100644 index c695515b..00000000 --- a/dist/components/interactions/dragrotate.component.metadata.json +++ /dev/null @@ -1 +0,0 @@ -[{"__symbolic":"module","version":3,"metadata":{"DragRotateInteractionComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-interaction-dragrotate","template":""}]}],"members":{"condition":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"duration":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"../map.component","name":"MapComponent"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"DragRotateInteractionComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-interaction-dragrotate","template":""}]}],"members":{"condition":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"duration":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"../map.component","name":"MapComponent"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}}}}] \ No newline at end of file diff --git a/dist/components/interactions/dragrotateandzoom.component.d.ts b/dist/components/interactions/dragrotateandzoom.component.d.ts deleted file mode 100644 index 3a4e9a2f..00000000 --- a/dist/components/interactions/dragrotateandzoom.component.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -/// -import { OnDestroy, OnInit } from '@angular/core'; -import { interaction, EventsConditionType } from 'openlayers'; -import { MapComponent } from '../map.component'; -export declare class DragRotateAndZoomInteractionComponent implements OnInit, OnDestroy { - private map; - instance: interaction.DragRotate; - condition: EventsConditionType; - duration: number; - constructor(map: MapComponent); - ngOnInit(): void; - ngOnDestroy(): void; -} diff --git a/dist/components/interactions/dragrotateandzoom.component.js b/dist/components/interactions/dragrotateandzoom.component.js deleted file mode 100644 index 678ad1e7..00000000 --- a/dist/components/interactions/dragrotateandzoom.component.js +++ /dev/null @@ -1,34 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -var core_1 = require("@angular/core"); -var openlayers_1 = require("openlayers"); -var map_component_1 = require("../map.component"); -var DragRotateAndZoomInteractionComponent = (function () { - function DragRotateAndZoomInteractionComponent(map) { - this.map = map; - } - DragRotateAndZoomInteractionComponent.prototype.ngOnInit = function () { - this.instance = new openlayers_1.interaction.DragRotateAndZoom(this); - this.map.instance.addInteraction(this.instance); - }; - DragRotateAndZoomInteractionComponent.prototype.ngOnDestroy = function () { - this.map.instance.removeInteraction(this.instance); - }; - return DragRotateAndZoomInteractionComponent; -}()); -DragRotateAndZoomInteractionComponent.decorators = [ - { type: core_1.Component, args: [{ - selector: 'aol-interaction-dragrotateandzoom', - template: '' - },] }, -]; -/** @nocollapse */ -DragRotateAndZoomInteractionComponent.ctorParameters = function () { return [ - { type: map_component_1.MapComponent, }, -]; }; -DragRotateAndZoomInteractionComponent.propDecorators = { - 'condition': [{ type: core_1.Input },], - 'duration': [{ type: core_1.Input },], -}; -exports.DragRotateAndZoomInteractionComponent = DragRotateAndZoomInteractionComponent; -//# sourceMappingURL=dragrotateandzoom.component.js.map \ No newline at end of file diff --git a/dist/components/interactions/dragrotateandzoom.component.js.map b/dist/components/interactions/dragrotateandzoom.component.js.map deleted file mode 100644 index d1334b65..00000000 --- a/dist/components/interactions/dragrotateandzoom.component.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../../../src/components/interactions/dragrotateandzoom.component.ts"],"names":[],"mappings":";;AAAA,sCAAoE;AACpE,yCAA8D;AAC9D,kDAAgD;AAGhD;IAME,+CAAoB,GAAiB;QAAjB,QAAG,GAAH,GAAG,CAAc;IACrC,CAAC;IAED,wDAAQ,GAAR;QACE,IAAI,CAAC,QAAQ,GAAG,IAAI,wBAAW,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC;QACxD,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,cAAc,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAClD,CAAC;IAED,2DAAW,GAAX;QACE,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,iBAAiB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACrD,CAAC;IAeH,4CAAC;AAAD,CA/BA,AA+BC;AAdM,gDAAU,GAA0B;IAC3C,EAAE,IAAI,EAAE,gBAAS,EAAE,IAAI,EAAE,CAAC;gBACxB,QAAQ,EAAE,mCAAmC;gBAC7C,QAAQ,EAAE,EAAE;aACb,EAAG,EAAE;CACL,CAAC;AACF,kBAAkB;AACX,oDAAc,GAAmE,cAAM,OAAA;IAC9F,EAAC,IAAI,EAAE,4BAAY,GAAG;CACrB,EAF6F,CAE7F,CAAC;AACK,oDAAc,GAA2C;IAChE,WAAW,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IAC/B,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;CAC7B,CAAC;AA9BW,sFAAqC","file":"dragrotateandzoom.component.js","sourceRoot":""} \ No newline at end of file diff --git a/dist/components/interactions/dragrotateandzoom.component.metadata.json b/dist/components/interactions/dragrotateandzoom.component.metadata.json deleted file mode 100644 index 9a601ca8..00000000 --- a/dist/components/interactions/dragrotateandzoom.component.metadata.json +++ /dev/null @@ -1 +0,0 @@ -[{"__symbolic":"module","version":3,"metadata":{"DragRotateAndZoomInteractionComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-interaction-dragrotateandzoom","template":""}]}],"members":{"condition":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"duration":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"../map.component","name":"MapComponent"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"DragRotateAndZoomInteractionComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-interaction-dragrotateandzoom","template":""}]}],"members":{"condition":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"duration":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"../map.component","name":"MapComponent"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}}}}] \ No newline at end of file diff --git a/dist/components/interactions/dragzoom.component.d.ts b/dist/components/interactions/dragzoom.component.d.ts deleted file mode 100644 index 36fb7d9c..00000000 --- a/dist/components/interactions/dragzoom.component.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -/// -import { OnDestroy, OnInit } from '@angular/core'; -import { interaction, EventsConditionType } from 'openlayers'; -import { MapComponent } from '../map.component'; -export declare class DragZoomInteractionComponent implements OnInit, OnDestroy { - private map; - instance: interaction.DragZoom; - className: string; - condition: EventsConditionType; - duration: number; - out: boolean; - constructor(map: MapComponent); - ngOnInit(): void; - ngOnDestroy(): void; -} diff --git a/dist/components/interactions/dragzoom.component.js b/dist/components/interactions/dragzoom.component.js deleted file mode 100644 index ce6f37b0..00000000 --- a/dist/components/interactions/dragzoom.component.js +++ /dev/null @@ -1,36 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -var core_1 = require("@angular/core"); -var openlayers_1 = require("openlayers"); -var map_component_1 = require("../map.component"); -var DragZoomInteractionComponent = (function () { - function DragZoomInteractionComponent(map) { - this.map = map; - } - DragZoomInteractionComponent.prototype.ngOnInit = function () { - this.instance = new openlayers_1.interaction.DragZoom(this); - this.map.instance.addInteraction(this.instance); - }; - DragZoomInteractionComponent.prototype.ngOnDestroy = function () { - this.map.instance.removeInteraction(this.instance); - }; - return DragZoomInteractionComponent; -}()); -DragZoomInteractionComponent.decorators = [ - { type: core_1.Component, args: [{ - selector: 'aol-interaction-dragzoom', - template: '' - },] }, -]; -/** @nocollapse */ -DragZoomInteractionComponent.ctorParameters = function () { return [ - { type: map_component_1.MapComponent, }, -]; }; -DragZoomInteractionComponent.propDecorators = { - 'className': [{ type: core_1.Input },], - 'condition': [{ type: core_1.Input },], - 'duration': [{ type: core_1.Input },], - 'out': [{ type: core_1.Input },], -}; -exports.DragZoomInteractionComponent = DragZoomInteractionComponent; -//# sourceMappingURL=dragzoom.component.js.map \ No newline at end of file diff --git a/dist/components/interactions/dragzoom.component.js.map b/dist/components/interactions/dragzoom.component.js.map deleted file mode 100644 index 91691696..00000000 --- a/dist/components/interactions/dragzoom.component.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../../../src/components/interactions/dragzoom.component.ts"],"names":[],"mappings":";;AAAA,sCAAoE;AACpE,yCAA8D;AAC9D,kDAAgD;AAGhD;IAQE,sCAAoB,GAAiB;QAAjB,QAAG,GAAH,GAAG,CAAc;IACrC,CAAC;IAED,+CAAQ,GAAR;QACE,IAAI,CAAC,QAAQ,GAAG,IAAI,wBAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QAC/C,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,cAAc,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAClD,CAAC;IAED,kDAAW,GAAX;QACE,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,iBAAiB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACrD,CAAC;IAiBH,mCAAC;AAAD,CAnCA,AAmCC;AAhBM,uCAAU,GAA0B;IAC3C,EAAE,IAAI,EAAE,gBAAS,EAAE,IAAI,EAAE,CAAC;gBACxB,QAAQ,EAAE,0BAA0B;gBACpC,QAAQ,EAAE,EAAE;aACb,EAAG,EAAE;CACL,CAAC;AACF,kBAAkB;AACX,2CAAc,GAAmE,cAAM,OAAA;IAC9F,EAAC,IAAI,EAAE,4BAAY,GAAG;CACrB,EAF6F,CAE7F,CAAC;AACK,2CAAc,GAA2C;IAChE,WAAW,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IAC/B,WAAW,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IAC/B,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IAC9B,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;CACxB,CAAC;AAlCW,oEAA4B","file":"dragzoom.component.js","sourceRoot":""} \ No newline at end of file diff --git a/dist/components/interactions/dragzoom.component.metadata.json b/dist/components/interactions/dragzoom.component.metadata.json deleted file mode 100644 index 8a1be191..00000000 --- a/dist/components/interactions/dragzoom.component.metadata.json +++ /dev/null @@ -1 +0,0 @@ -[{"__symbolic":"module","version":3,"metadata":{"DragZoomInteractionComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-interaction-dragzoom","template":""}]}],"members":{"className":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"condition":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"duration":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"out":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"../map.component","name":"MapComponent"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"DragZoomInteractionComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-interaction-dragzoom","template":""}]}],"members":{"className":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"condition":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"duration":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"out":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"../map.component","name":"MapComponent"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}}}}] \ No newline at end of file diff --git a/dist/components/interactions/draw.component.d.ts b/dist/components/interactions/draw.component.d.ts deleted file mode 100644 index 31ca8010..00000000 --- a/dist/components/interactions/draw.component.d.ts +++ /dev/null @@ -1,31 +0,0 @@ -/// -import { OnDestroy, OnInit, EventEmitter } from '@angular/core'; -import { interaction } from 'openlayers'; -import { MapComponent } from '../map.component'; -export declare class DrawInteractionComponent implements OnInit, OnDestroy { - private map; - instance: interaction.Draw; - clickTolerance?: number; - features?: ol.Collection; - source?: ol.source.Vector; - snapTolerance?: number; - type: ol.geom.GeometryType; - maxPoints?: number; - minPoints?: number; - finishCondition?: ol.EventsConditionType; - style?: (ol.style.Style | ol.style.Style[] | ol.StyleFunction); - geometryFunction?: ol.DrawGeometryFunctionType; - geometryName?: string; - condition?: ol.EventsConditionType; - freehandCondition?: ol.EventsConditionType; - freehand?: boolean; - wrapX?: boolean; - onChange: EventEmitter; - onChangeActive: EventEmitter; - onDrawEnd: EventEmitter; - onDrawStart: EventEmitter; - onPropertyChange: EventEmitter; - constructor(map: MapComponent); - ngOnInit(): void; - ngOnDestroy(): void; -} diff --git a/dist/components/interactions/draw.component.js b/dist/components/interactions/draw.component.js deleted file mode 100644 index 8623907b..00000000 --- a/dist/components/interactions/draw.component.js +++ /dev/null @@ -1,63 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -var core_1 = require("@angular/core"); -var openlayers_1 = require("openlayers"); -var map_component_1 = require("../map.component"); -var DrawInteractionComponent = (function () { - function DrawInteractionComponent(map) { - this.map = map; - this.onChange = new core_1.EventEmitter(); - this.onChangeActive = new core_1.EventEmitter(); - this.onDrawEnd = new core_1.EventEmitter(); - this.onDrawStart = new core_1.EventEmitter(); - this.onPropertyChange = new core_1.EventEmitter(); - } - DrawInteractionComponent.prototype.ngOnInit = function () { - var _this = this; - this.instance = new openlayers_1.interaction.Draw(this); - this.instance.on('change', function (event) { return _this.onChange.emit(event); }); - this.instance.on('change:active', function (event) { return _this.onChangeActive.emit(event); }); - this.instance.on('drawend', function (event) { return _this.onDrawEnd.emit(event); }); - this.instance.on('drawstart', function (event) { return _this.onDrawStart.emit(event); }); - this.instance.on('propertychange', function (event) { return _this.onPropertyChange.emit(event); }); - this.map.instance.addInteraction(this.instance); - }; - DrawInteractionComponent.prototype.ngOnDestroy = function () { - this.map.instance.removeInteraction(this.instance); - }; - return DrawInteractionComponent; -}()); -DrawInteractionComponent.decorators = [ - { type: core_1.Component, args: [{ - selector: 'aol-interaction-draw', - template: '' - },] }, -]; -/** @nocollapse */ -DrawInteractionComponent.ctorParameters = function () { return [ - { type: map_component_1.MapComponent, }, -]; }; -DrawInteractionComponent.propDecorators = { - 'clickTolerance': [{ type: core_1.Input },], - 'features': [{ type: core_1.Input },], - 'source': [{ type: core_1.Input },], - 'snapTolerance': [{ type: core_1.Input },], - 'type': [{ type: core_1.Input },], - 'maxPoints': [{ type: core_1.Input },], - 'minPoints': [{ type: core_1.Input },], - 'finishCondition': [{ type: core_1.Input },], - 'style': [{ type: core_1.Input },], - 'geometryFunction': [{ type: core_1.Input },], - 'geometryName': [{ type: core_1.Input },], - 'condition': [{ type: core_1.Input },], - 'freehandCondition': [{ type: core_1.Input },], - 'freehand': [{ type: core_1.Input },], - 'wrapX': [{ type: core_1.Input },], - 'onChange': [{ type: core_1.Output },], - 'onChangeActive': [{ type: core_1.Output },], - 'onDrawEnd': [{ type: core_1.Output },], - 'onDrawStart': [{ type: core_1.Output },], - 'onPropertyChange': [{ type: core_1.Output },], -}; -exports.DrawInteractionComponent = DrawInteractionComponent; -//# sourceMappingURL=draw.component.js.map \ No newline at end of file diff --git a/dist/components/interactions/draw.component.js.map b/dist/components/interactions/draw.component.js.map deleted file mode 100644 index 0151873e..00000000 --- a/dist/components/interactions/draw.component.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../../../src/components/interactions/draw.component.ts"],"names":[],"mappings":";;AAAA,sCAA0F;AAC1F,yCAAyC;AACzC,kDAAgD;AAGhD;IAyBE,kCAAoB,GAAiB;QAAjB,QAAG,GAAH,GAAG,CAAc;QANpC,aAAQ,GAAG,IAAI,mBAAY,EAA6B,CAAC;QACzD,mBAAc,GAAG,IAAI,mBAAY,EAA6B,CAAC;QAC/D,cAAS,GAAG,IAAI,mBAAY,EAA6B,CAAC;QAC1D,gBAAW,GAAG,IAAI,mBAAY,EAA6B,CAAC;QAC5D,qBAAgB,GAAG,IAAI,mBAAY,EAA6B,CAAC;IAGlE,CAAC;IAED,2CAAQ,GAAR;QAAA,iBAQC;QAPC,IAAI,CAAC,QAAQ,GAAG,IAAI,wBAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC3C,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,QAAQ,EAAE,UAAC,KAAgC,IAAK,OAAA,KAAI,CAAC,QAAQ,CAAC,IAA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EW,4DAAwB","file":"draw.component.js","sourceRoot":""} \ No newline at end of file diff --git a/dist/components/interactions/draw.component.metadata.json b/dist/components/interactions/draw.component.metadata.json deleted file mode 100644 index d0e09642..00000000 --- a/dist/components/interactions/draw.component.metadata.json +++ /dev/null @@ -1 +0,0 @@ -[{"__symbolic":"module","version":3,"metadata":{"DrawInteractionComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-interaction-draw","template":""}]}],"members":{"clickTolerance":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"features":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"source":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"snapTolerance":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"type":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"maxPoints":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"minPoints":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"finishCondition":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"style":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"geometryFunction":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"geometryName":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"condition":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"freehandCondition":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"freehand":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"wrapX":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"onChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"onChangeActive":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"onDrawEnd":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"onDrawStart":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"onPropertyChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"../map.component","name":"MapComponent"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"DrawInteractionComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-interaction-draw","template":""}]}],"members":{"clickTolerance":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"features":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"source":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"snapTolerance":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"type":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"maxPoints":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"minPoints":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"finishCondition":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"style":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"geometryFunction":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"geometryName":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"condition":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"freehandCondition":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"freehand":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"wrapX":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"onChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"onChangeActive":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"onDrawEnd":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"onDrawStart":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"onPropertyChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"../map.component","name":"MapComponent"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}}}}] \ No newline at end of file diff --git a/dist/components/interactions/index.d.ts b/dist/components/interactions/index.d.ts deleted file mode 100644 index 6e5c81be..00000000 --- a/dist/components/interactions/index.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -export * from './default.component'; -export * from './doubleclickzoom.component'; -export * from './draganddrop.component'; -export * from './dragbox.component'; -export * from './dragpan.component'; -export * from './dragrotate.component'; -export * from './dragrotateandzoom.component'; -export * from './dragzoom.component'; -export * from './mousewheelzoom.component'; -export * from './pinchzoom.component'; -export * from './draw.component'; -export * from './select.component'; -export * from './translate.component'; -export * from './modify.component'; diff --git a/dist/components/interactions/index.js b/dist/components/interactions/index.js deleted file mode 100644 index 6d0e060f..00000000 --- a/dist/components/interactions/index.js +++ /dev/null @@ -1,20 +0,0 @@ -"use strict"; -function __export(m) { - for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; -} -Object.defineProperty(exports, "__esModule", { value: true }); -__export(require("./default.component")); -__export(require("./doubleclickzoom.component")); -__export(require("./draganddrop.component")); -__export(require("./dragbox.component")); -__export(require("./dragpan.component")); -__export(require("./dragrotate.component")); -__export(require("./dragrotateandzoom.component")); -__export(require("./dragzoom.component")); -__export(require("./mousewheelzoom.component")); -__export(require("./pinchzoom.component")); -__export(require("./draw.component")); -__export(require("./select.component")); -__export(require("./translate.component")); -__export(require("./modify.component")); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/components/interactions/index.js.map b/dist/components/interactions/index.js.map deleted file mode 100644 index 54350479..00000000 --- a/dist/components/interactions/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../../../src/components/interactions/index.ts"],"names":[],"mappings":";;;;;AAAA,yCAAoC;AACpC,iDAA4C;AAC5C,6CAAwC;AACxC,yCAAoC;AACpC,yCAAoC;AACpC,4CAAuC;AACvC,mDAA8C;AAC9C,0CAAqC;AACrC,gDAA2C;AAC3C,2CAAsC;AACtC,sCAAiC;AACjC,wCAAmC;AACnC,2CAAsC;AACtC,wCAAmC","file":"index.js","sourceRoot":""} \ No newline at end of file diff --git a/dist/components/interactions/index.metadata.json b/dist/components/interactions/index.metadata.json deleted file mode 100644 index 517f4662..00000000 --- a/dist/components/interactions/index.metadata.json +++ /dev/null @@ -1 +0,0 @@ -[{"__symbolic":"module","version":3,"metadata":{},"exports":[{"from":"./default.component"},{"from":"./doubleclickzoom.component"},{"from":"./draganddrop.component"},{"from":"./dragbox.component"},{"from":"./dragpan.component"},{"from":"./dragrotate.component"},{"from":"./dragrotateandzoom.component"},{"from":"./dragzoom.component"},{"from":"./mousewheelzoom.component"},{"from":"./pinchzoom.component"},{"from":"./draw.component"},{"from":"./select.component"},{"from":"./translate.component"},{"from":"./modify.component"}]},{"__symbolic":"module","version":1,"metadata":{},"exports":[{"from":"./default.component"},{"from":"./doubleclickzoom.component"},{"from":"./draganddrop.component"},{"from":"./dragbox.component"},{"from":"./dragpan.component"},{"from":"./dragrotate.component"},{"from":"./dragrotateandzoom.component"},{"from":"./dragzoom.component"},{"from":"./mousewheelzoom.component"},{"from":"./pinchzoom.component"},{"from":"./draw.component"},{"from":"./select.component"},{"from":"./translate.component"},{"from":"./modify.component"}]}] \ No newline at end of file diff --git a/dist/components/interactions/mousewheelzoom.component.d.ts b/dist/components/interactions/mousewheelzoom.component.d.ts deleted file mode 100644 index 3786bee9..00000000 --- a/dist/components/interactions/mousewheelzoom.component.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -/// -import { OnDestroy, OnInit } from '@angular/core'; -import { interaction } from 'openlayers'; -import { MapComponent } from '../map.component'; -export declare class MouseWheelZoomInteractionComponent implements OnInit, OnDestroy { - private map; - instance: interaction.MouseWheelZoom; - duration: number; - timeout: number; - useAnchor: boolean; - constructor(map: MapComponent); - ngOnInit(): void; - ngOnDestroy(): void; -} diff --git a/dist/components/interactions/mousewheelzoom.component.js b/dist/components/interactions/mousewheelzoom.component.js deleted file mode 100644 index 152dd26c..00000000 --- a/dist/components/interactions/mousewheelzoom.component.js +++ /dev/null @@ -1,35 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -var core_1 = require("@angular/core"); -var openlayers_1 = require("openlayers"); -var map_component_1 = require("../map.component"); -var MouseWheelZoomInteractionComponent = (function () { - function MouseWheelZoomInteractionComponent(map) { - this.map = map; - } - MouseWheelZoomInteractionComponent.prototype.ngOnInit = function () { - this.instance = new openlayers_1.interaction.MouseWheelZoom(this); - this.map.instance.addInteraction(this.instance); - }; - MouseWheelZoomInteractionComponent.prototype.ngOnDestroy = function () { - this.map.instance.removeInteraction(this.instance); - }; - return MouseWheelZoomInteractionComponent; -}()); -MouseWheelZoomInteractionComponent.decorators = [ - { type: core_1.Component, args: [{ - selector: 'aol-interaction-mousewheelzoom', - template: '' - },] }, -]; -/** @nocollapse */ -MouseWheelZoomInteractionComponent.ctorParameters = function () { return [ - { type: map_component_1.MapComponent, }, -]; }; -MouseWheelZoomInteractionComponent.propDecorators = { - 'duration': [{ type: core_1.Input },], - 'timeout': [{ type: core_1.Input },], - 'useAnchor': [{ type: core_1.Input },], -}; -exports.MouseWheelZoomInteractionComponent = MouseWheelZoomInteractionComponent; -//# sourceMappingURL=mousewheelzoom.component.js.map \ No newline at end of file diff --git a/dist/components/interactions/mousewheelzoom.component.js.map b/dist/components/interactions/mousewheelzoom.component.js.map deleted file mode 100644 index 70127086..00000000 --- a/dist/components/interactions/mousewheelzoom.component.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../../../src/components/interactions/mousewheelzoom.component.ts"],"names":[],"mappings":";;AAAA,sCAAoE;AACpE,yCAAyC;AACzC,kDAAgD;AAGhD;IAME,4CAAoB,GAAiB;QAAjB,QAAG,GAAH,GAAG,CAAc;IACrC,CAAC;IAED,qDAAQ,GAAR;QACE,IAAI,CAAC,QAAQ,GAAG,IAAI,wBAAW,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;QACrD,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,cAAc,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAClD,CAAC;IAED,wDAAW,GAAX;QACE,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,iBAAiB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACrD,CAAC;IAgBH,yCAAC;AAAD,CAhCA,AAgCC;AAfM,6CAAU,GAA0B;IAC3C,EAAE,IAAI,EAAE,gBAAS,EAAE,IAAI,EAAE,CAAC;gBACxB,QAAQ,EAAE,gCAAgC;gBAC1C,QAAQ,EAAE,EAAE;aACb,EAAG,EAAE;CACL,CAAC;AACF,kBAAkB;AACX,iDAAc,GAAmE,cAAM,OAAA;IAC9F,EAAC,IAAI,EAAE,4BAAY,GAAG;CACrB,EAF6F,CAE7F,CAAC;AACK,iDAAc,GAA2C;IAChE,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IAC9B,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IAC7B,WAAW,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;CAC9B,CAAC;AA/BW,gFAAkC","file":"mousewheelzoom.component.js","sourceRoot":""} \ No newline at end of file diff --git a/dist/components/interactions/mousewheelzoom.component.metadata.json b/dist/components/interactions/mousewheelzoom.component.metadata.json deleted file mode 100644 index cda1f9d4..00000000 --- a/dist/components/interactions/mousewheelzoom.component.metadata.json +++ /dev/null @@ -1 +0,0 @@ -[{"__symbolic":"module","version":3,"metadata":{"MouseWheelZoomInteractionComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-interaction-mousewheelzoom","template":""}]}],"members":{"duration":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"timeout":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"useAnchor":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"../map.component","name":"MapComponent"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"MouseWheelZoomInteractionComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-interaction-mousewheelzoom","template":""}]}],"members":{"duration":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"timeout":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"useAnchor":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"../map.component","name":"MapComponent"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}}}}] \ No newline at end of file diff --git a/dist/components/interactions/pinchzoom.component.d.ts b/dist/components/interactions/pinchzoom.component.d.ts deleted file mode 100644 index 64ba2815..00000000 --- a/dist/components/interactions/pinchzoom.component.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -/// -import { OnDestroy, OnInit } from '@angular/core'; -import { interaction } from 'openlayers'; -import { MapComponent } from '../map.component'; -export declare class PinchZoomInteractionComponent implements OnInit, OnDestroy { - private map; - instance: interaction.PinchZoom; - duration: number; - constrainResolution: boolean; - constructor(map: MapComponent); - ngOnInit(): void; - ngOnDestroy(): void; -} diff --git a/dist/components/interactions/pinchzoom.component.js b/dist/components/interactions/pinchzoom.component.js deleted file mode 100644 index 2abb2f95..00000000 --- a/dist/components/interactions/pinchzoom.component.js +++ /dev/null @@ -1,34 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -var core_1 = require("@angular/core"); -var openlayers_1 = require("openlayers"); -var map_component_1 = require("../map.component"); -var PinchZoomInteractionComponent = (function () { - function PinchZoomInteractionComponent(map) { - this.map = map; - } - PinchZoomInteractionComponent.prototype.ngOnInit = function () { - this.instance = new openlayers_1.interaction.PinchZoom(this); - this.map.instance.addInteraction(this.instance); - }; - PinchZoomInteractionComponent.prototype.ngOnDestroy = function () { - this.map.instance.removeInteraction(this.instance); - }; - return PinchZoomInteractionComponent; -}()); -PinchZoomInteractionComponent.decorators = [ - { type: core_1.Component, args: [{ - selector: 'aol-interaction-pinchzoom', - template: '' - },] }, -]; -/** @nocollapse */ -PinchZoomInteractionComponent.ctorParameters = function () { return [ - { type: map_component_1.MapComponent, }, -]; }; -PinchZoomInteractionComponent.propDecorators = { - 'duration': [{ type: core_1.Input },], - 'constrainResolution': [{ type: core_1.Input },], -}; -exports.PinchZoomInteractionComponent = PinchZoomInteractionComponent; -//# sourceMappingURL=pinchzoom.component.js.map \ No newline at end of file diff --git a/dist/components/interactions/pinchzoom.component.js.map b/dist/components/interactions/pinchzoom.component.js.map deleted file mode 100644 index 4bfb00d7..00000000 --- a/dist/components/interactions/pinchzoom.component.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../../../src/components/interactions/pinchzoom.component.ts"],"names":[],"mappings":";;AAAA,sCAAoE;AACpE,yCAAyC;AACzC,kDAAgD;AAGhD;IAME,uCAAoB,GAAiB;QAAjB,QAAG,GAAH,GAAG,CAAc;IACrC,CAAC;IAED,gDAAQ,GAAR;QACE,IAAI,CAAC,QAAQ,GAAG,IAAI,wBAAW,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;QAChD,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,cAAc,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAClD,CAAC;IAED,mDAAW,GAAX;QACE,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,iBAAiB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACrD,CAAC;IAeH,oCAAC;AAAD,CA/BA,AA+BC;AAdM,wCAAU,GAA0B;IAC3C,EAAE,IAAI,EAAE,gBAAS,EAAE,IAAI,EAAE,CAAC;gBACxB,QAAQ,EAAE,2BAA2B;gBACrC,QAAQ,EAAE,EAAE;aACb,EAAG,EAAE;CACL,CAAC;AACF,kBAAkB;AACX,4CAAc,GAAmE,cAAM,OAAA;IAC9F,EAAC,IAAI,EAAE,4BAAY,GAAG;CACrB,EAF6F,CAE7F,CAAC;AACK,4CAAc,GAA2C;IAChE,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IAC9B,qBAAqB,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;CACxC,CAAC;AA9BW,sEAA6B","file":"pinchzoom.component.js","sourceRoot":""} \ No newline at end of file diff --git a/dist/components/interactions/pinchzoom.component.metadata.json b/dist/components/interactions/pinchzoom.component.metadata.json deleted file mode 100644 index 1ea2999d..00000000 --- a/dist/components/interactions/pinchzoom.component.metadata.json +++ /dev/null @@ -1 +0,0 @@ -[{"__symbolic":"module","version":3,"metadata":{"PinchZoomInteractionComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-interaction-pinchzoom","template":""}]}],"members":{"duration":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"constrainResolution":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"../map.component","name":"MapComponent"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"PinchZoomInteractionComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-interaction-pinchzoom","template":""}]}],"members":{"duration":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"constrainResolution":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"../map.component","name":"MapComponent"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}}}}] \ No newline at end of file diff --git a/dist/components/layer.components.d.ts b/dist/components/layer.components.d.ts deleted file mode 100644 index 476f8fcb..00000000 --- a/dist/components/layer.components.d.ts +++ /dev/null @@ -1,44 +0,0 @@ -/// -import { OnDestroy, OnInit, OnChanges, SimpleChanges } from '@angular/core'; -import { layer, source, Extent, style, StyleFunction } from 'openlayers'; -import { MapComponent } from './map.component'; -export declare abstract class LayerComponent implements OnInit, OnChanges, OnDestroy { - protected host: MapComponent; - instance: any; - componentType: string; - opacity: number; - visible: boolean; - extent: Extent; - zIndex: number; - minResolution: number; - maxResolution: number; - constructor(host: MapComponent); - ngOnInit(): void; - ngOnDestroy(): void; - ngOnChanges(changes: SimpleChanges): void; -} -export declare class LayerTileComponent extends LayerComponent implements OnInit, OnDestroy { - source: source.Tile; - preload: number; - useInterimTilesOnError: boolean; - constructor(map: MapComponent); - ngOnInit(): void; -} -export declare class LayerVectorComponent extends LayerComponent implements OnInit, OnDestroy { - source: source.Vector; - renderBuffer: number; - constructor(map: MapComponent); - ngOnInit(): void; -} -export declare class LayerVectorTileComponent extends LayerComponent implements OnInit { - source: source.VectorTile; - renderBuffer: number; - renderMode: layer.VectorTileRenderType | string; - renderOrder: (feature1: ol.Feature, feature2: ol.Feature) => number; - style: (style.Style | style.Style[] | StyleFunction); - updateWhileAnimating: boolean; - updateWhileInteracting: boolean; - visible: boolean; - constructor(map: MapComponent); - ngOnInit(): void; -} diff --git a/dist/components/layer.components.js b/dist/components/layer.components.js deleted file mode 100644 index 21ba2a91..00000000 --- a/dist/components/layer.components.js +++ /dev/null @@ -1,134 +0,0 @@ -"use strict"; -var __extends = (this && this.__extends) || function (d, b) { - for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); -}; -var core_1 = require('@angular/core'); -var openlayers_1 = require('openlayers'); -var map_component_1 = require('./map.component'); -var LayerComponent = (function () { - function LayerComponent(host) { - this.host = host; - this.componentType = 'layer'; - } - LayerComponent.prototype.ngOnInit = function () { - this.host.instance.addLayer(this.instance); - }; - LayerComponent.prototype.ngOnDestroy = function () { - this.host.instance.removeLayer(this.instance); - }; - LayerComponent.prototype.ngOnChanges = function (changes) { - var properties = {}; - if (!this.instance) { - return; - } - for (var key in changes) { - if (changes.hasOwnProperty(key)) { - properties[key] = changes[key].currentValue; - } - } - // console.log('changes detected in aol-layer, setting new properties: ', properties); - this.instance.setProperties(properties, false); - }; - /** @nocollapse */ - LayerComponent.ctorParameters = function () { return [ - { type: map_component_1.MapComponent, decorators: [{ type: core_1.Host },] }, - ]; }; - LayerComponent.propDecorators = { - 'opacity': [{ type: core_1.Input },], - 'visible': [{ type: core_1.Input },], - 'extent': [{ type: core_1.Input },], - 'zIndex': [{ type: core_1.Input },], - 'minResolution': [{ type: core_1.Input },], - 'maxResolution': [{ type: core_1.Input },], - }; - return LayerComponent; -}()); -exports.LayerComponent = LayerComponent; -var LayerTileComponent = (function (_super) { - __extends(LayerTileComponent, _super); - function LayerTileComponent(map) { - _super.call(this, map); - } - LayerTileComponent.prototype.ngOnInit = function () { - // console.log('creating ol.layer.Tile instance with:', this); - this.instance = new openlayers_1.layer.Tile(this); - _super.prototype.ngOnInit.call(this); - }; - LayerTileComponent.decorators = [ - { type: core_1.Component, args: [{ - selector: 'aol-layer-tile', - template: "" - },] }, - ]; - /** @nocollapse */ - LayerTileComponent.ctorParameters = function () { return [ - { type: map_component_1.MapComponent, decorators: [{ type: core_1.Host },] }, - ]; }; - LayerTileComponent.propDecorators = { - 'preload': [{ type: core_1.Input },], - 'useInterimTilesOnError': [{ type: core_1.Input },], - }; - return LayerTileComponent; -}(LayerComponent)); -exports.LayerTileComponent = LayerTileComponent; -var LayerVectorComponent = (function (_super) { - __extends(LayerVectorComponent, _super); - function LayerVectorComponent(map) { - _super.call(this, map); - } - LayerVectorComponent.prototype.ngOnInit = function () { - // console.log('creating ol.layer.Vector instance with:', this); - this.instance = new openlayers_1.layer.Vector(this); - _super.prototype.ngOnInit.call(this); - }; - LayerVectorComponent.decorators = [ - { type: core_1.Component, args: [{ - selector: 'aol-layer-vector', - template: "" - },] }, - ]; - /** @nocollapse */ - LayerVectorComponent.ctorParameters = function () { return [ - { type: map_component_1.MapComponent, decorators: [{ type: core_1.Host },] }, - ]; }; - LayerVectorComponent.propDecorators = { - 'renderBuffer': [{ type: core_1.Input },], - }; - return LayerVectorComponent; -}(LayerComponent)); -exports.LayerVectorComponent = LayerVectorComponent; -var LayerVectorTileComponent = (function (_super) { - __extends(LayerVectorTileComponent, _super); - function LayerVectorTileComponent(map) { - _super.call(this, map); - } - LayerVectorTileComponent.prototype.ngOnInit = function () { - // console.log('creating ol.layer.VectorTile instance with:', this); - this.instance = new openlayers_1.layer.VectorTile(this); - _super.prototype.ngOnInit.call(this); - }; - LayerVectorTileComponent.decorators = [ - { type: core_1.Component, args: [{ - selector: 'aol-layer-vectortile', - template: "" - },] }, - ]; - /** @nocollapse */ - LayerVectorTileComponent.ctorParameters = function () { return [ - { type: map_component_1.MapComponent, decorators: [{ type: core_1.Host },] }, - ]; }; - LayerVectorTileComponent.propDecorators = { - 'renderBuffer': [{ type: core_1.Input },], - 'renderMode': [{ type: core_1.Input },], - 'renderOrder': [{ type: core_1.Input },], - 'style': [{ type: core_1.Input },], - 'updateWhileAnimating': [{ type: core_1.Input },], - 'updateWhileInteracting': [{ type: core_1.Input },], - 'visible': [{ type: core_1.Input },], - }; - return LayerVectorTileComponent; -}(LayerComponent)); -exports.LayerVectorTileComponent = LayerVectorTileComponent; -//# sourceMappingURL=layer.components.js.map \ No newline at end of file diff --git a/dist/components/layer.components.js.map b/dist/components/layer.components.js.map deleted file mode 100644 index cd8032de..00000000 --- a/dist/components/layer.components.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"layer.components.js","sourceRoot":"","sources":["../../src/components/layer.components.ts"],"names":[],"mappings":";;;;;;AAAA,qBAAoF,eAAe,CAAC,CAAA;AACpG,2BAA4D,YAAY,CAAC,CAAA;AACzE,8BAA6B,iBAAiB,CAAC,CAAA;AAE/C;IAWE,wBAAuB,IAAkB;QAAlB,SAAI,GAAJ,IAAI,CAAc;QATlC,kBAAa,GAAW,OAAO,CAAC;IAUvC,CAAC;IAED,iCAAQ,GAAR;QACE,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC7C,CAAC;IAED,oCAAW,GAAX;QACE,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAChD,CAAC;IAED,oCAAW,GAAX,UAAY,OAAsB;QAChC,IAAI,UAA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EAAE,YAAK,EAAE,EAAE;KAC5B,CAAC;IACF,+BAAC;AAAD,CAAC,AAxCD,CAA8C,cAAc,GAwC3D;AAxCY,gCAAwB,2BAwCpC,CAAA"} \ No newline at end of file diff --git a/dist/components/layer.components.metadata.json b/dist/components/layer.components.metadata.json deleted file mode 100644 index b45e7462..00000000 --- a/dist/components/layer.components.metadata.json +++ /dev/null @@ -1 +0,0 @@ -[{"__symbolic":"module","version":3,"metadata":{"LayerComponent":{"__symbolic":"class","members":{"opacity":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"visible":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"extent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"zIndex":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"minResolution":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"maxResolution":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Host"}}]],"parameters":[{"__symbolic":"reference","module":"./map.component","name":"MapComponent"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}]}},"LayerTileComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"LayerComponent"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-layer-tile","template":""}]}],"members":{"preload":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"useInterimTilesOnError":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Host"}}]],"parameters":[{"__symbolic":"reference","module":"./map.component","name":"MapComponent"}]}],"ngOnInit":[{"__symbolic":"method"}]}},"LayerVectorComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"LayerComponent"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-layer-vector","template":""}]}],"members":{"renderBuffer":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Host"}}]],"parameters":[{"__symbolic":"reference","module":"./map.component","name":"MapComponent"}]}],"ngOnInit":[{"__symbolic":"method"}]}},"LayerVectorTileComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"LayerComponent"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-layer-vectortile","template":""}]}],"members":{"renderBuffer":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"renderMode":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"renderOrder":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"style":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"updateWhileAnimating":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"updateWhileInteracting":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"visible":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Host"}}]],"parameters":[{"__symbolic":"reference","module":"./map.component","name":"MapComponent"}]}],"ngOnInit":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"LayerComponent":{"__symbolic":"class","members":{"opacity":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"visible":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"extent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"zIndex":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"minResolution":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"maxResolution":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Host"}}]],"parameters":[{"__symbolic":"reference","module":"./map.component","name":"MapComponent"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}]}},"LayerTileComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"LayerComponent"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-layer-tile","template":""}]}],"members":{"preload":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"useInterimTilesOnError":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Host"}}]],"parameters":[{"__symbolic":"reference","module":"./map.component","name":"MapComponent"}]}],"ngOnInit":[{"__symbolic":"method"}]}},"LayerVectorComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"LayerComponent"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-layer-vector","template":""}]}],"members":{"renderBuffer":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Host"}}]],"parameters":[{"__symbolic":"reference","module":"./map.component","name":"MapComponent"}]}],"ngOnInit":[{"__symbolic":"method"}]}},"LayerVectorTileComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"LayerComponent"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-layer-vectortile","template":""}]}],"members":{"renderBuffer":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"renderMode":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"renderOrder":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"style":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"updateWhileAnimating":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"updateWhileInteracting":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"visible":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Host"}}]],"parameters":[{"__symbolic":"reference","module":"./map.component","name":"MapComponent"}]}],"ngOnInit":[{"__symbolic":"method"}]}}}}] \ No newline at end of file diff --git a/dist/components/layers/index.d.ts b/dist/components/layers/index.d.ts deleted file mode 100644 index 86af3107..00000000 --- a/dist/components/layers/index.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -export * from './layer.component'; -export * from './layergroup.component'; -export * from './layerimage.component'; -export * from './layertile.component'; -export * from './layervector.component'; -export * from './layervectortile.component'; diff --git a/dist/components/layers/index.js b/dist/components/layers/index.js deleted file mode 100644 index f67d105c..00000000 --- a/dist/components/layers/index.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -function __export(m) { - for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; -} -Object.defineProperty(exports, "__esModule", { value: true }); -__export(require("./layer.component")); -__export(require("./layergroup.component")); -__export(require("./layerimage.component")); -__export(require("./layertile.component")); -__export(require("./layervector.component")); -__export(require("./layervectortile.component")); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/components/layers/index.js.map b/dist/components/layers/index.js.map deleted file mode 100644 index be4c6efd..00000000 --- a/dist/components/layers/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../../../src/components/layers/index.ts"],"names":[],"mappings":";;;;;AAAA,uCAAkC;AAClC,4CAAuC;AACvC,4CAAuC;AACvC,2CAAsC;AACtC,6CAAwC;AACxC,iDAA4C","file":"index.js","sourceRoot":""} \ No newline at end of file diff --git a/dist/components/layers/index.metadata.json b/dist/components/layers/index.metadata.json deleted file mode 100644 index 32eac58b..00000000 --- a/dist/components/layers/index.metadata.json +++ /dev/null @@ -1 +0,0 @@ -[{"__symbolic":"module","version":3,"metadata":{},"exports":[{"from":"./layer.component"},{"from":"./layergroup.component"},{"from":"./layerimage.component"},{"from":"./layertile.component"},{"from":"./layervector.component"},{"from":"./layervectortile.component"}]},{"__symbolic":"module","version":1,"metadata":{},"exports":[{"from":"./layer.component"},{"from":"./layergroup.component"},{"from":"./layerimage.component"},{"from":"./layertile.component"},{"from":"./layervector.component"},{"from":"./layervectortile.component"}]}] \ No newline at end of file diff --git a/dist/components/layers/layer.component.d.ts b/dist/components/layers/layer.component.d.ts deleted file mode 100644 index 97efd552..00000000 --- a/dist/components/layers/layer.component.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -/// -import { OnDestroy, OnInit, OnChanges, SimpleChanges } from '@angular/core'; -import { Extent } from 'openlayers'; -import { MapComponent } from '../map.component'; -import { LayerGroupComponent } from './layergroup.component'; -export declare abstract class LayerComponent implements OnInit, OnChanges, OnDestroy { - protected host: LayerGroupComponent | MapComponent; - instance: any; - componentType: string; - opacity: number; - visible: boolean; - extent: Extent; - zIndex: number; - minResolution: number; - maxResolution: number; - constructor(host: LayerGroupComponent | MapComponent); - ngOnInit(): void; - ngOnDestroy(): void; - ngOnChanges(changes: SimpleChanges): void; -} diff --git a/dist/components/layers/layer.component.js b/dist/components/layers/layer.component.js deleted file mode 100644 index 2ef54299..00000000 --- a/dist/components/layers/layer.component.js +++ /dev/null @@ -1,39 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -var core_1 = require("@angular/core"); -var LayerComponent = (function () { - function LayerComponent(host) { - this.host = host; - this.componentType = 'layer'; - } - LayerComponent.prototype.ngOnInit = function () { - this.host.instance.getLayers().push(this.instance); - }; - LayerComponent.prototype.ngOnDestroy = function () { - this.host.instance.getLayers().remove(this.instance); - }; - LayerComponent.prototype.ngOnChanges = function (changes) { - var properties = {}; - if (!this.instance) { - return; - } - for (var key in changes) { - if (changes.hasOwnProperty(key)) { - properties[key] = changes[key].currentValue; - } - } - // console.log('changes detected in aol-layer, setting new properties: ', properties); - this.instance.setProperties(properties, false); - }; - return LayerComponent; -}()); -LayerComponent.propDecorators = { - 'opacity': [{ type: core_1.Input },], - 'visible': [{ type: core_1.Input },], - 'extent': [{ type: core_1.Input },], - 'zIndex': [{ type: core_1.Input },], - 'minResolution': [{ type: core_1.Input },], - 'maxResolution': [{ type: core_1.Input },], -}; -exports.LayerComponent = LayerComponent; -//# sourceMappingURL=layer.component.js.map \ No newline at end of file diff --git a/dist/components/layers/layer.component.js.map b/dist/components/layers/layer.component.js.map deleted file mode 100644 index 88d009c2..00000000 --- a/dist/components/layers/layer.component.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../../../src/components/layers/layer.component.ts"],"names":[],"mappings":";;AAAA,sCAAmF;AAKnF;IAWE,wBAAsB,IAAwC;QAAxC,SAAI,GAAJ,IAAI,CAAoC;QATvD,kBAAa,GAAW,OAAO,CAAC;IAUvC,CAAC;IAED,iCAAQ,GAAR;QACE,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,SAAS,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACrD,CAAC;IAED,oCAAW,GAAX;QACE,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,SAAS,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACvD,CAAC;IAED,oCAAW,GAAX,UAAY,OAAsB;QAChC,IAAI,UAAU,GAA6B,EAAE,CAAC;QAC9C,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;YACnB,MAAM,CAAC;QACT,CAAC;QACD,GAAG,CAAC,CAAC,IAAI,GAAG,IAAI,OAAO,CAAC,CAAC,CAAC;YACxB,EAAE,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;gBAChC,UAAU,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,YAAY,CAAC;YAC9C,CAAC;QACH,CAAC;QACD,sFAAsF;QACtF,IAAI,CAAC,QAAQ,CAAC,aAAa,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC;IACjD,CAAC;IASH,qBAAC;AAAD,CA3CA,AA2CC;AARM,6BAAc,GAA2C;IAChE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IAC7B,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IAC7B,QAAQ,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IAC5B,QAAQ,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IAC5B,eAAe,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IACnC,eAAe,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;CAClC,CAAC;AA1CoB,wCAAc","file":"layer.component.js","sourceRoot":""} \ No newline at end of file diff --git a/dist/components/layers/layer.component.metadata.json b/dist/components/layers/layer.component.metadata.json deleted file mode 100644 index 87081a26..00000000 --- a/dist/components/layers/layer.component.metadata.json +++ /dev/null @@ -1 +0,0 @@ -[{"__symbolic":"module","version":3,"metadata":{"LayerComponent":{"__symbolic":"class","members":{"opacity":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"visible":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"extent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"zIndex":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"minResolution":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"maxResolution":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"./layergroup.component","name":"LayerGroupComponent"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"LayerComponent":{"__symbolic":"class","members":{"opacity":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"visible":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"extent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"zIndex":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"minResolution":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"maxResolution":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"./layergroup.component","name":"LayerGroupComponent"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}]}}}}] \ No newline at end of file diff --git a/dist/components/layers/layertile.component.d.ts b/dist/components/layers/layertile.component.d.ts deleted file mode 100644 index 6c77e975..00000000 --- a/dist/components/layers/layertile.component.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -/// -import { OnDestroy, OnInit } from '@angular/core'; -import { source } from 'openlayers'; -import { MapComponent } from '../map.component'; -import { LayerComponent } from './layer.component'; -import { LayerGroupComponent } from './layergroup.component'; -export declare class LayerTileComponent extends LayerComponent implements OnInit, OnDestroy { - source: source.Tile; - preload: number; - useInterimTilesOnError: boolean; - constructor(map: MapComponent, group?: LayerGroupComponent); - ngOnInit(): void; -} diff --git a/dist/components/layers/layertile.component.js b/dist/components/layers/layertile.component.js deleted file mode 100644 index c89a79ca..00000000 --- a/dist/components/layers/layertile.component.js +++ /dev/null @@ -1,46 +0,0 @@ -"use strict"; -var __extends = (this && this.__extends) || (function () { - var extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; - return function (d, b) { - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -Object.defineProperty(exports, "__esModule", { value: true }); -var core_1 = require("@angular/core"); -var openlayers_1 = require("openlayers"); -var map_component_1 = require("../map.component"); -var layer_component_1 = require("./layer.component"); -var layergroup_component_1 = require("./layergroup.component"); -var LayerTileComponent = (function (_super) { - __extends(LayerTileComponent, _super); - function LayerTileComponent(map, group) { - return _super.call(this, group || map) || this; - } - LayerTileComponent.prototype.ngOnInit = function () { - // console.log('creating ol.layer.Tile instance with:', this); - this.instance = new openlayers_1.layer.Tile(this); - _super.prototype.ngOnInit.call(this); - }; - return LayerTileComponent; -}(layer_component_1.LayerComponent)); -LayerTileComponent.decorators = [ - { type: core_1.Component, args: [{ - selector: 'aol-layer-tile', - template: "" - },] }, -]; -/** @nocollapse */ -LayerTileComponent.ctorParameters = function () { return [ - { type: map_component_1.MapComponent, }, - { type: layergroup_component_1.LayerGroupComponent, decorators: [{ type: core_1.Optional },] }, -]; }; -LayerTileComponent.propDecorators = { - 'preload': [{ type: core_1.Input },], - 'useInterimTilesOnError': [{ type: core_1.Input },], -}; -exports.LayerTileComponent = LayerTileComponent; -//# sourceMappingURL=layertile.component.js.map \ No newline at end of file diff --git a/dist/components/layers/layertile.component.js.map b/dist/components/layers/layertile.component.js.map deleted file mode 100644 index 627250ab..00000000 --- a/dist/components/layers/layertile.component.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../../../src/components/layers/layertile.component.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,sCAA8E;AAC9E,yCAA2C;AAC3C,kDAAgD;AAChD,qDAAmD;AACnD,+DAA6D;AAG7D;IAAwC,sCAAc;IAMpD,4BAAY,GAAiB,EAChB,KAA2B;eACtC,kBAAM,KAAK,IAAI,GAAG,CAAC;IACrB,CAAC;IAED,qCAAQ,GAAR;QACE,8DAA8D;QAC9D,IAAI,CAAC,QAAQ,GAAG,IAAI,kBAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACrC,iBAAM,QAAQ,WAAE,CAAC;IACnB,CAAC;IAgBH,yBAAC;AAAD,CA/BA,AA+BC,CA/BuC,gCAAc;AAgB/C,6BAAU,GAA0B;IAC3C,EAAE,IAAI,EAAE,gBAAS,EAAE,IAAI,EAAE,CAAC;gBACxB,QAAQ,EAAE,gBAAgB;gBAC1B,QAAQ,EAAE,2BAA2B;aACtC,EAAG,EAAE;CACL,CAAC;AACF,kBAAkB;AACX,iCAAc,GAAmE,cAAM,OAAA;IAC9F,EAAC,IAAI,EAAE,4BAAY,GAAG;IACtB,EAAC,IAAI,EAAE,0CAAmB,EAAE,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,eAAQ,EAAE,EAAG,EAAC;CAC9D,EAH6F,CAG7F,CAAC;AACK,iCAAc,GAA2C;IAChE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IAC7B,wBAAwB,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;CAC3C,CAAC;AA9BW,gDAAkB","file":"layertile.component.js","sourceRoot":""} \ No newline at end of file diff --git a/dist/components/layers/layertile.component.metadata.json b/dist/components/layers/layertile.component.metadata.json deleted file mode 100644 index c5e59b43..00000000 --- a/dist/components/layers/layertile.component.metadata.json +++ /dev/null @@ -1 +0,0 @@ -[{"__symbolic":"module","version":3,"metadata":{"LayerTileComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"./layer.component","name":"LayerComponent"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-layer-tile","template":""}]}],"members":{"preload":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"useInterimTilesOnError":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}]],"parameters":[{"__symbolic":"reference","module":"../map.component","name":"MapComponent"},{"__symbolic":"reference","module":"./layergroup.component","name":"LayerGroupComponent"}]}],"ngOnInit":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"LayerTileComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"./layer.component","name":"LayerComponent"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-layer-tile","template":""}]}],"members":{"preload":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"useInterimTilesOnError":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}]],"parameters":[{"__symbolic":"reference","module":"../map.component","name":"MapComponent"},{"__symbolic":"reference","module":"./layergroup.component","name":"LayerGroupComponent"}]}],"ngOnInit":[{"__symbolic":"method"}]}}}}] \ No newline at end of file diff --git a/dist/components/layers/layervector.component.d.ts b/dist/components/layers/layervector.component.d.ts deleted file mode 100644 index d655b7da..00000000 --- a/dist/components/layers/layervector.component.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -/// -import { OnDestroy, OnInit } from '@angular/core'; -import { source } from 'openlayers'; -import { MapComponent } from '../map.component'; -import { LayerComponent } from './layer.component'; -import { LayerGroupComponent } from './layergroup.component'; -export declare class LayerVectorComponent extends LayerComponent implements OnInit, OnDestroy { - source: source.Vector; - renderBuffer: number; - constructor(map: MapComponent, group?: LayerGroupComponent); - ngOnInit(): void; -} diff --git a/dist/components/layers/layervector.component.js b/dist/components/layers/layervector.component.js deleted file mode 100644 index baefe275..00000000 --- a/dist/components/layers/layervector.component.js +++ /dev/null @@ -1,45 +0,0 @@ -"use strict"; -var __extends = (this && this.__extends) || (function () { - var extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; - return function (d, b) { - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -Object.defineProperty(exports, "__esModule", { value: true }); -var core_1 = require("@angular/core"); -var openlayers_1 = require("openlayers"); -var map_component_1 = require("../map.component"); -var layer_component_1 = require("./layer.component"); -var layergroup_component_1 = require("./layergroup.component"); -var LayerVectorComponent = (function (_super) { - __extends(LayerVectorComponent, _super); - function LayerVectorComponent(map, group) { - return _super.call(this, group || map) || this; - } - LayerVectorComponent.prototype.ngOnInit = function () { - // console.log('creating ol.layer.Vector instance with:', this); - this.instance = new openlayers_1.layer.Vector(this); - _super.prototype.ngOnInit.call(this); - }; - return LayerVectorComponent; -}(layer_component_1.LayerComponent)); -LayerVectorComponent.decorators = [ - { type: core_1.Component, args: [{ - selector: 'aol-layer-vector', - template: "" - },] }, -]; -/** @nocollapse */ -LayerVectorComponent.ctorParameters = function () { return [ - { type: map_component_1.MapComponent, }, - { type: layergroup_component_1.LayerGroupComponent, decorators: [{ type: core_1.Optional },] }, -]; }; -LayerVectorComponent.propDecorators = { - 'renderBuffer': [{ type: core_1.Input },], -}; -exports.LayerVectorComponent = LayerVectorComponent; -//# sourceMappingURL=layervector.component.js.map \ No newline at end of file diff --git a/dist/components/layers/layervector.component.js.map b/dist/components/layers/layervector.component.js.map deleted file mode 100644 index c9acf624..00000000 --- a/dist/components/layers/layervector.component.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../../../src/components/layers/layervector.component.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,sCAA8E;AAC9E,yCAA2C;AAC3C,kDAAgD;AAChD,qDAAmD;AACnD,+DAA6D;AAG7D;IAA0C,wCAAc;IAKtD,8BAAY,GAAiB,EAChB,KAA2B;eACtC,kBAAM,KAAK,IAAI,GAAG,CAAC;IACrB,CAAC;IAED,uCAAQ,GAAR;QACE,gEAAgE;QAChE,IAAI,CAAC,QAAQ,GAAG,IAAI,kBAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QACvC,iBAAM,QAAQ,WAAE,CAAC;IACnB,CAAC;IAeH,2BAAC;AAAD,CA7BA,AA6BC,CA7ByC,gCAAc;AAejD,+BAAU,GAA0B;IAC3C,EAAE,IAAI,EAAE,gBAAS,EAAE,IAAI,EAAE,CAAC;gBACxB,QAAQ,EAAE,kBAAkB;gBAC5B,QAAQ,EAAE,2BAA2B;aACtC,EAAG,EAAE;CACL,CAAC;AACF,kBAAkB;AACX,mCAAc,GAAmE,cAAM,OAAA;IAC9F,EAAC,IAAI,EAAE,4BAAY,GAAG;IACtB,EAAC,IAAI,EAAE,0CAAmB,EAAE,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,eAAQ,EAAE,EAAG,EAAC;CAC9D,EAH6F,CAG7F,CAAC;AACK,mCAAc,GAA2C;IAChE,cAAc,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;CACjC,CAAC;AA5BW,oDAAoB","file":"layervector.component.js","sourceRoot":""} \ No newline at end of file diff --git a/dist/components/layers/layervector.component.metadata.json b/dist/components/layers/layervector.component.metadata.json deleted file mode 100644 index f6245759..00000000 --- a/dist/components/layers/layervector.component.metadata.json +++ /dev/null @@ -1 +0,0 @@ -[{"__symbolic":"module","version":3,"metadata":{"LayerVectorComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"./layer.component","name":"LayerComponent"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-layer-vector","template":""}]}],"members":{"renderBuffer":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}]],"parameters":[{"__symbolic":"reference","module":"../map.component","name":"MapComponent"},{"__symbolic":"reference","module":"./layergroup.component","name":"LayerGroupComponent"}]}],"ngOnInit":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"LayerVectorComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"./layer.component","name":"LayerComponent"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-layer-vector","template":""}]}],"members":{"renderBuffer":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}]],"parameters":[{"__symbolic":"reference","module":"../map.component","name":"MapComponent"},{"__symbolic":"reference","module":"./layergroup.component","name":"LayerGroupComponent"}]}],"ngOnInit":[{"__symbolic":"method"}]}}}}] \ No newline at end of file diff --git a/dist/components/layers/layervectortile.component.d.ts b/dist/components/layers/layervectortile.component.d.ts deleted file mode 100644 index d3c741d3..00000000 --- a/dist/components/layers/layervectortile.component.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -/// -import { OnInit } from '@angular/core'; -import { layer, style, StyleFunction } from 'openlayers'; -import { MapComponent } from '../map.component'; -import { LayerComponent } from './layer.component'; -import { LayerGroupComponent } from './layergroup.component'; -export declare class LayerVectorTileComponent extends LayerComponent implements OnInit { - renderBuffer: number; - renderMode: layer.VectorTileRenderType | string; - renderOrder: (feature1: ol.Feature, feature2: ol.Feature) => number; - style: (style.Style | style.Style[] | StyleFunction); - updateWhileAnimating: boolean; - updateWhileInteracting: boolean; - visible: boolean; - constructor(map: MapComponent, group?: LayerGroupComponent); - ngOnInit(): void; -} diff --git a/dist/components/layers/layervectortile.component.js b/dist/components/layers/layervectortile.component.js deleted file mode 100644 index 88e2945d..00000000 --- a/dist/components/layers/layervectortile.component.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -var __extends = (this && this.__extends) || (function () { - var extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; - return function (d, b) { - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -Object.defineProperty(exports, "__esModule", { value: true }); -var core_1 = require("@angular/core"); -var openlayers_1 = require("openlayers"); -var map_component_1 = require("../map.component"); -var layer_component_1 = require("./layer.component"); -var layergroup_component_1 = require("./layergroup.component"); -var LayerVectorTileComponent = (function (_super) { - __extends(LayerVectorTileComponent, _super); - function LayerVectorTileComponent(map, group) { - return _super.call(this, group || map) || this; - } - LayerVectorTileComponent.prototype.ngOnInit = function () { - // console.log('creating ol.layer.VectorTile instance with:', this); - this.instance = new openlayers_1.layer.VectorTile(this); - _super.prototype.ngOnInit.call(this); - }; - return LayerVectorTileComponent; -}(layer_component_1.LayerComponent)); -LayerVectorTileComponent.decorators = [ - { type: core_1.Component, args: [{ - selector: 'aol-layer-vectortile', - template: "" - },] }, -]; -/** @nocollapse */ -LayerVectorTileComponent.ctorParameters = function () { return [ - { type: map_component_1.MapComponent, }, - { type: layergroup_component_1.LayerGroupComponent, decorators: [{ type: core_1.Optional },] }, -]; }; -LayerVectorTileComponent.propDecorators = { - 'renderBuffer': [{ type: core_1.Input },], - 'renderMode': [{ type: core_1.Input },], - 'renderOrder': [{ type: core_1.Input },], - 'style': [{ type: core_1.Input },], - 'updateWhileAnimating': [{ type: core_1.Input },], - 'updateWhileInteracting': [{ type: core_1.Input },], - 'visible': [{ type: core_1.Input },], -}; -exports.LayerVectorTileComponent = LayerVectorTileComponent; -//# sourceMappingURL=layervectortile.component.js.map \ No newline at end of file diff --git a/dist/components/layers/layervectortile.component.js.map b/dist/components/layers/layervectortile.component.js.map deleted file mode 100644 index 61d982f8..00000000 --- a/dist/components/layers/layervectortile.component.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../../../src/components/layers/layervectortile.component.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,sCAAmE;AACnE,yCAAyD;AACzD,kDAAgD;AAChD,qDAAmD;AACnD,+DAA6D;AAG7D;IAA8C,4CAAc;IAW1D,kCAAY,GAAiB,EAChB,KAA2B;eACtC,kBAAM,KAAK,IAAI,GAAG,CAAC;IACrB,CAAC;IAED,2CAAQ,GAAR;QACE,oEAAoE;QACpE,IAAI,CAAC,QAAQ,GAAG,IAAI,kBAAK,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;QAC3C,iBAAM,QAAQ,WAAE,CAAC;IACnB,CAAC;IAqBH,+BAAC;AAAD,CAzCA,AAyCC,CAzC6C,gCAAc;AAqBrD,mCAAU,GAA0B;IAC3C,EAAE,IAAI,EAAE,gBAAS,EAAE,IAAI,EAAE,CAAC;gBACxB,QAAQ,EAAE,sBAAsB;gBAChC,QAAQ,EAAE,2BAA2B;aACtC,EAAG,EAAE;CACL,CAAC;AACF,kBAAkB;AACX,uCAAc,GAAmE,cAAM,OAAA;IAC9F,EAAC,IAAI,EAAE,4BAAY,GAAG;IACtB,EAAC,IAAI,EAAE,0CAAmB,EAAE,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,eAAQ,EAAE,EAAG,EAAC;CAC9D,EAH6F,CAG7F,CAAC;AACK,uCAAc,GAA2C;IAChE,cAAc,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IAClC,YAAY,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IAChC,aAAa,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IACjC,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IAC3B,sBAAsB,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IAC1C,wBAAwB,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IAC5C,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;CAC5B,CAAC;AAxCW,4DAAwB","file":"layervectortile.component.js","sourceRoot":""} \ No newline at end of file diff --git a/dist/components/layers/layervectortile.component.metadata.json b/dist/components/layers/layervectortile.component.metadata.json deleted file mode 100644 index 6ba02c62..00000000 --- a/dist/components/layers/layervectortile.component.metadata.json +++ /dev/null @@ -1 +0,0 @@ -[{"__symbolic":"module","version":3,"metadata":{"LayerVectorTileComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"./layer.component","name":"LayerComponent"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-layer-vectortile","template":""}]}],"members":{"renderBuffer":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"renderMode":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"renderOrder":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"style":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"updateWhileAnimating":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"updateWhileInteracting":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"visible":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}]],"parameters":[{"__symbolic":"reference","module":"../map.component","name":"MapComponent"},{"__symbolic":"reference","module":"./layergroup.component","name":"LayerGroupComponent"}]}],"ngOnInit":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"LayerVectorTileComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"./layer.component","name":"LayerComponent"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-layer-vectortile","template":""}]}],"members":{"renderBuffer":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"renderMode":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"renderOrder":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"style":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"updateWhileAnimating":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"updateWhileInteracting":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"visible":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}]],"parameters":[{"__symbolic":"reference","module":"../map.component","name":"MapComponent"},{"__symbolic":"reference","module":"./layergroup.component","name":"LayerGroupComponent"}]}],"ngOnInit":[{"__symbolic":"method"}]}}}}] \ No newline at end of file diff --git a/dist/components/map.component.d.ts b/dist/components/map.component.d.ts deleted file mode 100644 index 16c4b705..00000000 --- a/dist/components/map.component.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -/// -import { OnInit, ElementRef, EventEmitter, AfterViewInit, SimpleChanges, OnChanges } from '@angular/core'; -import { Map, MapBrowserEvent, MapEvent, render, ObjectEvent, control, interaction } from 'openlayers'; -export declare class MapComponent implements OnInit, AfterViewInit, OnChanges { - private host; - instance: Map; - componentType: string; - width: string; - height: string; - pixelRatio: number; - keyboardEventTarget: Element | string; - loadTilesWhileAnimating: boolean; - loadTilesWhileInteracting: boolean; - logo: string | boolean; - renderer: 'canvas' | 'webgl'; - onClick: EventEmitter; - onDblClick: EventEmitter; - onMoveEnd: EventEmitter; - onPointerDrag: EventEmitter; - onPointerMove: EventEmitter; - onPostCompose: EventEmitter; - onPostRender: EventEmitter; - onPreCompose: EventEmitter; - onPropertyChange: EventEmitter; - onSingleClick: EventEmitter; - controls: control.Control[]; - interactions: interaction.Interaction[]; - constructor(host: ElementRef); - ngOnInit(): void; - ngOnChanges(changes: SimpleChanges): void; - ngAfterViewInit(): void; -} diff --git a/dist/components/map.component.js b/dist/components/map.component.js deleted file mode 100644 index ed922f1c..00000000 --- a/dist/components/map.component.js +++ /dev/null @@ -1,90 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -var core_1 = require("@angular/core"); -var openlayers_1 = require("openlayers"); -var MapComponent = (function () { - function MapComponent(host) { - this.host = host; - this.componentType = 'map'; - this.width = '100%'; - this.height = '100%'; - // we pass empty arrays to not get default controls/interactions because we have our own directives - this.controls = []; - this.interactions = []; - this.onClick = new core_1.EventEmitter(); - this.onDblClick = new core_1.EventEmitter(); - this.onMoveEnd = new core_1.EventEmitter(); - this.onPointerDrag = new core_1.EventEmitter(); - this.onPointerMove = new core_1.EventEmitter(); - this.onPostCompose = new core_1.EventEmitter(); - this.onPostRender = new core_1.EventEmitter(); - this.onPreCompose = new core_1.EventEmitter(); - this.onPropertyChange = new core_1.EventEmitter(); - this.onSingleClick = new core_1.EventEmitter(); - } - MapComponent.prototype.ngOnInit = function () { - var _this = this; - // console.log('creating ol.Map instance with:', this); - this.instance = new openlayers_1.Map(this); - this.instance.setTarget(this.host.nativeElement.firstElementChild); - this.instance.on('click', function (event) { return _this.onClick.emit(event); }); - this.instance.on('dblclick', function (event) { return _this.onDblClick.emit(event); }); - this.instance.on('moveend', function (event) { return _this.onMoveEnd.emit(event); }); - this.instance.on('pointerdrag', function (event) { return _this.onPointerDrag.emit(event); }); - this.instance.on('pointermove', function (event) { return _this.onPointerMove.emit(event); }); - this.instance.on('postcompose', function (event) { return _this.onPostCompose.emit(event); }); - this.instance.on('postrender', function (event) { return _this.onPostRender.emit(event); }); - this.instance.on('precompose', function (event) { return _this.onPreCompose.emit(event); }); - this.instance.on('propertychange', function (event) { return _this.onPropertyChange.emit(event); }); - this.instance.on('singleclick', function (event) { return _this.onSingleClick.emit(event); }); - }; - MapComponent.prototype.ngOnChanges = function (changes) { - var properties = {}; - if (!this.instance) { - return; - } - for (var key in changes) { - if (changes.hasOwnProperty(key)) { - properties[key] = changes[key].currentValue; - } - } - // console.log('changes detected in aol-map, setting new properties: ', properties); - this.instance.setProperties(properties, false); - }; - MapComponent.prototype.ngAfterViewInit = function () { - this.instance.updateSize(); - }; - return MapComponent; -}()); -MapComponent.decorators = [ - { type: core_1.Component, args: [{ - selector: 'aol-map', - template: "
" - },] }, -]; -/** @nocollapse */ -MapComponent.ctorParameters = function () { return [ - { type: core_1.ElementRef, }, -]; }; -MapComponent.propDecorators = { - 'width': [{ type: core_1.Input },], - 'height': [{ type: core_1.Input },], - 'pixelRatio': [{ type: core_1.Input },], - 'keyboardEventTarget': [{ type: core_1.Input },], - 'loadTilesWhileAnimating': [{ type: core_1.Input },], - 'loadTilesWhileInteracting': [{ type: core_1.Input },], - 'logo': [{ type: core_1.Input },], - 'renderer': [{ type: core_1.Input },], - 'onClick': [{ type: core_1.Output },], - 'onDblClick': [{ type: core_1.Output },], - 'onMoveEnd': [{ type: core_1.Output },], - 'onPointerDrag': [{ type: core_1.Output },], - 'onPointerMove': [{ type: core_1.Output },], - 'onPostCompose': [{ type: core_1.Output },], - 'onPostRender': [{ type: core_1.Output },], - 'onPreCompose': [{ type: core_1.Output },], - 'onPropertyChange': [{ type: core_1.Output },], - 'onSingleClick': [{ type: core_1.Output },], -}; -exports.MapComponent = MapComponent; -//# sourceMappingURL=map.component.js.map \ No newline at end of file diff --git a/dist/components/map.component.js.map b/dist/components/map.component.js.map deleted file mode 100644 index 27e9961e..00000000 --- a/dist/components/map.component.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../../src/components/map.component.ts"],"names":[],"mappings":";;AAAA,sCAGuB;AACvB,yCAGoB;AAIpB;IA6BE,sBAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;QA3B7B,kBAAa,GAAW,KAAK,CAAC;QAEpC,UAAK,GAAW,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EAAE,YAAK,EAAE,EAAE;IAC7C,2BAA2B,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IAC/C,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IAC1B,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IAC9B,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,aAAM,EAAE,EAAE;IAC9B,YAAY,EAAE,CAAC,EAAE,IAAI,EAAE,aAAM,EAAE,EAAE;IACjC,WAAW,EAAE,CAAC,EAAE,IAAI,EAAE,aAAM,EAAE,EAAE;IAChC,eAAe,EAAE,CAAC,EAAE,IAAI,EAAE,aAAM,EAAE,EAAE;IACpC,eAAe,EAAE,CAAC,EAAE,IAAI,EAAE,aAAM,EAAE,EAAE;IACpC,eAAe,EAAE,CAAC,EAAE,IAAI,EAAE,aAAM,EAAE,EAAE;IACpC,cAAc,EAAE,CAAC,EAAE,IAAI,EAAE,aAAM,EAAE,EAAE;IACnC,cAAc,EAAE,CAAC,EAAE,IAAI,EAAE,aAAM,EAAE,EAAE;IACnC,kBAAkB,EAAE,CAAC,EAAE,IAAI,EAAE,aAAM,EAAE,EAAE;IACvC,eAAe,EAAE,CAAC,EAAE,IAAI,EAAE,aAAM,EAAE,EAAE;CACnC,CAAC;AAxGW,oCAAY","file":"map.component.js","sourceRoot":""} \ No newline at end of file diff --git a/dist/components/map.component.metadata.json b/dist/components/map.component.metadata.json deleted file mode 100644 index 11cd5b77..00000000 --- a/dist/components/map.component.metadata.json +++ /dev/null @@ -1 +0,0 @@ -[{"__symbolic":"module","version":3,"metadata":{"MapComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-map","template":"
"}]}],"members":{"width":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"height":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"pixelRatio":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"keyboardEventTarget":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"loadTilesWhileAnimating":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"loadTilesWhileInteracting":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"logo":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"renderer":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"onClick":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"onDblClick":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"onMoveEnd":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"onPointerDrag":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"onPointerMove":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"onPostCompose":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"onPostRender":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"onPreCompose":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"onPropertyChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"onSingleClick":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"ngAfterViewInit":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"MapComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-map","template":"
"}]}],"members":{"width":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"height":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"pixelRatio":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"keyboardEventTarget":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"loadTilesWhileAnimating":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"loadTilesWhileInteracting":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"logo":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"renderer":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"onClick":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"onDblClick":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"onMoveEnd":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"onPointerDrag":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"onPointerMove":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"onPostCompose":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"onPostRender":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"onPreCompose":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"onPropertyChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"onSingleClick":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"ngAfterViewInit":[{"__symbolic":"method"}]}}}}] \ No newline at end of file diff --git a/dist/components/overlay.component.d.ts b/dist/components/overlay.component.d.ts deleted file mode 100644 index 1b0063ef..00000000 --- a/dist/components/overlay.component.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -/// -import { OnDestroy, OnInit } from '@angular/core'; -import { MapComponent } from './map.component'; -import { Overlay, OverlayPositioning } from 'openlayers'; -import { ContentComponent } from './content.component'; -export declare class OverlayComponent implements OnInit, OnDestroy { - private map; - componentType: string; - instance: Overlay; - element: Element; - content: ContentComponent; - id: number | string; - offset: number[]; - positioning: OverlayPositioning | string; - stopEvent: boolean; - insertFirst: boolean; - autoPan: boolean; - autoPanAnimation: olx.animation.PanOptions; - autoPanMargin: number; - constructor(map: MapComponent); - ngOnInit(): void; - ngOnDestroy(): void; -} diff --git a/dist/components/overlay.component.js b/dist/components/overlay.component.js deleted file mode 100644 index 9384e787..00000000 --- a/dist/components/overlay.component.js +++ /dev/null @@ -1,48 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -var core_1 = require("@angular/core"); -var map_component_1 = require("./map.component"); -var openlayers_1 = require("openlayers"); -var content_component_1 = require("./content.component"); -var OverlayComponent = (function () { - function OverlayComponent(map) { - this.map = map; - this.componentType = 'overlay'; - } - OverlayComponent.prototype.ngOnInit = function () { - if (this.content) { - this.element = this.content.elementRef.nativeElement; - this.instance = new openlayers_1.Overlay(this); - this.map.instance.addOverlay(this.instance); - } - }; - OverlayComponent.prototype.ngOnDestroy = function () { - if (this.instance) { - this.map.instance.removeOverlay(this.instance); - } - }; - return OverlayComponent; -}()); -OverlayComponent.decorators = [ - { type: core_1.Component, args: [{ - selector: 'aol-overlay', - template: '' - },] }, -]; -/** @nocollapse */ -OverlayComponent.ctorParameters = function () { return [ - { type: map_component_1.MapComponent, }, -]; }; -OverlayComponent.propDecorators = { - 'content': [{ type: core_1.ContentChild, args: [content_component_1.ContentComponent,] },], - 'id': [{ type: core_1.Input },], - 'offset': [{ type: core_1.Input },], - 'positioning': [{ type: core_1.Input },], - 'stopEvent': [{ type: core_1.Input },], - 'insertFirst': [{ type: core_1.Input },], - 'autoPan': [{ type: core_1.Input },], - 'autoPanAnimation': [{ type: core_1.Input },], - 'autoPanMargin': [{ type: core_1.Input },], -}; -exports.OverlayComponent = OverlayComponent; -//# sourceMappingURL=overlay.component.js.map \ No newline at end of file diff --git a/dist/components/overlay.component.js.map b/dist/components/overlay.component.js.map deleted file mode 100644 index 49b34cba..00000000 --- a/dist/components/overlay.component.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../../src/components/overlay.component.ts"],"names":[],"mappings":";;AAAA,sCAAkF;AAClF,iDAA+C;AAC/C,yCAAyD;AACzD,yDAAuD;AAGvD;IAeE,0BACU,GAAiB;QAAjB,QAAG,GAAH,GAAG,CAAc;QAf3B,kBAAa,GAAG,SAAS,CAAC;IAiB1B,CAAC;IAED,mCAAQ,GAAR;QACE,EAAE,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC;YACjB,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,aAAa,CAAC;YACrD,IAAI,CAAC,QAAQ,GAAG,IAAI,oBAAO,CAAC,IAAI,CAAC,CAAC;YAClC,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAC9C,CAAC;IACH,CAAC;IAED,sCAAW,GAAX;QACE,EAAE,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;YAClB,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,aAAa,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACjD,CAAC;IACH,CAAC;IAsBH,uBAAC;AAAD,CAtDA,AAsDC;AArBM,2BAAU,GAA0B;IAC3C,EAAE,IAAI,EAAE,gBAAS,EAAE,IAAI,EAAE,CAAC;gBACxB,QAAQ,EAAE,aAAa;gBACvB,QAAQ,EAAE,2BAA2B;aACtC,EAAG,EAAE;CACL,CAAC;AACF,kBAAkB;AACX,+BAAc,GAAmE,cAAM,OAAA;IAC9F,EAAC,IAAI,EAAE,4BAAY,GAAG;CACrB,EAF6F,CAE7F,CAAC;AACK,+BAAc,GAA2C;IAChE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,mBAAY,EAAE,IAAI,EAAE,CAAC,oCAAgB,EAAG,EAAE,EAAE;IAChE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IACxB,QAAQ,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IAC5B,aAAa,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IACjC,WAAW,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IAC/B,aAAa,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IACjC,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IAC7B,kBAAkB,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IACtC,eAAe,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;CAClC,CAAC;AArDW,4CAAgB","file":"overlay.component.js","sourceRoot":""} \ No newline at end of file diff --git a/dist/components/overlay.component.metadata.json b/dist/components/overlay.component.metadata.json deleted file mode 100644 index 0980ca15..00000000 --- a/dist/components/overlay.component.metadata.json +++ /dev/null @@ -1 +0,0 @@ -[{"__symbolic":"module","version":3,"metadata":{"OverlayComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-overlay","template":""}]}],"members":{"content":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild"},"arguments":[{"__symbolic":"reference","module":"./content.component","name":"ContentComponent"}]}]}],"id":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"offset":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"positioning":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"stopEvent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"insertFirst":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"autoPan":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"autoPanAnimation":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"autoPanMargin":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"./map.component","name":"MapComponent"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"OverlayComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-overlay","template":""}]}],"members":{"content":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild"},"arguments":[{"__symbolic":"reference","module":"./content.component","name":"ContentComponent"}]}]}],"id":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"offset":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"positioning":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"stopEvent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"insertFirst":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"autoPan":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"autoPanAnimation":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"autoPanMargin":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"./map.component","name":"MapComponent"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}}}}] \ No newline at end of file diff --git a/dist/components/source.components.d.ts b/dist/components/source.components.d.ts deleted file mode 100644 index 730a936c..00000000 --- a/dist/components/source.components.d.ts +++ /dev/null @@ -1,67 +0,0 @@ -/// -import { OnDestroy, OnInit, AfterContentInit } from '@angular/core'; -import { AttributionLike, Size, ProjectionLike, TileUrlFunctionType, format, tilegrid } from 'openlayers'; -import { LayerTileComponent, LayerVectorComponent, LayerComponent, LayerVectorTileComponent } from './layers'; -import { FormatComponent } from './format.component'; -import { TileGridComponent } from './tilegrid.component'; -export declare class SourceComponent implements OnInit, OnDestroy { - protected host: LayerComponent; - instance: any; - componentType: string; - constructor(host: LayerComponent); - ngOnInit(): void; - ngOnDestroy(): void; -} -export declare class SourceOsmComponent extends SourceComponent implements OnInit { - constructor(layer: LayerTileComponent); - ngOnInit(): void; -} -export declare class SourceBingmapsComponent extends SourceComponent implements OnInit { - key: string; - imagerySet: 'Road' | 'Aerial' | 'AerialWithLabels' | 'collinsBart' | 'ordnanceSurvey'; - constructor(layer: LayerTileComponent); - ngOnInit(): void; -} -export declare class SourceVectorComponent extends SourceComponent implements OnInit { - attributions: AttributionLike; - overlaps: boolean; - useSpatialIndex: boolean; - wrapX: boolean; - constructor(layer: LayerVectorComponent); - ngOnInit(): void; -} -export declare class SourceXYZComponent extends SourceComponent implements OnInit { - attributions: AttributionLike; - cacheSize: number; - crossOrigin: string; - opaque: boolean; - projection: string; - reprojectionErrorThreshold: number; - minZoom: number; - maxZoom: number; - tilePixelRatio: number; - tileSize: number | Size; - tileUrlFunction: TileUrlFunctionType; - url: string; - urls: string[]; - wrapX: boolean; - constructor(layer: LayerTileComponent); - ngOnInit(): void; -} -export declare class SourceVectorTileComponent extends SourceComponent implements AfterContentInit { - attributions: AttributionLike; - cacheSize: number; - overlaps: boolean; - projection: ProjectionLike; - tilePixelRatio: number; - tileUrlFunction: TileUrlFunctionType; - url: string; - urls: string[]; - wrapX: boolean; - formatComponent: FormatComponent; - format: format.Feature; - tileGridComponent: TileGridComponent; - tileGrid: tilegrid.TileGrid; - constructor(layer: LayerVectorTileComponent); - ngAfterContentInit(): void; -} diff --git a/dist/components/source.components.js b/dist/components/source.components.js deleted file mode 100644 index 48abb59a..00000000 --- a/dist/components/source.components.js +++ /dev/null @@ -1,200 +0,0 @@ -"use strict"; -var __extends = (this && this.__extends) || function (d, b) { - for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); -}; -var core_1 = require('@angular/core'); -var openlayers_1 = require('openlayers'); -var layers_1 = require('./layers'); -var format_component_1 = require('./format.component'); -var tilegrid_component_1 = require('./tilegrid.component'); -var SourceComponent = (function () { - function SourceComponent(host) { - this.host = host; - this.componentType = 'source'; - } - SourceComponent.prototype.ngOnInit = function () { - this.host.instance.setSource(this.instance); - }; - SourceComponent.prototype.ngOnDestroy = function () { - this.host.instance.setSource(null); - }; - /** @nocollapse */ - SourceComponent.ctorParameters = function () { return [ - { type: layers_1.LayerComponent, decorators: [{ type: core_1.Host },] }, - ]; }; - return SourceComponent; -}()); -exports.SourceComponent = SourceComponent; -var SourceOsmComponent = (function (_super) { - __extends(SourceOsmComponent, _super); - function SourceOsmComponent(layer) { - _super.call(this, layer); - } - SourceOsmComponent.prototype.ngOnInit = function () { - this.instance = new openlayers_1.source.OSM(this); - this.host.instance.setSource(this.instance); - }; - SourceOsmComponent.decorators = [ - { type: core_1.Component, args: [{ - selector: 'aol-source-osm', - template: "
", - providers: [ - { provide: SourceComponent, useExisting: core_1.forwardRef(function () { return SourceOsmComponent; }) } - ] - },] }, - ]; - /** @nocollapse */ - SourceOsmComponent.ctorParameters = function () { return [ - { type: layers_1.LayerTileComponent, decorators: [{ type: core_1.Host },] }, - ]; }; - return SourceOsmComponent; -}(SourceComponent)); -exports.SourceOsmComponent = SourceOsmComponent; -var SourceBingmapsComponent = (function (_super) { - __extends(SourceBingmapsComponent, _super); - function SourceBingmapsComponent(layer) { - _super.call(this, layer); - this.imagerySet = 'Aerial'; - } - SourceBingmapsComponent.prototype.ngOnInit = function () { - this.instance = new openlayers_1.source.BingMaps(this); - this.host.instance.setSource(this.instance); - }; - SourceBingmapsComponent.decorators = [ - { type: core_1.Component, args: [{ - selector: 'aol-source-bingmaps', - template: "
", - providers: [ - { provide: SourceComponent, useExisting: core_1.forwardRef(function () { return SourceBingmapsComponent; }) } - ] - },] }, - ]; - /** @nocollapse */ - SourceBingmapsComponent.ctorParameters = function () { return [ - { type: layers_1.LayerTileComponent, decorators: [{ type: core_1.Host },] }, - ]; }; - SourceBingmapsComponent.propDecorators = { - 'key': [{ type: core_1.Input },], - 'imagerySet': [{ type: core_1.Input },], - }; - return SourceBingmapsComponent; -}(SourceComponent)); -exports.SourceBingmapsComponent = SourceBingmapsComponent; -var SourceVectorComponent = (function (_super) { - __extends(SourceVectorComponent, _super); - function SourceVectorComponent(layer) { - _super.call(this, layer); - } - SourceVectorComponent.prototype.ngOnInit = function () { - this.instance = new openlayers_1.source.Vector(this); - this.host.instance.setSource(this.instance); - }; - SourceVectorComponent.decorators = [ - { type: core_1.Component, args: [{ - selector: 'aol-source-vector', - template: "", - providers: [ - { provide: SourceComponent, useExisting: core_1.forwardRef(function () { return SourceVectorComponent; }) } - ] - },] }, - ]; - /** @nocollapse */ - SourceVectorComponent.ctorParameters = function () { return [ - { type: layers_1.LayerVectorComponent, decorators: [{ type: core_1.Host },] }, - ]; }; - SourceVectorComponent.propDecorators = { - 'attributions': [{ type: core_1.Input },], - 'overlaps': [{ type: core_1.Input },], - 'useSpatialIndex': [{ type: core_1.Input },], - 'wrapX': [{ type: core_1.Input },], - }; - return SourceVectorComponent; -}(SourceComponent)); -exports.SourceVectorComponent = SourceVectorComponent; -var SourceXYZComponent = (function (_super) { - __extends(SourceXYZComponent, _super); - function SourceXYZComponent(layer) { - _super.call(this, layer); - } - SourceXYZComponent.prototype.ngOnInit = function () { - // console.log('creating ol.source.XYZ instance with:', this); - this.instance = new openlayers_1.source.XYZ(this); - this.host.instance.setSource(this.instance); - }; - SourceXYZComponent.decorators = [ - { type: core_1.Component, args: [{ - selector: 'aol-source-xyz', - template: "", - providers: [ - { provide: SourceComponent, useExisting: core_1.forwardRef(function () { return SourceXYZComponent; }) } - ] - },] }, - ]; - /** @nocollapse */ - SourceXYZComponent.ctorParameters = function () { return [ - { type: layers_1.LayerTileComponent, decorators: [{ type: core_1.Host },] }, - ]; }; - SourceXYZComponent.propDecorators = { - 'attributions': [{ type: core_1.Input },], - 'cacheSize': [{ type: core_1.Input },], - 'crossOrigin': [{ type: core_1.Input },], - 'opaque': [{ type: core_1.Input },], - 'projection': [{ type: core_1.Input },], - 'reprojectionErrorThreshold': [{ type: core_1.Input },], - 'minZoom': [{ type: core_1.Input },], - 'maxZoom': [{ type: core_1.Input },], - 'tilePixelRatio': [{ type: core_1.Input },], - 'tileSize': [{ type: core_1.Input },], - 'tileUrlFunction': [{ type: core_1.Input },], - 'url': [{ type: core_1.Input },], - 'urls': [{ type: core_1.Input },], - 'wrapX': [{ type: core_1.Input },], - }; - return SourceXYZComponent; -}(SourceComponent)); -exports.SourceXYZComponent = SourceXYZComponent; -var SourceVectorTileComponent = (function (_super) { - __extends(SourceVectorTileComponent, _super); - function SourceVectorTileComponent(layer) { - _super.call(this, layer); - } - /* need the children to construct the OL3 object */ - SourceVectorTileComponent.prototype.ngAfterContentInit = function () { - this.format = this.formatComponent.instance; - this.tileGrid = this.tileGridComponent.instance; - // console.log('creating ol.source.VectorTile instance with:', this); - this.instance = new openlayers_1.source.VectorTile(this); - this.host.instance.setSource(this.instance); - }; - SourceVectorTileComponent.decorators = [ - { type: core_1.Component, args: [{ - selector: 'aol-source-vectortile', - template: "", - providers: [ - { provide: SourceComponent, useExisting: core_1.forwardRef(function () { return SourceVectorTileComponent; }) } - ] - },] }, - ]; - /** @nocollapse */ - SourceVectorTileComponent.ctorParameters = function () { return [ - { type: layers_1.LayerVectorTileComponent, decorators: [{ type: core_1.Host },] }, - ]; }; - SourceVectorTileComponent.propDecorators = { - 'attributions': [{ type: core_1.Input },], - 'cacheSize': [{ type: core_1.Input },], - 'overlaps': [{ type: core_1.Input },], - 'projection': [{ type: core_1.Input },], - 'tilePixelRatio': [{ type: core_1.Input },], - 'tileUrlFunction': [{ type: core_1.Input },], - 'url': [{ type: core_1.Input },], - 'urls': [{ type: core_1.Input },], - 'wrapX': [{ type: core_1.Input },], - 'formatComponent': [{ type: core_1.ContentChild, args: [format_component_1.FormatComponent,] },], - 'tileGridComponent': [{ type: core_1.ContentChild, args: [tilegrid_component_1.TileGridComponent,] },], - }; - return SourceVectorTileComponent; -}(SourceComponent)); -exports.SourceVectorTileComponent = SourceVectorTileComponent; -//# sourceMappingURL=source.components.js.map \ No newline at end of file diff --git a/dist/components/source.components.js.map b/dist/components/source.components.js.map deleted file mode 100644 index de20453a..00000000 --- a/dist/components/source.components.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"source.components.js","sourceRoot":"","sources":["../../src/components/source.components.ts"],"names":[],"mappings":";;;;;;AAAA,qBAAsG,eAAe,CAAC,CAAA;AACtH,2BAAqG,YAAY,CAAC,CAAA;AAClH,uBAAmG,UAAU,CAAC,CAAA;AAC9G,iCAAgC,oBAAoB,CAAC,CAAA;AACrD,mCAAkC,sBAAsB,CAAC,CAAA;AAEzD;IAIE,yBAAuB,IAAoB;QAApB,SAAI,GAAJ,IAAI,CAAgB;QAF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A2C;QAChE,cAAc,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;QAClC,WAAW,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;QAC/B,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;QAC9B,YAAY,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;QAChC,gBAAgB,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;QACpC,iBAAiB,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;QACrC,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;QACzB,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;QAC1B,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;QAC3B,iBAAiB,EAAE,CAAC,EAAE,IAAI,EAAE,mBAAY,EAAE,IAAI,EAAE,CAAC,kCAAe,EAAG,EAAE,EAAE;QACvE,mBAAmB,EAAE,CAAC,EAAE,IAAI,EAAE,mBAAY,EAAE,IAAI,EAAE,CAAC,sCAAiB,EAAG,EAAE,EAAE;KAC1E,CAAC;IACF,gCAAC;AAAD,CAAC,AAtDD,CAA+C,eAAe,GAsD7D;AAtDY,iCAAyB,4BAsDrC,CAAA"} \ No newline at end of file diff --git a/dist/components/source.components.metadata.json b/dist/components/source.components.metadata.json deleted file mode 100644 index 5c0aa71e..00000000 --- a/dist/components/source.components.metadata.json +++ /dev/null @@ -1 +0,0 @@ -[{"__symbolic":"module","version":3,"metadata":{"SourceComponent":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Host"}}]],"parameters":[{"__symbolic":"reference","module":"./layers","name":"LayerComponent"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}},"SourceOsmComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"SourceComponent"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-source-osm","template":"
","providers":[{"provide":{"__symbolic":"reference","name":"SourceComponent"},"useExisting":{"__symbolic":"reference","name":"SourceOsmComponent"}}]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Host"}}]],"parameters":[{"__symbolic":"reference","module":"./layers","name":"LayerTileComponent"}]}],"ngOnInit":[{"__symbolic":"method"}]}},"SourceBingmapsComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"SourceComponent"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-source-bingmaps","template":"
","providers":[{"provide":{"__symbolic":"reference","name":"SourceComponent"},"useExisting":{"__symbolic":"reference","name":"SourceBingmapsComponent"}}]}]}],"members":{"key":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"imagerySet":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Host"}}]],"parameters":[{"__symbolic":"reference","module":"./layers","name":"LayerTileComponent"}]}],"ngOnInit":[{"__symbolic":"method"}]}},"SourceVectorComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"SourceComponent"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-source-vector","template":"","providers":[{"provide":{"__symbolic":"reference","name":"SourceComponent"},"useExisting":{"__symbolic":"reference","name":"SourceVectorComponent"}}]}]}],"members":{"attributions":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"overlaps":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"useSpatialIndex":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"wrapX":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Host"}}]],"parameters":[{"__symbolic":"reference","module":"./layers","name":"LayerVectorComponent"}]}],"ngOnInit":[{"__symbolic":"method"}]}},"SourceXYZComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"SourceComponent"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-source-xyz","template":"","providers":[{"provide":{"__symbolic":"reference","name":"SourceComponent"},"useExisting":{"__symbolic":"reference","name":"SourceXYZComponent"}}]}]}],"members":{"attributions":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"cacheSize":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"crossOrigin":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"opaque":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"projection":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"reprojectionErrorThreshold":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"minZoom":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"maxZoom":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"tilePixelRatio":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"tileSize":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"tileUrlFunction":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"url":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"urls":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"wrapX":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Host"}}]],"parameters":[{"__symbolic":"reference","module":"./layers","name":"LayerTileComponent"}]}],"ngOnInit":[{"__symbolic":"method"}]}},"SourceVectorTileComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"SourceComponent"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-source-vectortile","template":"","providers":[{"provide":{"__symbolic":"reference","name":"SourceComponent"},"useExisting":{"__symbolic":"reference","name":"SourceVectorTileComponent"}}]}]}],"members":{"attributions":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"cacheSize":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"overlaps":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"projection":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"tilePixelRatio":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"tileUrlFunction":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"url":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"urls":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"wrapX":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"formatComponent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild"},"arguments":[{"__symbolic":"reference","module":"./format.component","name":"FormatComponent"}]}]}],"tileGridComponent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild"},"arguments":[{"__symbolic":"reference","module":"./tilegrid.component","name":"TileGridComponent"}]}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Host"}}]],"parameters":[{"__symbolic":"reference","module":"./layers","name":"LayerVectorTileComponent"}]}],"ngAfterContentInit":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"SourceComponent":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Host"}}]],"parameters":[{"__symbolic":"reference","module":"./layers","name":"LayerComponent"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}},"SourceOsmComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"SourceComponent"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-source-osm","template":"
","providers":[{"provide":{"__symbolic":"reference","name":"SourceComponent"},"useExisting":{"__symbolic":"reference","name":"SourceOsmComponent"}}]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Host"}}]],"parameters":[{"__symbolic":"reference","module":"./layers","name":"LayerTileComponent"}]}],"ngOnInit":[{"__symbolic":"method"}]}},"SourceBingmapsComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"SourceComponent"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-source-bingmaps","template":"
","providers":[{"provide":{"__symbolic":"reference","name":"SourceComponent"},"useExisting":{"__symbolic":"reference","name":"SourceBingmapsComponent"}}]}]}],"members":{"key":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"imagerySet":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Host"}}]],"parameters":[{"__symbolic":"reference","module":"./layers","name":"LayerTileComponent"}]}],"ngOnInit":[{"__symbolic":"method"}]}},"SourceVectorComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"SourceComponent"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-source-vector","template":"","providers":[{"provide":{"__symbolic":"reference","name":"SourceComponent"},"useExisting":{"__symbolic":"reference","name":"SourceVectorComponent"}}]}]}],"members":{"attributions":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"overlaps":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"useSpatialIndex":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"wrapX":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Host"}}]],"parameters":[{"__symbolic":"reference","module":"./layers","name":"LayerVectorComponent"}]}],"ngOnInit":[{"__symbolic":"method"}]}},"SourceXYZComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"SourceComponent"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-source-xyz","template":"","providers":[{"provide":{"__symbolic":"reference","name":"SourceComponent"},"useExisting":{"__symbolic":"reference","name":"SourceXYZComponent"}}]}]}],"members":{"attributions":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"cacheSize":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"crossOrigin":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"opaque":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"projection":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"reprojectionErrorThreshold":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"minZoom":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"maxZoom":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"tilePixelRatio":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"tileSize":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"tileUrlFunction":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"url":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"urls":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"wrapX":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Host"}}]],"parameters":[{"__symbolic":"reference","module":"./layers","name":"LayerTileComponent"}]}],"ngOnInit":[{"__symbolic":"method"}]}},"SourceVectorTileComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"SourceComponent"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-source-vectortile","template":"","providers":[{"provide":{"__symbolic":"reference","name":"SourceComponent"},"useExisting":{"__symbolic":"reference","name":"SourceVectorTileComponent"}}]}]}],"members":{"attributions":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"cacheSize":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"overlaps":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"projection":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"tilePixelRatio":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"tileUrlFunction":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"url":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"urls":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"wrapX":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"formatComponent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild"},"arguments":[{"__symbolic":"reference","module":"./format.component","name":"FormatComponent"}]}]}],"tileGridComponent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild"},"arguments":[{"__symbolic":"reference","module":"./tilegrid.component","name":"TileGridComponent"}]}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Host"}}]],"parameters":[{"__symbolic":"reference","module":"./layers","name":"LayerVectorTileComponent"}]}],"ngAfterContentInit":[{"__symbolic":"method"}]}}}}] \ No newline at end of file diff --git a/dist/components/sources/bingmaps.component.d.ts b/dist/components/sources/bingmaps.component.d.ts deleted file mode 100644 index 818e95cf..00000000 --- a/dist/components/sources/bingmaps.component.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -/// -import { OnInit } from '@angular/core'; -import { source, TileLoadFunctionType } from 'openlayers'; -import { LayerTileComponent } from '../layers'; -import { SourceComponent } from './source.component'; -export declare class SourceBingmapsComponent extends SourceComponent implements OnInit { - instance: source.BingMaps; - cacheSize: number; - hidpi: boolean; - culture: string; - key: string; - imagerySet: 'Road' | 'Aerial' | 'AerialWithLabels' | 'collinsBart' | 'ordnanceSurvey'; - maxZoom: number; - reprojectionErrorThreshold: number; - tileLoadFunction: TileLoadFunctionType; - wrapX: boolean; - constructor(layer: LayerTileComponent); - ngOnInit(): void; -} diff --git a/dist/components/sources/bingmaps.component.js b/dist/components/sources/bingmaps.component.js deleted file mode 100644 index 7cb6d403..00000000 --- a/dist/components/sources/bingmaps.component.js +++ /dev/null @@ -1,55 +0,0 @@ -"use strict"; -var __extends = (this && this.__extends) || (function () { - var extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; - return function (d, b) { - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -Object.defineProperty(exports, "__esModule", { value: true }); -var core_1 = require("@angular/core"); -var openlayers_1 = require("openlayers"); -var layers_1 = require("../layers"); -var source_component_1 = require("./source.component"); -var SourceBingmapsComponent = (function (_super) { - __extends(SourceBingmapsComponent, _super); - function SourceBingmapsComponent(layer) { - var _this = _super.call(this, layer) || this; - _this.imagerySet = 'Aerial'; - return _this; - } - SourceBingmapsComponent.prototype.ngOnInit = function () { - this.instance = new openlayers_1.source.BingMaps(this); - this.host.instance.setSource(this.instance); - }; - return SourceBingmapsComponent; -}(source_component_1.SourceComponent)); -SourceBingmapsComponent.decorators = [ - { type: core_1.Component, args: [{ - selector: 'aol-source-bingmaps', - template: "
", - providers: [ - { provide: source_component_1.SourceComponent, useExisting: core_1.forwardRef(function () { return SourceBingmapsComponent; }) } - ] - },] }, -]; -/** @nocollapse */ -SourceBingmapsComponent.ctorParameters = function () { return [ - { type: layers_1.LayerTileComponent, decorators: [{ type: core_1.Host },] }, -]; }; -SourceBingmapsComponent.propDecorators = { - 'cacheSize': [{ type: core_1.Input },], - 'hidpi': [{ type: core_1.Input },], - 'culture': [{ type: core_1.Input },], - 'key': [{ type: core_1.Input },], - 'imagerySet': [{ type: core_1.Input },], - 'maxZoom': [{ type: core_1.Input },], - 'reprojectionErrorThreshold': [{ type: core_1.Input },], - 'tileLoadFunction': [{ type: core_1.Input },], - 'wrapX': [{ type: core_1.Input },], -}; -exports.SourceBingmapsComponent = SourceBingmapsComponent; -//# sourceMappingURL=bingmaps.component.js.map \ No newline at end of file diff --git a/dist/components/sources/bingmaps.component.js.map b/dist/components/sources/bingmaps.component.js.map deleted file mode 100644 index a73e8fe0..00000000 --- a/dist/components/sources/bingmaps.component.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../../../src/components/sources/bingmaps.component.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,sCAA2E;AAC3E,yCAA0D;AAC1D,oCAA+C;AAC/C,uDAAqD;AAGrD;IAA6C,2CAAe;IAa1D,iCAAa,KAAyB;QAAtC,YACE,kBAAM,KAAK,CAAC,SACb;QARA,gBAAU,GAAsE,QAAQ,CAAC;;IAQ1F,CAAC;IAED,0CAAQ,GAAR;QACE,IAAI,CAAC,QAAQ,GAAG,IAAI,mBAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QAC1C,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC9C,CAAC;IAyBH,8BAAC;AAAD,CA7CA,AA6CC,CA7C4C,kCAAe;AAqBrD,kCAAU,GAA0B;IAC3C,EAAE,IAAI,EAAE,gBAAS,EAAE,IAAI,EAAE,CAAC;gBACxB,QAAQ,EAAE,qBAAqB;gBAC/B,QAAQ,EAAE,2CAAyC;gBACnD,SAAS,EAAE;oBACT,EAAE,OAAO,EAAE,kCAAe,EAAE,WAAW,EAAE,iBAAU,CAAC,cAAM,OAAA,uBAAuB,EAAvB,CAAuB,CAAC,EAAE;iBACrF;aACF,EAAG,EAAE;CACL,CAAC;AACF,kBAAkB;AACX,sCAAc,GAAmE,cAAM,OAAA;IAC9F,EAAC,IAAI,EAAE,2BAAkB,EAAE,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,WAAI,EAAE,EAAG,EAAC;CACzD,EAF6F,CAE7F,CAAC;AACK,sCAAc,GAA2C;IAChE,WAAW,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IAC/B,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IAC3B,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IAC7B,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IACzB,YAAY,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IAChC,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IAC7B,4BAA4B,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IAChD,kBAAkB,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IACtC,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;CAC1B,CAAC;AA5CW,0DAAuB","file":"bingmaps.component.js","sourceRoot":""} \ No newline at end of file diff --git a/dist/components/sources/bingmaps.component.metadata.json b/dist/components/sources/bingmaps.component.metadata.json deleted file mode 100644 index 264858c5..00000000 --- a/dist/components/sources/bingmaps.component.metadata.json +++ /dev/null @@ -1 +0,0 @@ -[{"__symbolic":"module","version":3,"metadata":{"SourceBingmapsComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"./source.component","name":"SourceComponent"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-source-bingmaps","template":"
","providers":[{"provide":{"__symbolic":"reference","module":"./source.component","name":"SourceComponent"},"useExisting":{"__symbolic":"reference","name":"SourceBingmapsComponent"}}]}]}],"members":{"cacheSize":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"hidpi":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"culture":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"key":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"imagerySet":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"maxZoom":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"reprojectionErrorThreshold":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"tileLoadFunction":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"wrapX":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Host"}}]],"parameters":[{"__symbolic":"reference","module":"../layers","name":"LayerTileComponent"}]}],"ngOnInit":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"SourceBingmapsComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"./source.component","name":"SourceComponent"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-source-bingmaps","template":"
","providers":[{"provide":{"__symbolic":"reference","module":"./source.component","name":"SourceComponent"},"useExisting":{"__symbolic":"reference","name":"SourceBingmapsComponent"}}]}]}],"members":{"cacheSize":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"hidpi":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"culture":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"key":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"imagerySet":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"maxZoom":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"reprojectionErrorThreshold":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"tileLoadFunction":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"wrapX":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Host"}}]],"parameters":[{"__symbolic":"reference","module":"../layers","name":"LayerTileComponent"}]}],"ngOnInit":[{"__symbolic":"method"}]}}}}] \ No newline at end of file diff --git a/dist/components/sources/geojson.component.d.ts b/dist/components/sources/geojson.component.d.ts deleted file mode 100644 index b91ad6fa..00000000 --- a/dist/components/sources/geojson.component.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -/// -import { OnInit } from '@angular/core'; -import { source, ProjectionLike, format } from 'openlayers'; -import { LayerVectorComponent } from '../layers'; -import { SourceComponent } from './source.component'; -export declare class SourceGeoJSONComponent extends SourceComponent implements OnInit { - instance: source.Vector; - format: format.Feature; - defaultDataProjection: ProjectionLike; - featureProjection: ProjectionLike; - geometryName: string; - url: string; - constructor(layer: LayerVectorComponent); - ngOnInit(): void; -} diff --git a/dist/components/sources/geojson.component.js b/dist/components/sources/geojson.component.js deleted file mode 100644 index af0ba8fc..00000000 --- a/dist/components/sources/geojson.component.js +++ /dev/null @@ -1,49 +0,0 @@ -"use strict"; -var __extends = (this && this.__extends) || (function () { - var extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; - return function (d, b) { - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -Object.defineProperty(exports, "__esModule", { value: true }); -var core_1 = require("@angular/core"); -var openlayers_1 = require("openlayers"); -var layers_1 = require("../layers"); -var source_component_1 = require("./source.component"); -var SourceGeoJSONComponent = (function (_super) { - __extends(SourceGeoJSONComponent, _super); - function SourceGeoJSONComponent(layer) { - return _super.call(this, layer) || this; - } - SourceGeoJSONComponent.prototype.ngOnInit = function () { - this.format = new openlayers_1.format.GeoJSON(this); - this.instance = new openlayers_1.source.Vector(this); - this.host.instance.setSource(this.instance); - }; - return SourceGeoJSONComponent; -}(source_component_1.SourceComponent)); -SourceGeoJSONComponent.decorators = [ - { type: core_1.Component, args: [{ - selector: 'aol-source-geojson', - template: "", - providers: [ - { provide: source_component_1.SourceComponent, useExisting: core_1.forwardRef(function () { return SourceGeoJSONComponent; }) } - ] - },] }, -]; -/** @nocollapse */ -SourceGeoJSONComponent.ctorParameters = function () { return [ - { type: layers_1.LayerVectorComponent, decorators: [{ type: core_1.Host },] }, -]; }; -SourceGeoJSONComponent.propDecorators = { - 'defaultDataProjection': [{ type: core_1.Input },], - 'featureProjection': [{ type: core_1.Input },], - 'geometryName': [{ type: core_1.Input },], - 'url': [{ type: core_1.Input },], -}; -exports.SourceGeoJSONComponent = SourceGeoJSONComponent; -//# sourceMappingURL=geojson.component.js.map \ No newline at end of file diff --git a/dist/components/sources/geojson.component.js.map b/dist/components/sources/geojson.component.js.map deleted file mode 100644 index ba73f696..00000000 --- a/dist/components/sources/geojson.component.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../../../src/components/sources/geojson.component.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,sCAA2E;AAC3E,yCAA4D;AAC5D,oCAAiD;AAEjD,uDAAqD;AAIrD;IAA4C,0CAAe;IAQvD,gCAAc,KAA2B;eACrC,kBAAM,KAAK,CAAC;IAChB,CAAC;IAED,yCAAQ,GAAR;QACI,IAAI,CAAC,MAAM,GAAG,IAAI,mBAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QACvC,IAAI,CAAC,QAAQ,GAAG,IAAI,mBAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QACxC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAChD,CAAC;IAoBL,6BAAC;AAAD,CApCA,AAoCC,CApC2C,kCAAe;AAiBpD,iCAAU,GAA0B;IAC3C,EAAE,IAAI,EAAE,gBAAS,EAAE,IAAI,EAAE,CAAC;gBACtB,QAAQ,EAAE,oBAAoB;gBAC9B,QAAQ,EAAE,2BAA2B;gBACrC,SAAS,EAAE;oBACP,EAAE,OAAO,EAAE,kCAAe,EAAE,WAAW,EAAE,iBAAU,CAAC,cAAM,OAAA,sBAAsB,EAAtB,CAAsB,CAAC,EAAE;iBACtF;aACJ,EAAG,EAAE;CACL,CAAC;AACF,kBAAkB;AACX,qCAAc,GAAmE,cAAM,OAAA;IAC9F,EAAC,IAAI,EAAE,6BAAoB,EAAE,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,WAAI,EAAE,EAAG,EAAC;CAC3D,EAF6F,CAE7F,CAAC;AACK,qCAAc,GAA2C;IAChE,uBAAuB,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IAC3C,mBAAmB,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IACvC,cAAc,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IAClC,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;CACxB,CAAC;AAnCW,wDAAsB","file":"geojson.component.js","sourceRoot":""} \ No newline at end of file diff --git a/dist/components/sources/geojson.component.metadata.json b/dist/components/sources/geojson.component.metadata.json deleted file mode 100644 index 0819e23f..00000000 --- a/dist/components/sources/geojson.component.metadata.json +++ /dev/null @@ -1 +0,0 @@ -[{"__symbolic":"module","version":3,"metadata":{"SourceGeoJSONComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"./source.component","name":"SourceComponent"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-source-geojson","template":"","providers":[{"provide":{"__symbolic":"reference","module":"./source.component","name":"SourceComponent"},"useExisting":{"__symbolic":"reference","name":"SourceGeoJSONComponent"}}]}]}],"members":{"defaultDataProjection":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"featureProjection":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"geometryName":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"url":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Host"}}]],"parameters":[{"__symbolic":"reference","module":"../layers","name":"LayerVectorComponent"}]}],"ngOnInit":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"SourceGeoJSONComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"./source.component","name":"SourceComponent"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-source-geojson","template":"","providers":[{"provide":{"__symbolic":"reference","module":"./source.component","name":"SourceComponent"},"useExisting":{"__symbolic":"reference","name":"SourceGeoJSONComponent"}}]}]}],"members":{"defaultDataProjection":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"featureProjection":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"geometryName":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"url":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Host"}}]],"parameters":[{"__symbolic":"reference","module":"../layers","name":"LayerVectorComponent"}]}],"ngOnInit":[{"__symbolic":"method"}]}}}}] \ No newline at end of file diff --git a/dist/components/sources/index.d.ts b/dist/components/sources/index.d.ts deleted file mode 100644 index 1b8f2dc6..00000000 --- a/dist/components/sources/index.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -export * from './bingmaps.component'; -export * from './osm.component'; -export * from './source.component'; -export * from './vector.component'; -export * from './vectortile.component'; -export * from './xyz.component'; -export * from './tilewms.component'; -export * from './geojson.component'; -export * from './tilewmts.component'; -export * from './imagewms.component'; diff --git a/dist/components/sources/index.js b/dist/components/sources/index.js deleted file mode 100644 index 4212f590..00000000 --- a/dist/components/sources/index.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict"; -function __export(m) { - for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; -} -Object.defineProperty(exports, "__esModule", { value: true }); -__export(require("./bingmaps.component")); -__export(require("./osm.component")); -__export(require("./source.component")); -__export(require("./vector.component")); -__export(require("./vectortile.component")); -__export(require("./xyz.component")); -__export(require("./tilewms.component")); -__export(require("./geojson.component")); -__export(require("./tilewmts.component")); -__export(require("./imagewms.component")); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/components/sources/index.js.map b/dist/components/sources/index.js.map deleted file mode 100644 index 2e707a4c..00000000 --- a/dist/components/sources/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../../../src/components/sources/index.ts"],"names":[],"mappings":";;;;;AAAA,0CAAqC;AACrC,qCAAgC;AAChC,wCAAmC;AACnC,wCAAmC;AACnC,4CAAuC;AACvC,qCAAgC;AAChC,yCAAoC;AACpC,yCAAoC;AACpC,0CAAqC;AACrC,0CAAqC","file":"index.js","sourceRoot":""} \ No newline at end of file diff --git a/dist/components/sources/index.metadata.json b/dist/components/sources/index.metadata.json deleted file mode 100644 index 17a6e5b8..00000000 --- a/dist/components/sources/index.metadata.json +++ /dev/null @@ -1 +0,0 @@ -[{"__symbolic":"module","version":3,"metadata":{},"exports":[{"from":"./bingmaps.component"},{"from":"./osm.component"},{"from":"./source.component"},{"from":"./vector.component"},{"from":"./vectortile.component"},{"from":"./xyz.component"},{"from":"./tilewms.component"},{"from":"./geojson.component"},{"from":"./tilewmts.component"},{"from":"./imagewms.component"}]},{"__symbolic":"module","version":1,"metadata":{},"exports":[{"from":"./bingmaps.component"},{"from":"./osm.component"},{"from":"./source.component"},{"from":"./vector.component"},{"from":"./vectortile.component"},{"from":"./xyz.component"},{"from":"./tilewms.component"},{"from":"./geojson.component"},{"from":"./tilewmts.component"},{"from":"./imagewms.component"}]}] \ No newline at end of file diff --git a/dist/components/sources/osm.component.d.ts b/dist/components/sources/osm.component.d.ts deleted file mode 100644 index f09839a0..00000000 --- a/dist/components/sources/osm.component.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -/// -import { AfterContentInit } from '@angular/core'; -import { source, AttributionLike, TileLoadFunctionType } from 'openlayers'; -import { LayerTileComponent } from '../layers'; -import { SourceXYZComponent } from './xyz.component'; -export declare class SourceOsmComponent extends SourceXYZComponent implements AfterContentInit { - instance: source.OSM; - attributions: AttributionLike; - cacheSize: number; - crossOrigin: string; - maxZoom: number; - opaque: boolean; - reprojectionErrorThreshold: number; - tileLoadFunction: TileLoadFunctionType; - url: string; - wrapX: boolean; - constructor(layer: LayerTileComponent); - ngAfterContentInit(): void; -} diff --git a/dist/components/sources/osm.component.js b/dist/components/sources/osm.component.js deleted file mode 100644 index 90232374..00000000 --- a/dist/components/sources/osm.component.js +++ /dev/null @@ -1,57 +0,0 @@ -"use strict"; -var __extends = (this && this.__extends) || (function () { - var extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; - return function (d, b) { - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -Object.defineProperty(exports, "__esModule", { value: true }); -var core_1 = require("@angular/core"); -var openlayers_1 = require("openlayers"); -var layers_1 = require("../layers"); -var source_component_1 = require("./source.component"); -var xyz_component_1 = require("./xyz.component"); -var SourceOsmComponent = (function (_super) { - __extends(SourceOsmComponent, _super); - function SourceOsmComponent(layer) { - return _super.call(this, layer) || this; - } - SourceOsmComponent.prototype.ngAfterContentInit = function () { - if (this.tileGridXYZ) { - this.tileGrid = this.tileGridXYZ.instance; - } - this.instance = new openlayers_1.source.OSM(this); - this.host.instance.setSource(this.instance); - }; - return SourceOsmComponent; -}(xyz_component_1.SourceXYZComponent)); -SourceOsmComponent.decorators = [ - { type: core_1.Component, args: [{ - selector: 'aol-source-osm', - template: "
", - providers: [ - { provide: source_component_1.SourceComponent, useExisting: core_1.forwardRef(function () { return SourceOsmComponent; }) } - ] - },] }, -]; -/** @nocollapse */ -SourceOsmComponent.ctorParameters = function () { return [ - { type: layers_1.LayerTileComponent, decorators: [{ type: core_1.Host },] }, -]; }; -SourceOsmComponent.propDecorators = { - 'attributions': [{ type: core_1.Input },], - 'cacheSize': [{ type: core_1.Input },], - 'crossOrigin': [{ type: core_1.Input },], - 'maxZoom': [{ type: core_1.Input },], - 'opaque': [{ type: core_1.Input },], - 'reprojectionErrorThreshold': [{ type: core_1.Input },], - 'tileLoadFunction': [{ type: core_1.Input },], - 'url': [{ type: core_1.Input },], - 'wrapX': [{ type: core_1.Input },], -}; -exports.SourceOsmComponent = SourceOsmComponent; -//# sourceMappingURL=osm.component.js.map \ No newline at end of file diff --git a/dist/components/sources/osm.component.js.map b/dist/components/sources/osm.component.js.map deleted file mode 100644 index 8549d297..00000000 --- a/dist/components/sources/osm.component.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../../../src/components/sources/osm.component.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,sCAAqF;AACrF,yCAA2E;AAC3E,oCAA+C;AAC/C,uDAAqD;AACrD,iDAAqD;AAGrD;IAAwC,sCAAkB;IAaxD,4BAAa,KAAyB;eACpC,kBAAM,KAAK,CAAC;IACd,CAAC;IAED,+CAAkB,GAAlB;QACE,EAAE,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;YACrB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC;QAC5C,CAAC;QACD,IAAI,CAAC,QAAQ,GAAG,IAAI,mBAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QACrC,IAAI,CAAC,IAAI,C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file diff --git a/dist/components/sources/osm.component.metadata.json b/dist/components/sources/osm.component.metadata.json deleted file mode 100644 index 9d69cfbb..00000000 --- a/dist/components/sources/osm.component.metadata.json +++ /dev/null @@ -1 +0,0 @@ -[{"__symbolic":"module","version":3,"metadata":{"SourceOsmComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"./xyz.component","name":"SourceXYZComponent"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-source-osm","template":"
","providers":[{"provide":{"__symbolic":"reference","module":"./source.component","name":"SourceComponent"},"useExisting":{"__symbolic":"reference","name":"SourceOsmComponent"}}]}]}],"members":{"attributions":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"cacheSize":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"crossOrigin":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"maxZoom":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"opaque":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"reprojectionErrorThreshold":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"tileLoadFunction":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"url":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"wrapX":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Host"}}]],"parameters":[{"__symbolic":"reference","module":"../layers","name":"LayerTileComponent"}]}],"ngAfterContentInit":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"SourceOsmComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"./xyz.component","name":"SourceXYZComponent"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-source-osm","template":"
","providers":[{"provide":{"__symbolic":"reference","module":"./source.component","name":"SourceComponent"},"useExisting":{"__symbolic":"reference","name":"SourceOsmComponent"}}]}]}],"members":{"attributions":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"cacheSize":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"crossOrigin":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"maxZoom":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"opaque":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"reprojectionErrorThreshold":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"tileLoadFunction":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"url":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"wrapX":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Host"}}]],"parameters":[{"__symbolic":"reference","module":"../layers","name":"LayerTileComponent"}]}],"ngAfterContentInit":[{"__symbolic":"method"}]}}}}] \ No newline at end of file diff --git a/dist/components/sources/source.component.d.ts b/dist/components/sources/source.component.d.ts deleted file mode 100644 index 82d68ad8..00000000 --- a/dist/components/sources/source.component.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -/// -import { OnDestroy, OnInit } from '@angular/core'; -import { source } from 'openlayers'; -import { LayerComponent } from '../layers'; -import AttributionLike = ol.AttributionLike; -export declare class SourceComponent implements OnInit, OnDestroy { - protected host: LayerComponent; - instance: source.Source; - componentType: string; - attributions: AttributionLike; - constructor(host: LayerComponent); - ngOnInit(): void; - ngOnDestroy(): void; -} diff --git a/dist/components/sources/source.component.js b/dist/components/sources/source.component.js deleted file mode 100644 index 280b6b47..00000000 --- a/dist/components/sources/source.component.js +++ /dev/null @@ -1,26 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -var core_1 = require("@angular/core"); -var layers_1 = require("../layers"); -var SourceComponent = (function () { - function SourceComponent(host) { - this.host = host; - this.componentType = 'source'; - } - SourceComponent.prototype.ngOnInit = function () { - this.host.instance.setSource(this.instance); - }; - SourceComponent.prototype.ngOnDestroy = function () { - this.host.instance.setSource(null); - }; - return SourceComponent; -}()); -/** @nocollapse */ -SourceComponent.ctorParameters = function () { return [ - { type: layers_1.LayerComponent, decorators: [{ type: core_1.Host },] }, -]; }; -SourceComponent.propDecorators = { - 'attributions': [{ type: core_1.Input },], -}; -exports.SourceComponent = SourceComponent; -//# sourceMappingURL=source.component.js.map \ No newline at end of file diff --git a/dist/components/sources/source.component.js.map b/dist/components/sources/source.component.js.map deleted file mode 100644 index c8c0796b..00000000 --- a/dist/components/sources/source.component.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../../../src/components/sources/source.component.ts"],"names":[],"mappings":";;AAAA,sCAA+D;AAE/D,oCAA2C;AAG3C;IAME,yBAAuB,IAAoB;QAApB,SAAI,GAAJ,IAAI,CAAgB;QAJpC,kBAAa,GAAW,QAAQ,CAAC;IAKxC,CAAC;IAED,kCAAQ,GAAR;QACE,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC9C,CAAC;IAED,qCAAW,GAAX;QACE,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;IACrC,CAAC;IAQH,sBAAC;AAAD,CAvBA,AAuBC;AAPD,kBAAkB;AACX,8BAAc,GAAmE,cAAM,OAAA;IAC9F,EAAC,IAAI,EAAE,uBAAc,EAAE,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,WAAI,EAAE,EAAG,EAAC;CACrD,EAF6F,CAE7F,CAAC;AACK,8BAAc,GAA2C;IAChE,cAAc,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;CACjC,CAAC;AAtBW,0CAAe","file":"source.component.js","sourceRoot":""} \ No newline at end of file diff --git a/dist/components/sources/source.component.metadata.json b/dist/components/sources/source.component.metadata.json deleted file mode 100644 index 645a98de..00000000 --- a/dist/components/sources/source.component.metadata.json +++ /dev/null @@ -1 +0,0 @@ -[{"__symbolic":"module","version":3,"metadata":{"SourceComponent":{"__symbolic":"class","members":{"attributions":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Host"}}]],"parameters":[{"__symbolic":"reference","module":"../layers","name":"LayerComponent"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"SourceComponent":{"__symbolic":"class","members":{"attributions":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Host"}}]],"parameters":[{"__symbolic":"reference","module":"../layers","name":"LayerComponent"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}}}}] \ No newline at end of file diff --git a/dist/components/sources/tilewms.component.d.ts b/dist/components/sources/tilewms.component.d.ts deleted file mode 100644 index 97038113..00000000 --- a/dist/components/sources/tilewms.component.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -/// -import { OnInit } from '@angular/core'; -import { source, TileLoadFunctionType, tilegrid } from 'openlayers'; -import { LayerTileComponent } from '../layers'; -import { SourceComponent } from './source.component'; -export declare class SourceTileWMSComponent extends SourceComponent implements OnInit { - instance: source.TileWMS; - cacheSize: number; - crossOrigin: string; - gutter: number; - hidpi: boolean; - params: Object; - projection: string; - reprojectionErrorThreshold: number; - serverType: string; - tileGrid: tilegrid.TileGrid; - tileLoadFunction: TileLoadFunctionType; - url: string; - urls: string[]; - wrapX: boolean; - constructor(layer: LayerTileComponent); - ngOnInit(): void; -} diff --git a/dist/components/sources/tilewms.component.js b/dist/components/sources/tilewms.component.js deleted file mode 100644 index 02a4dace..00000000 --- a/dist/components/sources/tilewms.component.js +++ /dev/null @@ -1,57 +0,0 @@ -"use strict"; -var __extends = (this && this.__extends) || (function () { - var extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; - return function (d, b) { - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -Object.defineProperty(exports, "__esModule", { value: true }); -var core_1 = require("@angular/core"); -var openlayers_1 = require("openlayers"); -var layers_1 = require("../layers"); -var source_component_1 = require("./source.component"); -var SourceTileWMSComponent = (function (_super) { - __extends(SourceTileWMSComponent, _super); - function SourceTileWMSComponent(layer) { - return _super.call(this, layer) || this; - } - SourceTileWMSComponent.prototype.ngOnInit = function () { - this.instance = new openlayers_1.source.TileWMS(this); - this.host.instance.setSource(this.instance); - }; - return SourceTileWMSComponent; -}(source_component_1.SourceComponent)); -SourceTileWMSComponent.decorators = [ - { type: core_1.Component, args: [{ - selector: 'aol-source-tilewms', - template: "", - providers: [ - { provide: source_component_1.SourceComponent, useExisting: core_1.forwardRef(function () { return SourceTileWMSComponent; }) } - ] - },] }, -]; -/** @nocollapse */ -SourceTileWMSComponent.ctorParameters = function () { return [ - { type: layers_1.LayerTileComponent, decorators: [{ type: core_1.Host },] }, -]; }; -SourceTileWMSComponent.propDecorators = { - 'cacheSize': [{ type: core_1.Input },], - 'crossOrigin': [{ type: core_1.Input },], - 'gutter': [{ type: core_1.Input },], - 'hidpi': [{ type: core_1.Input },], - 'params': [{ type: core_1.Input },], - 'projection': [{ type: core_1.Input },], - 'reprojectionErrorThreshold': [{ type: core_1.Input },], - 'serverType': [{ type: core_1.Input },], - 'tileGrid': [{ type: core_1.Input },], - 'tileLoadFunction': [{ type: core_1.Input },], - 'url': [{ type: core_1.Input },], - 'urls': [{ type: core_1.Input },], - 'wrapX': [{ type: core_1.Input },], -}; -exports.SourceTileWMSComponent = SourceTileWMSComponent; -//# sourceMappingURL=tilewms.component.js.map \ No newline at end of file diff --git a/dist/components/sources/tilewms.component.js.map b/dist/components/sources/tilewms.component.js.map deleted file mode 100644 index f26c4d2c..00000000 --- a/dist/components/sources/tilewms.component.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../../../src/components/sources/tilewms.component.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,sCAA2E;AAC3E,yCAAoE;AACpE,oCAA+C;AAC/C,uDAAqD;AAGrD;IAA4C,0CAAe;IAgBzD,gCAAa,KAAyB;eACpC,kBAAM,KAAK,CAAC;IACd,CAAC;IAED,yCAAQ,G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,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IAC9B,kBAAkB,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IACtC,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IACzB,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IAC1B,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;CAC1B,CAAC;AAnDW,wDAAsB","file":"tilewms.component.js","sourceRoot":""} \ No newline at end of file diff --git a/dist/components/sources/tilewms.component.metadata.json b/dist/components/sources/tilewms.component.metadata.json deleted file mode 100644 index b7d12ddd..00000000 --- a/dist/components/sources/tilewms.component.metadata.json +++ /dev/null @@ -1 +0,0 @@ -[{"__symbolic":"module","version":3,"metadata":{"SourceTileWMSComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"./source.component","name":"SourceComponent"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-source-tilewms","template":"","providers":[{"provide":{"__symbolic":"reference","module":"./source.component","name":"SourceComponent"},"useExisting":{"__symbolic":"reference","name":"SourceTileWMSComponent"}}]}]}],"members":{"cacheSize":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"crossOrigin":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"gutter":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"hidpi":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"params":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"projection":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"reprojectionErrorThreshold":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"serverType":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"tileGrid":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"tileLoadFunction":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"url":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"urls":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"wrapX":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Host"}}]],"parameters":[{"__symbolic":"reference","module":"../layers","name":"LayerTileComponent"}]}],"ngOnInit":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"SourceTileWMSComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"./source.component","name":"SourceComponent"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-source-tilewms","template":"","providers":[{"provide":{"__symbolic":"reference","module":"./source.component","name":"SourceComponent"},"useExisting":{"__symbolic":"reference","name":"SourceTileWMSComponent"}}]}]}],"members":{"cacheSize":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"crossOrigin":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"gutter":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"hidpi":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"params":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"projection":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"reprojectionErrorThreshold":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"serverType":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"tileGrid":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"tileLoadFunction":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"url":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"urls":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"wrapX":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Host"}}]],"parameters":[{"__symbolic":"reference","module":"../layers","name":"LayerTileComponent"}]}],"ngOnInit":[{"__symbolic":"method"}]}}}}] \ No newline at end of file diff --git a/dist/components/sources/vector.component.d.ts b/dist/components/sources/vector.component.d.ts deleted file mode 100644 index ceb495d1..00000000 --- a/dist/components/sources/vector.component.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -/// -import { OnInit } from '@angular/core'; -import { source } from 'openlayers'; -import { LayerVectorComponent } from '../layers'; -import { SourceComponent } from './source.component'; -export declare class SourceVectorComponent extends SourceComponent implements OnInit { - instance: source.Vector; - overlaps: boolean; - useSpatialIndex: boolean; - wrapX: boolean; - url: string; - format: ol.format.Feature; - strategy: ol.LoadingStrategy; - constructor(layer: LayerVectorComponent); - ngOnInit(): void; -} diff --git a/dist/components/sources/vector.component.js b/dist/components/sources/vector.component.js deleted file mode 100644 index 342e635f..00000000 --- a/dist/components/sources/vector.component.js +++ /dev/null @@ -1,50 +0,0 @@ -"use strict"; -var __extends = (this && this.__extends) || (function () { - var extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; - return function (d, b) { - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -Object.defineProperty(exports, "__esModule", { value: true }); -var core_1 = require("@angular/core"); -var openlayers_1 = require("openlayers"); -var layers_1 = require("../layers"); -var source_component_1 = require("./source.component"); -var SourceVectorComponent = (function (_super) { - __extends(SourceVectorComponent, _super); - function SourceVectorComponent(layer) { - return _super.call(this, layer) || this; - } - SourceVectorComponent.prototype.ngOnInit = function () { - this.instance = new openlayers_1.source.Vector(this); - this.host.instance.setSource(this.instance); - }; - return SourceVectorComponent; -}(source_component_1.SourceComponent)); -SourceVectorComponent.decorators = [ - { type: core_1.Component, args: [{ - selector: 'aol-source-vector', - template: "", - providers: [ - { provide: source_component_1.SourceComponent, useExisting: core_1.forwardRef(function () { return SourceVectorComponent; }) } - ] - },] }, -]; -/** @nocollapse */ -SourceVectorComponent.ctorParameters = function () { return [ - { type: layers_1.LayerVectorComponent, decorators: [{ type: core_1.Host },] }, -]; }; -SourceVectorComponent.propDecorators = { - 'overlaps': [{ type: core_1.Input },], - 'useSpatialIndex': [{ type: core_1.Input },], - 'wrapX': [{ type: core_1.Input },], - 'url': [{ type: core_1.Input },], - 'format': [{ type: core_1.Input },], - 'strategy': [{ type: core_1.Input },], -}; -exports.SourceVectorComponent = SourceVectorComponent; -//# sourceMappingURL=vector.component.js.map \ No newline at end of file diff --git a/dist/components/sources/vector.component.js.map b/dist/components/sources/vector.component.js.map deleted file mode 100644 index ff9397ab..00000000 --- a/dist/components/sources/vector.component.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../../../src/components/sources/vector.component.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,sCAA2E;AAC3E,yCAAoC;AACpC,oCAAiD;AACjD,uDAAqD;AAGrD;IAA2C,yCAAe;IASxD,+BAAa,KAA2B;eACtC,kBAAM,KAAK,CAAC;IACd,CAAC;IAED,wCAAQ,GAAR;QACE,IAAI,CAAC,QAAQ,GAAG,IAAI,mBAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QACxC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC9C,CAAC;IAsBH,4BAAC;AAAD,CAtCA,AAsCC,CAtC0C,kCAAe;AAiBnD,gCAAU,GAA0B;IAC3C,EAAE,IAAI,EAAE,gBAAS,EAAE,IAAI,EAAE,CAAC;gBACxB,QAAQ,EAAE,mBAAmB;gBAC7B,QAAQ,EAAE,2BAA2B;gBACrC,SAAS,EAAE;oBACT,EAAE,OAAO,EAAE,kCAAe,EAAE,WAAW,EAAE,iBAAU,CAAC,cAAM,OAAA,qBAAqB,EAArB,CAAqB,CAAC,EAAE;iBACnF;aACF,EAAG,EAAE;CACL,CAAC;AACF,kBAAkB;AACX,oCAAc,GAAmE,cAAM,OAAA;IAC9F,EAAC,IAAI,EAAE,6BAAoB,EAAE,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,WAAI,EAAE,EAAG,EAAC;CAC3D,EAF6F,CAE7F,CAAC;AACK,oCAAc,GAA2C;IAChE,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IAC9B,iBAAiB,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IACrC,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IAC3B,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IACzB,QAAQ,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IAC5B,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;CAC7B,CAAC;AArCW,sDAAqB","file":"vector.component.js","sourceRoot":""} \ No newline at end of file diff --git a/dist/components/sources/vector.component.metadata.json b/dist/components/sources/vector.component.metadata.json deleted file mode 100644 index 48e59b0e..00000000 --- a/dist/components/sources/vector.component.metadata.json +++ /dev/null @@ -1 +0,0 @@ -[{"__symbolic":"module","version":3,"metadata":{"SourceVectorComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"./source.component","name":"SourceComponent"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-source-vector","template":"","providers":[{"provide":{"__symbolic":"reference","module":"./source.component","name":"SourceComponent"},"useExisting":{"__symbolic":"reference","name":"SourceVectorComponent"}}]}]}],"members":{"overlaps":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"useSpatialIndex":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"wrapX":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"url":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"format":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"strategy":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Host"}}]],"parameters":[{"__symbolic":"reference","module":"../layers","name":"LayerVectorComponent"}]}],"ngOnInit":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"SourceVectorComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"./source.component","name":"SourceComponent"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-source-vector","template":"","providers":[{"provide":{"__symbolic":"reference","module":"./source.component","name":"SourceComponent"},"useExisting":{"__symbolic":"reference","name":"SourceVectorComponent"}}]}]}],"members":{"overlaps":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"useSpatialIndex":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"wrapX":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"url":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"format":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"strategy":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Host"}}]],"parameters":[{"__symbolic":"reference","module":"../layers","name":"LayerVectorComponent"}]}],"ngOnInit":[{"__symbolic":"method"}]}}}}] \ No newline at end of file diff --git a/dist/components/sources/vectortile.component.d.ts b/dist/components/sources/vectortile.component.d.ts deleted file mode 100644 index 29268c1e..00000000 --- a/dist/components/sources/vectortile.component.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -/// -import { AfterContentInit } from '@angular/core'; -import { source, ProjectionLike, TileUrlFunctionType, format, tilegrid } from 'openlayers'; -import { LayerVectorTileComponent } from '../layers'; -import { FormatComponent } from '../formats'; -import { TileGridComponent } from '../tilegrid.component'; -import { SourceComponent } from './source.component'; -export declare class SourceVectorTileComponent extends SourceComponent implements AfterContentInit { - instance: source.VectorTile; - cacheSize: number; - overlaps: boolean; - projection: ProjectionLike; - tilePixelRatio: number; - tileUrlFunction: TileUrlFunctionType; - url: string; - urls: string[]; - wrapX: boolean; - formatComponent: FormatComponent; - format: format.Feature; - tileGridComponent: TileGridComponent; - tileGrid: tilegrid.TileGrid; - constructor(layer: LayerVectorTileComponent); - ngAfterContentInit(): void; -} diff --git a/dist/components/sources/vectortile.component.js b/dist/components/sources/vectortile.component.js deleted file mode 100644 index ae2f7f03..00000000 --- a/dist/components/sources/vectortile.component.js +++ /dev/null @@ -1,60 +0,0 @@ -"use strict"; -var __extends = (this && this.__extends) || (function () { - var extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; - return function (d, b) { - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -Object.defineProperty(exports, "__esModule", { value: true }); -var core_1 = require("@angular/core"); -var openlayers_1 = require("openlayers"); -var layers_1 = require("../layers"); -var formats_1 = require("../formats"); -var tilegrid_component_1 = require("../tilegrid.component"); -var source_component_1 = require("./source.component"); -var SourceVectorTileComponent = (function (_super) { - __extends(SourceVectorTileComponent, _super); - function SourceVectorTileComponent(layer) { - return _super.call(this, layer) || this; - } - /* need the children to construct the OL3 object */ - SourceVectorTileComponent.prototype.ngAfterContentInit = function () { - this.format = this.formatComponent.instance; - this.tileGrid = this.tileGridComponent.instance; - // console.log('creating ol.source.VectorTile instance with:', this); - this.instance = new openlayers_1.source.VectorTile(this); - this.host.instance.setSource(this.instance); - }; - return SourceVectorTileComponent; -}(source_component_1.SourceComponent)); -SourceVectorTileComponent.decorators = [ - { type: core_1.Component, args: [{ - selector: 'aol-source-vectortile', - template: "", - providers: [ - { provide: source_component_1.SourceComponent, useExisting: core_1.forwardRef(function () { return SourceVectorTileComponent; }) } - ] - },] }, -]; -/** @nocollapse */ -SourceVectorTileComponent.ctorParameters = function () { return [ - { type: layers_1.LayerVectorTileComponent, decorators: [{ type: core_1.Host },] }, -]; }; -SourceVectorTileComponent.propDecorators = { - 'cacheSize': [{ type: core_1.Input },], - 'overlaps': [{ type: core_1.Input },], - 'projection': [{ type: core_1.Input },], - 'tilePixelRatio': [{ type: core_1.Input },], - 'tileUrlFunction': [{ type: core_1.Input },], - 'url': [{ type: core_1.Input },], - 'urls': [{ type: core_1.Input },], - 'wrapX': [{ type: core_1.Input },], - 'formatComponent': [{ type: core_1.ContentChild, args: [formats_1.FormatComponent,] },], - 'tileGridComponent': [{ type: core_1.ContentChild, args: [tilegrid_component_1.TileGridComponent,] },], -}; -exports.SourceVectorTileComponent = SourceVectorTileComponent; -//# sourceMappingURL=vectortile.component.js.map \ No newline at end of file diff --git a/dist/components/sources/vectortile.component.js.map b/dist/components/sources/vectortile.component.js.map deleted file mode 100644 index a12f4d0a..00000000 --- a/dist/components/sources/vectortile.component.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../../../src/components/sources/vectortile.component.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,sCAAmG;AACnG,yCAA2F;AAC3F,oCAAqD;AACrD,sCAA6C;AAC7C,4DAA0D;AAC1D,uDAAqD;AAGrD;IAA+C,6CAAe;IAgB5D,mCAAa,KA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AI,EAAE,YAAK,EAAE,EAAE;IACrC,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IACzB,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IAC1B,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IAC3B,iBAAiB,EAAE,CAAC,EAAE,IAAI,EAAE,mBAAY,EAAE,IAAI,EAAE,CAAC,yBAAe,EAAG,EAAE,EAAE;IACvE,mBAAmB,EAAE,CAAC,EAAE,IAAI,EAAE,mBAAY,EAAE,IAAI,EAAE,CAAC,sCAAiB,EAAG,EAAE,EAAE;CAC1E,CAAC;AApDW,8DAAyB","file":"vectortile.component.js","sourceRoot":""} \ No newline at end of file diff --git a/dist/components/sources/vectortile.component.metadata.json b/dist/components/sources/vectortile.component.metadata.json deleted file mode 100644 index ada0561b..00000000 --- a/dist/components/sources/vectortile.component.metadata.json +++ /dev/null @@ -1 +0,0 @@ -[{"__symbolic":"module","version":3,"metadata":{"SourceVectorTileComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"./source.component","name":"SourceComponent"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-source-vectortile","template":"","providers":[{"provide":{"__symbolic":"reference","module":"./source.component","name":"SourceComponent"},"useExisting":{"__symbolic":"reference","name":"SourceVectorTileComponent"}}]}]}],"members":{"cacheSize":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"overlaps":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"projection":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"tilePixelRatio":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"tileUrlFunction":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"url":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"urls":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"wrapX":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"formatComponent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild"},"arguments":[{"__symbolic":"reference","module":"../formats","name":"FormatComponent"}]}]}],"tileGridComponent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild"},"arguments":[{"__symbolic":"reference","module":"../tilegrid.component","name":"TileGridComponent"}]}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Host"}}]],"parameters":[{"__symbolic":"reference","module":"../layers","name":"LayerVectorTileComponent"}]}],"ngAfterContentInit":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"SourceVectorTileComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"./source.component","name":"SourceComponent"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-source-vectortile","template":"","providers":[{"provide":{"__symbolic":"reference","module":"./source.component","name":"SourceComponent"},"useExisting":{"__symbolic":"reference","name":"SourceVectorTileComponent"}}]}]}],"members":{"cacheSize":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"overlaps":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"projection":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"tilePixelRatio":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"tileUrlFunction":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"url":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"urls":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"wrapX":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"formatComponent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild"},"arguments":[{"__symbolic":"reference","module":"../formats","name":"FormatComponent"}]}]}],"tileGridComponent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild"},"arguments":[{"__symbolic":"reference","module":"../tilegrid.component","name":"TileGridComponent"}]}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Host"}}]],"parameters":[{"__symbolic":"reference","module":"../layers","name":"LayerVectorTileComponent"}]}],"ngAfterContentInit":[{"__symbolic":"method"}]}}}}] \ No newline at end of file diff --git a/dist/components/sources/xyz.component.d.ts b/dist/components/sources/xyz.component.d.ts deleted file mode 100644 index 1b2cc739..00000000 --- a/dist/components/sources/xyz.component.d.ts +++ /dev/null @@ -1,28 +0,0 @@ -/// -import { AfterContentInit, OnChanges, SimpleChanges } from '@angular/core'; -import { source, Size, TileUrlFunctionType, TileLoadFunctionType, tilegrid } from 'openlayers'; -import { LayerTileComponent } from '../layers'; -import { SourceComponent } from './source.component'; -import { TileGridComponent } from '../tilegrid.component'; -export declare class SourceXYZComponent extends SourceComponent implements AfterContentInit, OnChanges { - instance: source.XYZ; - cacheSize: number; - crossOrigin: string; - opaque: boolean; - projection: string; - reprojectionErrorThreshold: number; - minZoom: number; - maxZoom: number; - tileGrid: tilegrid.TileGrid; - tileLoadFunction?: TileLoadFunctionType; - tilePixelRatio: number; - tileSize: number | Size; - tileUrlFunction: TileUrlFunctionType; - url: string; - urls: string[]; - wrapX: boolean; - tileGridXYZ: TileGridComponent; - constructor(layer: LayerTileComponent); - ngAfterContentInit(): void; - ngOnChanges(changes: SimpleChanges): void; -} diff --git a/dist/components/sources/xyz.component.js b/dist/components/sources/xyz.component.js deleted file mode 100644 index 12b14485..00000000 --- a/dist/components/sources/xyz.component.js +++ /dev/null @@ -1,80 +0,0 @@ -"use strict"; -var __extends = (this && this.__extends) || (function () { - var extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; - return function (d, b) { - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -Object.defineProperty(exports, "__esModule", { value: true }); -var core_1 = require("@angular/core"); -var openlayers_1 = require("openlayers"); -var layers_1 = require("../layers"); -var source_component_1 = require("./source.component"); -var tilegrid_component_1 = require("../tilegrid.component"); -var SourceXYZComponent = (function (_super) { - __extends(SourceXYZComponent, _super); - function SourceXYZComponent(layer) { - return _super.call(this, layer) || this; - } - SourceXYZComponent.prototype.ngAfterContentInit = function () { - if (this.tileGridXYZ) { - this.tileGrid = this.tileGridXYZ.instance; - } - this.instance = new openlayers_1.source.XYZ(this); - this.host.instance.setSource(this.instance); - }; - SourceXYZComponent.prototype.ngOnChanges = function (changes) { - var properties = {}; - if (!this.instance) { - return; - } - for (var key in changes) { - if (changes.hasOwnProperty(key)) { - properties[key] = changes[key].currentValue; - } - } - this.instance.setProperties(properties, false); - if (changes.hasOwnProperty('url')) { - this.instance = new openlayers_1.source.XYZ(this); - this.host.instance.setSource(this.instance); - } - }; - return SourceXYZComponent; -}(source_component_1.SourceComponent)); -SourceXYZComponent.decorators = [ - { type: core_1.Component, args: [{ - selector: 'aol-source-xyz', - template: "", - providers: [ - { provide: source_component_1.SourceComponent, useExisting: core_1.forwardRef(function () { return SourceXYZComponent; }) } - ] - },] }, -]; -/** @nocollapse */ -SourceXYZComponent.ctorParameters = function () { return [ - { type: layers_1.LayerTileComponent, decorators: [{ type: core_1.Host },] }, -]; }; -SourceXYZComponent.propDecorators = { - 'cacheSize': [{ type: core_1.Input },], - 'crossOrigin': [{ type: core_1.Input },], - 'opaque': [{ type: core_1.Input },], - 'projection': [{ type: core_1.Input },], - 'reprojectionErrorThreshold': [{ type: core_1.Input },], - 'minZoom': [{ type: core_1.Input },], - 'maxZoom': [{ type: core_1.Input },], - 'tileGrid': [{ type: core_1.Input },], - 'tileLoadFunction': [{ type: core_1.Input },], - 'tilePixelRatio': [{ type: core_1.Input },], - 'tileSize': [{ type: core_1.Input },], - 'tileUrlFunction': [{ type: core_1.Input },], - 'url': [{ type: core_1.Input },], - 'urls': [{ type: core_1.Input },], - 'wrapX': [{ type: core_1.Input },], - 'tileGridXYZ': [{ type: core_1.ContentChild, args: [tilegrid_component_1.TileGridComponent,] },], -}; -exports.SourceXYZComponent = SourceXYZComponent; -//# sourceMappingURL=xyz.component.js.map \ No newline at end of file diff --git a/dist/components/sources/xyz.component.js.map b/dist/components/sources/xyz.component.js.map deleted file mode 100644 index 20da3970..00000000 --- a/dist/components/sources/xyz.component.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../../../src/components/sources/xyz.component.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,sCAA6H;AAC7H,yCAA+F;AAC/F,oCAA+C;AAC/C,uDAAqD;AACrD,4DAA0D;AAG1D;IAAwC,sC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C,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IACzB,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IAC1B,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IAC3B,aAAa,EAAE,CAAC,EAAE,IAAI,EAAE,mBAAY,EAAE,IAAI,EAAE,CAAC,sCAAiB,EAAG,EAAE,EAAE;CACpE,CAAC;AAhFW,gDAAkB","file":"xyz.component.js","sourceRoot":""} \ No newline at end of file diff --git a/dist/components/sources/xyz.component.metadata.json b/dist/components/sources/xyz.component.metadata.json deleted file mode 100644 index 78ae9421..00000000 --- a/dist/components/sources/xyz.component.metadata.json +++ /dev/null @@ -1 +0,0 @@ -[{"__symbolic":"module","version":3,"metadata":{"SourceXYZComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"./source.component","name":"SourceComponent"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-source-xyz","template":"","providers":[{"provide":{"__symbolic":"reference","module":"./source.component","name":"SourceComponent"},"useExisting":{"__symbolic":"reference","name":"SourceXYZComponent"}}]}]}],"members":{"cacheSize":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"crossOrigin":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"opaque":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"projection":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"reprojectionErrorThreshold":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"minZoom":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"maxZoom":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"tileGrid":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"tileLoadFunction":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"tilePixelRatio":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"tileSize":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"tileUrlFunction":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"url":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"urls":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"wrapX":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"tileGridXYZ":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild"},"arguments":[{"__symbolic":"reference","module":"../tilegrid.component","name":"TileGridComponent"}]}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Host"}}]],"parameters":[{"__symbolic":"reference","module":"../layers","name":"LayerTileComponent"}]}],"ngAfterContentInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"SourceXYZComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"./source.component","name":"SourceComponent"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-source-xyz","template":"","providers":[{"provide":{"__symbolic":"reference","module":"./source.component","name":"SourceComponent"},"useExisting":{"__symbolic":"reference","name":"SourceXYZComponent"}}]}]}],"members":{"cacheSize":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"crossOrigin":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"opaque":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"projection":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"reprojectionErrorThreshold":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"minZoom":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"maxZoom":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"tileGrid":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"tileLoadFunction":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"tilePixelRatio":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"tileSize":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"tileUrlFunction":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"url":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"urls":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"wrapX":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"tileGridXYZ":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild"},"arguments":[{"__symbolic":"reference","module":"../tilegrid.component","name":"TileGridComponent"}]}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Host"}}]],"parameters":[{"__symbolic":"reference","module":"../layers","name":"LayerTileComponent"}]}],"ngAfterContentInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}]}}}}] \ No newline at end of file diff --git a/dist/components/style.components.d.ts b/dist/components/style.components.d.ts deleted file mode 100644 index 5e21f6b7..00000000 --- a/dist/components/style.components.d.ts +++ /dev/null @@ -1,101 +0,0 @@ -/// -import { OnInit, AfterContentInit, OnChanges, OnDestroy, SimpleChanges } from '@angular/core'; -import { style, Color, ColorLike, StyleGeometryFunction, geom } from 'openlayers'; -import { FeatureComponent } from './feature.component'; -import { LayerVectorComponent } from './layers'; -export declare class StyleComponent implements OnInit { - private host; - instance: style.Style; - componentType: string; - geometry: string | geom.Geometry | StyleGeometryFunction; - fill: style.Fill; - image: style.Image; - stroke: style.Stroke; - text: style.Text; - zIndex: number; - constructor(featureHost: FeatureComponent, layerHost: LayerVectorComponent); - update(): void; - ngOnInit(): void; -} -export declare class StyleCircleComponent implements AfterContentInit, OnChanges, OnDestroy { - private host; - componentType: string; - instance: style.Circle; - fill: style.Fill; - radius: number; - snapToPixel: boolean; - stroke: style.Stroke; - atlasManager: style.AtlasManager; - constructor(host: StyleComponent); - /** - * WORK-AROUND: since the re-rendering is not triggered on style change - * we trigger a radius change. - * see openlayers #6233 and #5775 - */ - update(): void; - ngAfterContentInit(): void; - ngOnChanges(changes: SimpleChanges): void; - ngOnDestroy(): void; -} -export declare class StyleFillComponent implements OnInit, OnChanges { - private host; - instance: style.Fill; - color: Color | ColorLike; - constructor(styleHost: StyleComponent, styleCircleHost: StyleCircleComponent, styleTextHost: StyleTextComponent); - ngOnInit(): void; - ngOnChanges(changes: SimpleChanges): void; -} -export declare class StyleIconComponent implements OnInit, OnChanges { - private host; - instance: style.Icon; - anchor: [number, number]; - anchorXUnits: style.IconAnchorUnits; - anchorYUnits: style.IconAnchorUnits; - anchorOrigin: style.IconOrigin; - color: [number, number, number, number]; - crossOrigin: style.IconOrigin; - img: string; - offset: [number, number]; - offsetOrigin: style.IconOrigin; - opacity: number; - scale: number; - snapToPixel: boolean; - rotateWithView: boolean; - rotation: number; - size: [number, number]; - imgSize: [number, number]; - src: string; - constructor(host: StyleComponent); - ngOnInit(): void; - ngOnChanges(changes: SimpleChanges): void; -} -export declare class StyleStrokeComponent implements OnInit, OnChanges { - instance: style.Stroke; - private host; - color: Color | undefined; - lineCap: string | undefined; - lineDash: number[] | undefined; - lineJoin: string | undefined; - miterLimit: number | undefined; - width: number | undefined; - constructor(styleHost: StyleComponent, styleCircleHost: StyleCircleComponent, styleTextHost: StyleTextComponent); - ngOnInit(): void; - ngOnChanges(changes: SimpleChanges): void; -} -export declare class StyleTextComponent implements OnInit, OnChanges { - private host; - instance: style.Text; - componentType: string; - font: string | undefined; - offsetX: number | undefined; - offsetY: number | undefined; - scale: number | undefined; - rotateWithView: boolean | undefined; - rotation: number | undefined; - text: string | undefined; - textAlign: string | undefined; - textBaseLine: string | undefined; - constructor(host: StyleComponent); - ngOnInit(): void; - ngOnChanges(changes: SimpleChanges): void; -} diff --git a/dist/components/style.components.js b/dist/components/style.components.js deleted file mode 100644 index 56ff52eb..00000000 --- a/dist/components/style.components.js +++ /dev/null @@ -1,377 +0,0 @@ -"use strict"; -var core_1 = require('@angular/core'); -var openlayers_1 = require('openlayers'); -var feature_component_1 = require('./feature.component'); -var layers_1 = require('./layers'); -var StyleComponent = (function () { - function StyleComponent(featureHost, layerHost) { - this.componentType = 'style'; - // console.log('creating aol-style'); - this.host = !!featureHost ? featureHost : layerHost; - if (!this.host) { - throw new Error('aol-style must be applied to a feature or a layer'); - } - } - StyleComponent.prototype.update = function () { - // console.log('updating style\'s host: ', this.host); - this.host.instance.changed(); - }; - StyleComponent.prototype.ngOnInit = function () { - // console.log('creating aol-style instance with: ', this); - this.instance = new openlayers_1.style.Style(this); - this.host.instance.setStyle(this.instance); - }; - StyleComponent.decorators = [ - { type: core_1.Component, args: [{ - selector: 'aol-style', - template: "" - },] }, - ]; - /** @nocollapse */ - StyleComponent.ctorParameters = function () { return [ - { type: feature_component_1.FeatureComponent, decorators: [{ type: core_1.Optional },] }, - { type: layers_1.LayerVectorComponent, decorators: [{ type: core_1.Optional },] }, - ]; }; - StyleComponent.propDecorators = { - 'geometry': [{ type: core_1.Input },], - 'fill': [{ type: core_1.Input },], - 'image': [{ type: core_1.Input },], - 'stroke': [{ type: core_1.Input },], - 'text': [{ type: core_1.Input },], - 'zIndex': [{ type: core_1.Input },], - }; - return StyleComponent; -}()); -exports.StyleComponent = StyleComponent; -var StyleCircleComponent = (function () { - function StyleCircleComponent(host) { - this.host = host; - this.componentType = 'style-circle'; - } - /** - * WORK-AROUND: since the re-rendering is not triggered on style change - * we trigger a radius change. - * see openlayers #6233 and #5775 - */ - StyleCircleComponent.prototype.update = function () { - if (!!this.instance) { - // console.log('setting ol.style.Circle instance\'s radius'); - this.instance.setRadius(this.radius); - } - }; - StyleCircleComponent.prototype.ngAfterContentInit = function () { - // console.log('creating ol.style.Circle instance with: ', this); - this.instance = new openlayers_1.style.Circle(this); - this.host.instance.setImage(this.instance); - this.host.update(); - }; - StyleCircleComponent.prototype.ngOnChanges = function (changes) { - if (!this.instance) { - return; - } - if (changes['radius']) { - this.instance.setRadius(changes['radius'].currentValue); - } - // console.log('changes detected in aol-style-circle, setting new radius: ', changes['radius'].currentValue); - }; - StyleCircleComponent.prototype.ngOnDestroy = function () { - // console.log('removing aol-style-circle'); - this.host.instance.setImage(null); - }; - StyleCircleComponent.decorators = [ - { type: core_1.Component, args: [{ - selector: 'aol-style-circle', - template: "" - },] }, - ]; - /** @nocollapse */ - StyleCircleComponent.ctorParameters = function () { return [ - { type: StyleComponent, decorators: [{ type: core_1.Host },] }, - ]; }; - StyleCircleComponent.propDecorators = { - 'fill': [{ type: core_1.Input },], - 'radius': [{ type: core_1.Input },], - 'snapToPixel': [{ type: core_1.Input },], - 'stroke': [{ type: core_1.Input },], - 'atlasManager': [{ type: core_1.Input },], - }; - return StyleCircleComponent; -}()); -exports.StyleCircleComponent = StyleCircleComponent; -var StyleFillComponent = (function () { - function StyleFillComponent(styleHost, styleCircleHost, styleTextHost) { - if (!styleHost) { - throw new Error('aol-style-stroke must be a descendant of aol-style'); - } - if (!!styleTextHost) { - this.host = styleTextHost; - } - else if (!!styleCircleHost) { - this.host = styleCircleHost; - } - else { - this.host = styleHost; - } - // console.log('creating aol-style-fill with: ', this); - } - StyleFillComponent.prototype.ngOnInit = function () { - // console.log('creating ol.style.Fill instance with: ', this); - this.instance = new openlayers_1.style.Fill(this); - switch (this.host.componentType) { - case 'style': - this.host.instance.setFill(this.instance); - // console.log('setting ol.style instance\'s fill:', this.host); - break; - case 'style-text': - this.host.instance.setFill(this.instance); - break; - case 'style-circle': - this.host.fill = this.instance; - // console.log('setting ol.style.circle instance\'s fill:', this.host); - break; - default: - throw new Error('unknown host type: ' + this.host); - } - }; - StyleFillComponent.prototype.ngOnChanges = function (changes) { - if (!this.instance) { - return; - } - if (changes['color']) { - this.instance.setColor(changes['color'].currentValue); - } - this.host.update(); - // console.log('changes detected in aol-style-fill, setting new color: ', changes); - }; - StyleFillComponent.decorators = [ - { type: core_1.Component, args: [{ - selector: 'aol-style-fill', - template: "
", - },] }, - ]; - /** @nocollapse */ - StyleFillComponent.ctorParameters = function () { return [ - { type: StyleComponent, decorators: [{ type: core_1.Optional },] }, - { type: StyleCircleComponent, decorators: [{ type: core_1.Optional },] }, - { type: StyleTextComponent, decorators: [{ type: core_1.Optional },] }, - ]; }; - StyleFillComponent.propDecorators = { - 'color': [{ type: core_1.Input },], - }; - return StyleFillComponent; -}()); -exports.StyleFillComponent = StyleFillComponent; -var StyleIconComponent = (function () { - function StyleIconComponent(host) { - this.host = host; - } - StyleIconComponent.prototype.ngOnInit = function () { - // console.log('creating ol.style.Icon instance with: ', this); - this.instance = new openlayers_1.style.Icon(this); - this.host.instance.setImage(this.instance); - }; - StyleIconComponent.prototype.ngOnChanges = function (changes) { - if (!this.instance) { - return; - } - if (changes['opacity']) { - this.instance.setOpacity(changes['opacity'].currentValue); - } - if (changes['rotation']) { - this.instance.setRotation(changes['rotation'].currentValue); - } - if (changes['scale']) { - this.instance.setScale(changes['scale'].currentValue); - } - if (changes['src']) { - this.instance = new openlayers_1.style.Icon(this); - this.host.instance.setImage(this.instance); - } - this.host.update(); - // console.log('changes detected in aol-style-icon: ', changes); - }; - StyleIconComponent.decorators = [ - { type: core_1.Component, args: [{ - selector: 'aol-style-icon', - template: "
", - },] }, - ]; - /** @nocollapse */ - StyleIconComponent.ctorParameters = function () { return [ - { type: StyleComponent, decorators: [{ type: core_1.Host },] }, - ]; }; - StyleIconComponent.propDecorators = { - 'anchor': [{ type: core_1.Input },], - 'anchorXUnits': [{ type: core_1.Input },], - 'anchorYUnits': [{ type: core_1.Input },], - 'anchorOrigin': [{ type: core_1.Input },], - 'color': [{ type: core_1.Input },], - 'crossOrigin': [{ type: core_1.Input },], - 'img': [{ type: core_1.Input },], - 'offset': [{ type: core_1.Input },], - 'offsetOrigin': [{ type: core_1.Input },], - 'opacity': [{ type: core_1.Input },], - 'scale': [{ type: core_1.Input },], - 'snapToPixel': [{ type: core_1.Input },], - 'rotateWithView': [{ type: core_1.Input },], - 'rotation': [{ type: core_1.Input },], - 'size': [{ type: core_1.Input },], - 'imgSize': [{ type: core_1.Input },], - 'src': [{ type: core_1.Input },], - }; - return StyleIconComponent; -}()); -exports.StyleIconComponent = StyleIconComponent; -var StyleStrokeComponent = (function () { - function StyleStrokeComponent(styleHost, styleCircleHost, styleTextHost) { - if (!styleHost) { - throw new Error('aol-style-stroke must be a descendant of aol-style'); - } - if (!!styleTextHost) { - this.host = styleTextHost; - } - else if (!!styleCircleHost) { - this.host = styleCircleHost; - } - else { - this.host = styleHost; - } - // console.log('creating aol-style-stroke with: ', this); - } - StyleStrokeComponent.prototype.ngOnInit = function () { - // console.log('creating ol.style.Stroke instance with: ', this); - this.instance = new openlayers_1.style.Stroke(this); - switch (this.host.componentType) { - case 'style': - this.host.instance.setStroke(this.instance); - // console.log('setting ol.style instance\'s stroke:', this.host); - break; - case 'style-text': - this.host.instance.setStroke(this.instance); - break; - case 'style-circle': - this.host.stroke = this.instance; - // console.log('setting ol.style.circle instance\'s stroke:', this.host); - break; - default: - throw new Error('unknown host type: ' + this.host); - } - }; - StyleStrokeComponent.prototype.ngOnChanges = function (changes) { - if (!this.instance) { - return; - } - if (changes['color']) { - this.instance.setColor(changes['color'].currentValue); - } - if (changes['lineCap']) { - this.instance.setLineCap(changes['lineCap'].currentValue); - } - if (changes['lineDash']) { - this.instance.setLineDash(changes['lineDash'].currentValue); - } - if (changes['lineJoin']) { - this.instance.setLineJoin(changes['lineJoin'].currentValue); - } - if (changes['miterLimit']) { - this.instance.setMiterLimit(changes['miterLimit'].currentValue); - } - if (changes['width']) { - this.instance.setWidth(changes['width'].currentValue); - } - this.host.update(); - // console.log('changes detected in aol-style-stroke, setting new properties: ', changes); - }; - StyleStrokeComponent.decorators = [ - { type: core_1.Component, args: [{ - selector: 'aol-style-stroke', - template: "
", - },] }, - ]; - /** @nocollapse */ - StyleStrokeComponent.ctorParameters = function () { return [ - { type: StyleComponent, decorators: [{ type: core_1.Optional },] }, - { type: StyleCircleComponent, decorators: [{ type: core_1.Optional },] }, - { type: StyleTextComponent, decorators: [{ type: core_1.Optional },] }, - ]; }; - StyleStrokeComponent.propDecorators = { - 'color': [{ type: core_1.Input },], - 'lineCap': [{ type: core_1.Input },], - 'lineDash': [{ type: core_1.Input },], - 'lineJoin': [{ type: core_1.Input },], - 'miterLimit': [{ type: core_1.Input },], - 'width': [{ type: core_1.Input },], - }; - return StyleStrokeComponent; -}()); -exports.StyleStrokeComponent = StyleStrokeComponent; -var StyleTextComponent = (function () { - function StyleTextComponent(host) { - this.host = host; - this.componentType = 'style-text'; - if (!host) { - throw new Error('aol-style-text must be a descendant of aol-style'); - } - // console.log('creating aol-style-text with: ', this); - } - StyleTextComponent.prototype.ngOnInit = function () { - // console.log('creating ol.style.Text instance with: ', this); - this.instance = new openlayers_1.style.Text(this); - this.host.instance.setText(this.instance); - }; - StyleTextComponent.prototype.ngOnChanges = function (changes) { - if (!this.instance) { - return; - } - if (changes['font']) { - this.instance.setFont(changes['font'].currentValue); - } - if (changes['offsetX']) { - this.instance.setOffsetX(changes['offsetX'].currentValue); - } - if (changes['offsetY']) { - this.instance.setOffsetY(changes['offsetY'].currentValue); - } - if (changes['scale']) { - this.instance.setScale(changes['scale'].currentValue); - } - if (changes['rotation']) { - this.instance.setRotation(changes['rotation'].currentValue); - } - if (changes['text']) { - this.instance.setText(changes['text'].currentValue); - } - if (changes['textAlign']) { - this.instance.setTextAlign(changes['textAlign'].currentValue); - } - if (changes['textBaseLine']) { - this.instance.setTextBaseline(changes['textBaseLine'].currentValue); - } - this.host.update(); - // console.log('changes detected in aol-style-text, setting new properties: ', changes); - }; - StyleTextComponent.decorators = [ - { type: core_1.Component, args: [{ - selector: 'aol-style-text', - template: "
", - },] }, - ]; - /** @nocollapse */ - StyleTextComponent.ctorParameters = function () { return [ - { type: StyleComponent, decorators: [{ type: core_1.Optional },] }, - ]; }; - StyleTextComponent.propDecorators = { - 'font': [{ type: core_1.Input },], - 'offsetX': [{ type: core_1.Input },], - 'offsetY': [{ type: core_1.Input },], - 'scale': [{ type: core_1.Input },], - 'rotateWithView': [{ type: core_1.Input },], - 'rotation': [{ type: core_1.Input },], - 'text': [{ type: core_1.Input },], - 'textAlign': [{ type: core_1.Input },], - 'textBaseLine': [{ type: core_1.Input },], - }; - return StyleTextComponent; -}()); -exports.StyleTextComponent = StyleTextComponent; -//# sourceMappingURL=style.components.js.map \ No newline at end of file diff --git a/dist/components/style.components.js.map b/dist/components/style.components.js.map deleted file mode 100644 index 84893a88..00000000 --- a/dist/components/style.components.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"style.components.js","sourceRoot":"","sources":["../../src/components/style.components.ts"],"names":[],"mappings":";AAAA,qBAAgH,eAAe,CAAC,CAAA;AAChI,2BAAqE,YAAY,CAAC,CAAA;AAClF,kCAAiC,qBAAqB,CAAC,CAAA;AACvD,uBAAqC,UAAU,CAAC,CAAA;AAGhD;IAYE,wBACG,WAA6B,EAC7B,SAA+B;QAX3B,kBAAa,GAAW,OAAO,CAAC;QAarC,qCAAqC;QACrC,IAAI,CAAC,IAAI,GAAG,CAAC,CAAC,WAAW,GAAG,WAAW,GAAG,SAAS,CAAC;QACpD,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;YACf,MAAM,IAAI,KAAK,CAAC,mDAAmD,CAAC,CAAC;QACvE,CAAC;IACH,CAAC;IAED,+BAAM,GAAN;QACE,sDAAsD;QACtD,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC;IAC/B,CAAC;IAED,iCAAQ,GAAR;QACE,2DAA2D;QAC3D,IAAI,CAAC,QAAQ,GAAG,IAAI,kBAAK,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QACtC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC7C,CAAC;IACI,yBAAU,GAA0B;QAC3C,EAAE,IAAI,EAAE,gBAAS,EAAE,IAAI,EAAE,CAAC;oBACxB,QAAQ,EAAE,WAAW;oBACrB,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,EAAE;QAC3B,gBAAgB,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;QACpC,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;QAC9B,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;QAC1B,WAAW,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;QAC/B,cAAc,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;KACjC,CAAC;IACF,yBAAC;AAAD,CAAC,AA/ED,IA+EC;AA/EY,0BAAkB,qBA+E9B,CAAA"} \ No newline at end of file diff --git a/dist/components/style.components.metadata.json b/dist/components/style.components.metadata.json deleted file mode 100644 index 814ef7b4..00000000 --- a/dist/components/style.components.metadata.json +++ /dev/null @@ -1 +0,0 @@ -[{"__symbolic":"module","version":3,"metadata":{"StyleComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-style","template":""}]}],"members":{"geometry":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"fill":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"image":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"stroke":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"text":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"zIndex":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}]],"parameters":[{"__symbolic":"reference","module":"./feature.component","name":"FeatureComponent"},{"__symbolic":"reference","module":"./layers","name":"LayerVectorComponent"}]}],"update":[{"__symbolic":"method"}],"ngOnInit":[{"__symbolic":"method"}]}},"StyleCircleComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-style-circle","template":""}]}],"members":{"fill":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"radius":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"snapToPixel":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"stroke":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"atlasManager":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Host"}}]],"parameters":[{"__symbolic":"reference","name":"StyleComponent"}]}],"update":[{"__symbolic":"method"}],"ngAfterContentInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}},"StyleFillComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-style-fill","template":"
"}]}],"members":{"color":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}]],"parameters":[{"__symbolic":"reference","name":"StyleComponent"},{"__symbolic":"reference","name":"StyleCircleComponent"},{"__symbolic":"reference","name":"StyleTextComponent"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}]}},"StyleIconComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-style-icon","template":"
"}]}],"members":{"anchor":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"anchorXUnits":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"anchorYUnits":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"anchorOrigin":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"color":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"crossOrigin":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"img":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"offset":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"offsetOrigin":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"opacity":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"scale":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"snapToPixel":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"rotateWithView":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"rotation":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"size":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"imgSize":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"src":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Host"}}]],"parameters":[{"__symbolic":"reference","name":"StyleComponent"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}]}},"StyleStrokeComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-style-stroke","template":"
"}]}],"members":{"color":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"lineCap":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"lineDash":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"lineJoin":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"miterLimit":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"width":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}]],"parameters":[{"__symbolic":"reference","name":"StyleComponent"},{"__symbolic":"reference","name":"StyleCircleComponent"},{"__symbolic":"reference","name":"StyleTextComponent"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}]}},"StyleTextComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-style-text","template":"
"}]}],"members":{"font":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"offsetX":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"offsetY":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"scale":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"rotateWithView":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"rotation":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"text":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"textAlign":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"textBaseLine":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}]],"parameters":[{"__symbolic":"reference","name":"StyleComponent"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"StyleComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-style","template":""}]}],"members":{"geometry":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"fill":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"image":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"stroke":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"text":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"zIndex":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}]],"parameters":[{"__symbolic":"reference","module":"./feature.component","name":"FeatureComponent"},{"__symbolic":"reference","module":"./layers","name":"LayerVectorComponent"}]}],"update":[{"__symbolic":"method"}],"ngOnInit":[{"__symbolic":"method"}]}},"StyleCircleComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-style-circle","template":""}]}],"members":{"fill":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"radius":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"snapToPixel":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"stroke":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"atlasManager":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Host"}}]],"parameters":[{"__symbolic":"reference","name":"StyleComponent"}]}],"update":[{"__symbolic":"method"}],"ngAfterContentInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}},"StyleFillComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-style-fill","template":"
"}]}],"members":{"color":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}]],"parameters":[{"__symbolic":"reference","name":"StyleComponent"},{"__symbolic":"reference","name":"StyleCircleComponent"},{"__symbolic":"reference","name":"StyleTextComponent"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}]}},"StyleIconComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-style-icon","template":"
"}]}],"members":{"anchor":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"anchorXUnits":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"anchorYUnits":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"anchorOrigin":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"color":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"crossOrigin":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"img":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"offset":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"offsetOrigin":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"opacity":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"scale":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"snapToPixel":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"rotateWithView":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"rotation":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"size":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"imgSize":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"src":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Host"}}]],"parameters":[{"__symbolic":"reference","name":"StyleComponent"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}]}},"StyleStrokeComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-style-stroke","template":"
"}]}],"members":{"color":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"lineCap":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"lineDash":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"lineJoin":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"miterLimit":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"width":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}]],"parameters":[{"__symbolic":"reference","name":"StyleComponent"},{"__symbolic":"reference","name":"StyleCircleComponent"},{"__symbolic":"reference","name":"StyleTextComponent"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}]}},"StyleTextComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-style-text","template":"
"}]}],"members":{"font":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"offsetX":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"offsetY":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"scale":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"rotateWithView":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"rotation":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"text":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"textAlign":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"textBaseLine":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}]],"parameters":[{"__symbolic":"reference","name":"StyleComponent"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}]}}}}] \ No newline at end of file diff --git a/dist/components/styles/circle.component.d.ts b/dist/components/styles/circle.component.d.ts deleted file mode 100644 index 3fafc99b..00000000 --- a/dist/components/styles/circle.component.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -/// -import { AfterContentInit, OnChanges, OnDestroy, SimpleChanges } from '@angular/core'; -import { style } from 'openlayers'; -import { StyleComponent } from './style.component'; -export declare class StyleCircleComponent implements AfterContentInit, OnChanges, OnDestroy { - private host; - componentType: string; - instance: style.Circle; - fill: style.Fill; - radius: number; - snapToPixel: boolean; - stroke: style.Stroke; - atlasManager: style.AtlasManager; - constructor(host: StyleComponent); - /** - * WORK-AROUND: since the re-rendering is not triggered on style change - * we trigger a radius change. - * see openlayers #6233 and #5775 - */ - update(): void; - ngAfterContentInit(): void; - ngOnChanges(changes: SimpleChanges): void; - ngOnDestroy(): void; -} diff --git a/dist/components/styles/circle.component.js b/dist/components/styles/circle.component.js deleted file mode 100644 index 5093ac07..00000000 --- a/dist/components/styles/circle.component.js +++ /dev/null @@ -1,61 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -var core_1 = require("@angular/core"); -var openlayers_1 = require("openlayers"); -var style_component_1 = require("./style.component"); -var StyleCircleComponent = (function () { - function StyleCircleComponent(host) { - this.host = host; - this.componentType = 'style-circle'; - } - /** - * WORK-AROUND: since the re-rendering is not triggered on style change - * we trigger a radius change. - * see openlayers #6233 and #5775 - */ - StyleCircleComponent.prototype.update = function () { - if (!!this.instance) { - // console.log('setting ol.style.Circle instance\'s radius'); - this.instance.setRadius(this.radius); - } - }; - StyleCircleComponent.prototype.ngAfterContentInit = function () { - // console.log('creating ol.style.Circle instance with: ', this); - this.instance = new openlayers_1.style.Circle(this); - this.host.instance.setImage(this.instance); - this.host.update(); - }; - StyleCircleComponent.prototype.ngOnChanges = function (changes) { - if (!this.instance) { - return; - } - if (changes['radius']) { - this.instance.setRadius(changes['radius'].currentValue); - } - // console.log('changes detected in aol-style-circle, setting new radius: ', changes['radius'].currentValue); - }; - StyleCircleComponent.prototype.ngOnDestroy = function () { - // console.log('removing aol-style-circle'); - this.host.instance.setImage(null); - }; - return StyleCircleComponent; -}()); -StyleCircleComponent.decorators = [ - { type: core_1.Component, args: [{ - selector: 'aol-style-circle', - template: "" - },] }, -]; -/** @nocollapse */ -StyleCircleComponent.ctorParameters = function () { return [ - { type: style_component_1.StyleComponent, decorators: [{ type: core_1.Host },] }, -]; }; -StyleCircleComponent.propDecorators = { - 'fill': [{ type: core_1.Input },], - 'radius': [{ type: core_1.Input },], - 'snapToPixel': [{ type: core_1.Input },], - 'stroke': [{ type: core_1.Input },], - 'atlasManager': [{ type: core_1.Input },], -}; -exports.StyleCircleComponent = StyleCircleComponent; -//# sourceMappingURL=circle.component.js.map \ No newline at end of file diff --git a/dist/components/styles/circle.component.js.map b/dist/components/styles/circle.component.js.map deleted file mode 100644 index b3c0ea58..00000000 --- a/dist/components/styles/circle.component.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../../../src/components/styles/circle.component.ts"],"names":[],"mappings":";;AAAA,sCAA8G;AAC9G,yCAAmC;AACnC,qDAAmD;AAGnD;IAUE,8BAAqB,IAAoB;QAApB,SAAI,GAAJ,IAAI,CAAgB;QATlC,kBAAa,GAAW,cAAc,CAAC;IAU9C,CAAC;IAED;;;;OAIG;IACH,qCAAM,GAAN;QACE,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;YACpB,6DAA6D;YAC7D,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACvC,CAAC;IACH,CAAC;IAED,i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E,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IACjC,QAAQ,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IAC5B,cAAc,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;CACjC,CAAC;AA9DW,oDAAoB","file":"circle.component.js","sourceRoot":""} \ No newline at end of file diff --git a/dist/components/styles/circle.component.metadata.json b/dist/components/styles/circle.component.metadata.json deleted file mode 100644 index bdb60a07..00000000 --- a/dist/components/styles/circle.component.metadata.json +++ /dev/null @@ -1 +0,0 @@ -[{"__symbolic":"module","version":3,"metadata":{"StyleCircleComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-style-circle","template":""}]}],"members":{"fill":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"radius":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"snapToPixel":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"stroke":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"atlasManager":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Host"}}]],"parameters":[{"__symbolic":"reference","module":"./style.component","name":"StyleComponent"}]}],"update":[{"__symbolic":"method"}],"ngAfterContentInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"StyleCircleComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-style-circle","template":""}]}],"members":{"fill":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"radius":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"snapToPixel":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"stroke":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"atlasManager":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Host"}}]],"parameters":[{"__symbolic":"reference","module":"./style.component","name":"StyleComponent"}]}],"update":[{"__symbolic":"method"}],"ngAfterContentInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}}}}] \ No newline at end of file diff --git a/dist/components/styles/fill.component.d.ts b/dist/components/styles/fill.component.d.ts deleted file mode 100644 index 90cfc835..00000000 --- a/dist/components/styles/fill.component.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -/// -import { OnInit, OnChanges, SimpleChanges } from '@angular/core'; -import { style, Color, ColorLike } from 'openlayers'; -import { StyleComponent } from './style.component'; -import { StyleCircleComponent } from './circle.component'; -import { StyleTextComponent } from './text.component'; -export declare class StyleFillComponent implements OnInit, OnChanges { - private host; - instance: style.Fill; - color: Color | ColorLike; - constructor(styleHost: StyleComponent, styleCircleHost: StyleCircleComponent, styleTextHost: StyleTextComponent); - ngOnInit(): void; - ngOnChanges(changes: SimpleChanges): void; -} diff --git a/dist/components/styles/fill.component.js b/dist/components/styles/fill.component.js deleted file mode 100644 index 540b9705..00000000 --- a/dist/components/styles/fill.component.js +++ /dev/null @@ -1,71 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -var core_1 = require("@angular/core"); -var openlayers_1 = require("openlayers"); -var style_component_1 = require("./style.component"); -var circle_component_1 = require("./circle.component"); -var text_component_1 = require("./text.component"); -var StyleFillComponent = (function () { - function StyleFillComponent(styleHost, styleCircleHost, styleTextHost) { - if (!styleHost) { - throw new Error('aol-style-stroke must be a descendant of aol-style'); - } - if (!!styleTextHost) { - this.host = styleTextHost; - } - else if (!!styleCircleHost) { - this.host = styleCircleHost; - } - else { - this.host = styleHost; - } - // console.log('creating aol-style-fill with: ', this); - } - StyleFillComponent.prototype.ngOnInit = function () { - // console.log('creating ol.style.Fill instance with: ', this); - this.instance = new openlayers_1.style.Fill(this); - switch (this.host.componentType) { - case 'style': - this.host.instance.setFill(this.instance); - // console.log('setting ol.style instance\'s fill:', this.host); - break; - case 'style-text': - this.host.instance.setFill(this.instance); - break; - case 'style-circle': - this.host.fill = this.instance; - // console.log('setting ol.style.circle instance\'s fill:', this.host); - break; - default: - throw new Error('unknown host type: ' + this.host); - } - }; - StyleFillComponent.prototype.ngOnChanges = function (changes) { - if (!this.instance) { - return; - } - if (changes['color']) { - this.instance.setColor(changes['color'].currentValue); - } - this.host.update(); - // console.log('changes detected in aol-style-fill, setting new color: ', changes); - }; - return StyleFillComponent; -}()); -StyleFillComponent.decorators = [ - { type: core_1.Component, args: [{ - selector: 'aol-style-fill', - template: "
", - },] }, -]; -/** @nocollapse */ -StyleFillComponent.ctorParameters = function () { return [ - { type: style_component_1.StyleComponent, decorators: [{ type: core_1.Optional },] }, - { type: circle_component_1.StyleCircleComponent, decorators: [{ type: core_1.Optional },] }, - { type: text_component_1.StyleTextComponent, decorators: [{ type: core_1.Optional },] }, -]; }; -StyleFillComponent.propDecorators = { - 'color': [{ type: core_1.Input },], -}; -exports.StyleFillComponent = StyleFillComponent; -//# sourceMappingURL=fill.component.js.map \ No newline at end of file diff --git a/dist/components/styles/fill.component.js.map b/dist/components/styles/fill.component.js.map deleted file mode 100644 index 48e7dd85..00000000 --- a/dist/components/styles/fill.component.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../../../src/components/styles/fill.component.ts"],"names":[],"mappings":";;AAAA,sCAA6F;AAC7F,yCAAqD;AACrD,qDAAmD;AACnD,uDAA0D;AAC1D,mDAAsD;AAGtD;IAOE,4BACG,SAAyB,EACzB,eAAqC,EACrC,aAAiC;QAElC,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC;YACf,MAAM,IAAI,KAAK,CAAC,oDAAoD,CAAC,CAAC;QACxE,CAAC;QACD,EAAE,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC;YACpB,IAAI,CAAC,IAAI,GAAG,aAAa,CAAC;QAC5B,CAAC;QAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC;YAC7B,IAAI,CAAC,IAAI,GAAG,eAAe,CAAC;QAC9B,CAAC;QAAC,IAAI,CAAC,CAAC;YACN,IAAI,CAAC,IAAI,GAAG,SAAS,CAAC;QACxB,CAAC;QACD,uDAAuD;IACzD,CAAC;IAED,qCAAQ,GAAR;QACE,+DAA+D;QAC/D,IAAI,CAAC,QAAQ,GAAG,IAAI,kBAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACrC,MAAM,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC;YAChC,KAAK,OAAO;gBACV,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;gBAC1C,gEAAgE;gBAChE,KAAK,CAAC;YACR,KAAK,YAAY;gBACf,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;gBA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AAE,IAAI,EAAE,YAAK,EAAE,EAAE;CAC1B,CAAC;AAtEW,gDAAkB","file":"fill.component.js","sourceRoot":""} \ No newline at end of file diff --git a/dist/components/styles/fill.component.metadata.json b/dist/components/styles/fill.component.metadata.json deleted file mode 100644 index 1767f61f..00000000 --- a/dist/components/styles/fill.component.metadata.json +++ /dev/null @@ -1 +0,0 @@ -[{"__symbolic":"module","version":3,"metadata":{"StyleFillComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-style-fill","template":"
"}]}],"members":{"color":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}]],"parameters":[{"__symbolic":"reference","module":"./style.component","name":"StyleComponent"},{"__symbolic":"reference","module":"./circle.component","name":"StyleCircleComponent"},{"__symbolic":"reference","module":"./text.component","name":"StyleTextComponent"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"StyleFillComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-style-fill","template":"
"}]}],"members":{"color":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}]],"parameters":[{"__symbolic":"reference","module":"./style.component","name":"StyleComponent"},{"__symbolic":"reference","module":"./circle.component","name":"StyleCircleComponent"},{"__symbolic":"reference","module":"./text.component","name":"StyleTextComponent"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}]}}}}] \ No newline at end of file diff --git a/dist/components/styles/icon.component.d.ts b/dist/components/styles/icon.component.d.ts deleted file mode 100644 index d99badf1..00000000 --- a/dist/components/styles/icon.component.d.ts +++ /dev/null @@ -1,28 +0,0 @@ -/// -import { OnInit, OnChanges, SimpleChanges } from '@angular/core'; -import { style } from 'openlayers'; -import { StyleComponent } from './style.component'; -export declare class StyleIconComponent implements OnInit, OnChanges { - private host; - instance: style.Icon; - anchor: [number, number]; - anchorXUnits: style.IconAnchorUnits; - anchorYUnits: style.IconAnchorUnits; - anchorOrigin: style.IconOrigin; - color: [number, number, number, number]; - crossOrigin: style.IconOrigin; - img: string; - offset: [number, number]; - offsetOrigin: style.IconOrigin; - opacity: number; - scale: number; - snapToPixel: boolean; - rotateWithView: boolean; - rotation: number; - size: [number, number]; - imgSize: [number, number]; - src: string; - constructor(host: StyleComponent); - ngOnInit(): void; - ngOnChanges(changes: SimpleChanges): void; -} diff --git a/dist/components/styles/icon.component.js b/dist/components/styles/icon.component.js deleted file mode 100644 index 6f73e635..00000000 --- a/dist/components/styles/icon.component.js +++ /dev/null @@ -1,67 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -var core_1 = require("@angular/core"); -var openlayers_1 = require("openlayers"); -var style_component_1 = require("./style.component"); -var StyleIconComponent = (function () { - function StyleIconComponent(host) { - this.host = host; - } - StyleIconComponent.prototype.ngOnInit = function () { - // console.log('creating ol.style.Icon instance with: ', this); - this.instance = new openlayers_1.style.Icon(this); - this.host.instance.setImage(this.instance); - }; - StyleIconComponent.prototype.ngOnChanges = function (changes) { - if (!this.instance) { - return; - } - if (changes['opacity']) { - this.instance.setOpacity(changes['opacity'].currentValue); - } - if (changes['rotation']) { - this.instance.setRotation(changes['rotation'].currentValue); - } - if (changes['scale']) { - this.instance.setScale(changes['scale'].currentValue); - } - if (changes['src']) { - this.instance = new openlayers_1.style.Icon(this); - this.host.instance.setImage(this.instance); - } - this.host.update(); - // console.log('changes detected in aol-style-icon: ', changes); - }; - return StyleIconComponent; -}()); -StyleIconComponent.decorators = [ - { type: core_1.Component, args: [{ - selector: 'aol-style-icon', - template: "
", - },] }, -]; -/** @nocollapse */ -StyleIconComponent.ctorParameters = function () { return [ - { type: style_component_1.StyleComponent, decorators: [{ type: core_1.Host },] }, -]; }; -StyleIconComponent.propDecorators = { - 'anchor': [{ type: core_1.Input },], - 'anchorXUnits': [{ type: core_1.Input },], - 'anchorYUnits': [{ type: core_1.Input },], - 'anchorOrigin': [{ type: core_1.Input },], - 'color': [{ type: core_1.Input },], - 'crossOrigin': [{ type: core_1.Input },], - 'img': [{ type: core_1.Input },], - 'offset': [{ type: core_1.Input },], - 'offsetOrigin': [{ type: core_1.Input },], - 'opacity': [{ type: core_1.Input },], - 'scale': [{ type: core_1.Input },], - 'snapToPixel': [{ type: core_1.Input },], - 'rotateWithView': [{ type: core_1.Input },], - 'rotation': [{ type: core_1.Input },], - 'size': [{ type: core_1.Input },], - 'imgSize': [{ type: core_1.Input },], - 'src': [{ type: core_1.Input },], -}; -exports.StyleIconComponent = StyleIconComponent; -//# sourceMappingURL=icon.component.js.map \ No newline at end of file diff --git a/dist/components/styles/icon.component.js.map b/dist/components/styles/icon.component.js.map deleted file mode 100644 index 5af5f8e1..00000000 --- a/dist/components/styles/icon.component.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../../../src/components/styles/icon.component.ts"],"names":[],"mappings":";;AAAA,sCAAyF;AACzF,yCAAmC;AACnC,qDAAmD;AAGnD;IAsBE,4BAAqB,IAAoB;QAApB,SAAI,GAAJ,IAAI,CAAgB;IACzC,CAAC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K,EAAE,EAAE;IAC1B,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IAC7B,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;CACxB,CAAC;AA/EW,gDAAkB","file":"icon.component.js","sourceRoot":""} \ No newline at end of file diff --git a/dist/components/styles/icon.component.metadata.json b/dist/components/styles/icon.component.metadata.json deleted file mode 100644 index 6b1bdfd9..00000000 --- a/dist/components/styles/icon.component.metadata.json +++ /dev/null @@ -1 +0,0 @@ -[{"__symbolic":"module","version":3,"metadata":{"StyleIconComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-style-icon","template":"
"}]}],"members":{"anchor":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"anchorXUnits":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"anchorYUnits":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"anchorOrigin":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"color":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"crossOrigin":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"img":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"offset":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"offsetOrigin":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"opacity":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"scale":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"snapToPixel":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"rotateWithView":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"rotation":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"size":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"imgSize":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"src":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Host"}}]],"parameters":[{"__symbolic":"reference","module":"./style.component","name":"StyleComponent"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"StyleIconComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-style-icon","template":"
"}]}],"members":{"anchor":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"anchorXUnits":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"anchorYUnits":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"anchorOrigin":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"color":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"crossOrigin":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"img":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"offset":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"offsetOrigin":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"opacity":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"scale":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"snapToPixel":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"rotateWithView":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"rotation":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"size":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"imgSize":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"src":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Host"}}]],"parameters":[{"__symbolic":"reference","module":"./style.component","name":"StyleComponent"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}]}}}}] \ No newline at end of file diff --git a/dist/components/styles/index.d.ts b/dist/components/styles/index.d.ts deleted file mode 100644 index 9678ddda..00000000 --- a/dist/components/styles/index.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -export * from './circle.component'; -export * from './fill.component'; -export * from './icon.component'; -export * from './stroke.component'; -export * from './style.component'; -export * from './text.component'; diff --git a/dist/components/styles/index.js b/dist/components/styles/index.js deleted file mode 100644 index 72379c12..00000000 --- a/dist/components/styles/index.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -function __export(m) { - for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; -} -Object.defineProperty(exports, "__esModule", { value: true }); -__export(require("./circle.component")); -__export(require("./fill.component")); -__export(require("./icon.component")); -__export(require("./stroke.component")); -__export(require("./style.component")); -__export(require("./text.component")); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/components/styles/index.js.map b/dist/components/styles/index.js.map deleted file mode 100644 index 64f203d1..00000000 --- a/dist/components/styles/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../../../src/components/styles/index.ts"],"names":[],"mappings":";;;;;AAAA,wCAAmC;AACnC,sCAAiC;AACjC,sCAAiC;AACjC,wCAAmC;AACnC,uCAAkC;AAClC,sCAAiC","file":"index.js","sourceRoot":""} \ No newline at end of file diff --git a/dist/components/styles/index.metadata.json b/dist/components/styles/index.metadata.json deleted file mode 100644 index b7db7372..00000000 --- a/dist/components/styles/index.metadata.json +++ /dev/null @@ -1 +0,0 @@ -[{"__symbolic":"module","version":3,"metadata":{},"exports":[{"from":"./circle.component"},{"from":"./fill.component"},{"from":"./icon.component"},{"from":"./stroke.component"},{"from":"./style.component"},{"from":"./text.component"}]},{"__symbolic":"module","version":1,"metadata":{},"exports":[{"from":"./circle.component"},{"from":"./fill.component"},{"from":"./icon.component"},{"from":"./stroke.component"},{"from":"./style.component"},{"from":"./text.component"}]}] \ No newline at end of file diff --git a/dist/components/styles/stroke.component.d.ts b/dist/components/styles/stroke.component.d.ts deleted file mode 100644 index ff5f192b..00000000 --- a/dist/components/styles/stroke.component.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -/// -import { OnInit, OnChanges, SimpleChanges } from '@angular/core'; -import { style, Color } from 'openlayers'; -import { StyleComponent } from './style.component'; -import { StyleCircleComponent } from './circle.component'; -import { StyleTextComponent } from './text.component'; -export declare class StyleStrokeComponent implements OnInit, OnChanges { - instance: style.Stroke; - private host; - color: Color | undefined; - lineCap: string | undefined; - lineDash: number[] | undefined; - lineJoin: string | undefined; - miterLimit: number | undefined; - width: number | undefined; - constructor(styleHost: StyleComponent, styleCircleHost: StyleCircleComponent, styleTextHost: StyleTextComponent); - ngOnInit(): void; - ngOnChanges(changes: SimpleChanges): void; -} diff --git a/dist/components/styles/stroke.component.js b/dist/components/styles/stroke.component.js deleted file mode 100644 index 5254dd84..00000000 --- a/dist/components/styles/stroke.component.js +++ /dev/null @@ -1,91 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -var core_1 = require("@angular/core"); -var openlayers_1 = require("openlayers"); -var style_component_1 = require("./style.component"); -var circle_component_1 = require("./circle.component"); -var text_component_1 = require("./text.component"); -var StyleStrokeComponent = (function () { - function StyleStrokeComponent(styleHost, styleCircleHost, styleTextHost) { - if (!styleHost) { - throw new Error('aol-style-stroke must be a descendant of aol-style'); - } - if (!!styleTextHost) { - this.host = styleTextHost; - } - else if (!!styleCircleHost) { - this.host = styleCircleHost; - } - else { - this.host = styleHost; - } - // console.log('creating aol-style-stroke with: ', this); - } - StyleStrokeComponent.prototype.ngOnInit = function () { - // console.log('creating ol.style.Stroke instance with: ', this); - this.instance = new openlayers_1.style.Stroke(this); - switch (this.host.componentType) { - case 'style': - this.host.instance.setStroke(this.instance); - // console.log('setting ol.style instance\'s stroke:', this.host); - break; - case 'style-text': - this.host.instance.setStroke(this.instance); - break; - case 'style-circle': - this.host.stroke = this.instance; - // console.log('setting ol.style.circle instance\'s stroke:', this.host); - break; - default: - throw new Error('unknown host type: ' + this.host); - } - }; - StyleStrokeComponent.prototype.ngOnChanges = function (changes) { - if (!this.instance) { - return; - } - if (changes['color']) { - this.instance.setColor(changes['color'].currentValue); - } - if (changes['lineCap']) { - this.instance.setLineCap(changes['lineCap'].currentValue); - } - if (changes['lineDash']) { - this.instance.setLineDash(changes['lineDash'].currentValue); - } - if (changes['lineJoin']) { - this.instance.setLineJoin(changes['lineJoin'].currentValue); - } - if (changes['miterLimit']) { - this.instance.setMiterLimit(changes['miterLimit'].currentValue); - } - if (changes['width']) { - this.instance.setWidth(changes['width'].currentValue); - } - this.host.update(); - // console.log('changes detected in aol-style-stroke, setting new properties: ', changes); - }; - return StyleStrokeComponent; -}()); -StyleStrokeComponent.decorators = [ - { type: core_1.Component, args: [{ - selector: 'aol-style-stroke', - template: "
", - },] }, -]; -/** @nocollapse */ -StyleStrokeComponent.ctorParameters = function () { return [ - { type: style_component_1.StyleComponent, decorators: [{ type: core_1.Optional },] }, - { type: circle_component_1.StyleCircleComponent, decorators: [{ type: core_1.Optional },] }, - { type: text_component_1.StyleTextComponent, decorators: [{ type: core_1.Optional },] }, -]; }; -StyleStrokeComponent.propDecorators = { - 'color': [{ type: core_1.Input },], - 'lineCap': [{ type: core_1.Input },], - 'lineDash': [{ type: core_1.Input },], - 'lineJoin': [{ type: core_1.Input },], - 'miterLimit': [{ type: core_1.Input },], - 'width': [{ type: core_1.Input },], -}; -exports.StyleStrokeComponent = StyleStrokeComponent; -//# sourceMappingURL=stroke.component.js.map \ No newline at end of file diff --git a/dist/components/styles/stroke.component.js.map b/dist/components/styles/stroke.component.js.map deleted file mode 100644 index 4b8982e9..00000000 --- a/dist/components/styles/stroke.component.js.map +++ /dev/null @@ -1 +0,0 @@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ACD,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;QACnB,0FAA0F;IAC5F,CAAC;IAqBH,2BAAC;AAAD,CAhGA,AAgGC;AApBM,+BAAU,GAA0B;IAC3C,EAAE,IAAI,EAAE,gBAAS,EAAE,IAAI,EAAE,CAAC;gBACxB,QAAQ,EAAE,kBAAkB;gBAC5B,QAAQ,EAAE,wCAAsC;aACjD,EAAG,EAAE;CACL,CAAC;AACF,kBAAkB;AACX,mCAAc,GAAmE,cAAM,OAAA;IAC9F,EAAC,IAAI,EAAE,gCAAc,EAAE,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,eAAQ,EAAE,EAAG,EAAC;IAC1D,EAAC,IAAI,EAAE,uCAAoB,EAAE,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,eAAQ,EAAE,EAAG,EAAC;IAChE,EAAC,IAAI,EAAE,mCAAkB,EAAE,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,eAAQ,EAAE,EAAG,EAAC;CAC7D,EAJ6F,CAI7F,CAAC;AACK,mCAAc,GAA2C;IAChE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IAC3B,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IAC7B,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IAC9B,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IAC9B,YAAY,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IAChC,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;CAC1B,CAAC;AA/FW,oDAAoB","file":"stroke.component.js","sourceRoot":""} \ No newline at end of file diff --git a/dist/components/styles/stroke.component.metadata.json b/dist/components/styles/stroke.component.metadata.json deleted file mode 100644 index d76a290a..00000000 --- a/dist/components/styles/stroke.component.metadata.json +++ /dev/null @@ -1 +0,0 @@ -[{"__symbolic":"module","version":3,"metadata":{"StyleStrokeComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-style-stroke","template":"
"}]}],"members":{"color":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"lineCap":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"lineDash":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"lineJoin":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"miterLimit":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"width":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}]],"parameters":[{"__symbolic":"reference","module":"./style.component","name":"StyleComponent"},{"__symbolic":"reference","module":"./circle.component","name":"StyleCircleComponent"},{"__symbolic":"reference","module":"./text.component","name":"StyleTextComponent"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"StyleStrokeComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-style-stroke","template":"
"}]}],"members":{"color":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"lineCap":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"lineDash":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"lineJoin":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"miterLimit":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"width":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}]],"parameters":[{"__symbolic":"reference","module":"./style.component","name":"StyleComponent"},{"__symbolic":"reference","module":"./circle.component","name":"StyleCircleComponent"},{"__symbolic":"reference","module":"./text.component","name":"StyleTextComponent"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}]}}}}] \ No newline at end of file diff --git a/dist/components/styles/style.component.d.ts b/dist/components/styles/style.component.d.ts deleted file mode 100644 index 91e1167d..00000000 --- a/dist/components/styles/style.component.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -/// -import { OnInit } from '@angular/core'; -import { style, StyleGeometryFunction, geom } from 'openlayers'; -import { FeatureComponent } from '../feature.component'; -import { LayerVectorComponent } from '../layers'; -export declare class StyleComponent implements OnInit { - private host; - instance: style.Style; - componentType: string; - geometry: string | geom.Geometry | StyleGeometryFunction; - fill: style.Fill; - image: style.Image; - stroke: style.Stroke; - text: style.Text; - zIndex: number; - constructor(featureHost: FeatureComponent, layerHost: LayerVectorComponent); - update(): void; - ngOnInit(): void; -} diff --git a/dist/components/styles/style.component.js b/dist/components/styles/style.component.js deleted file mode 100644 index 216170dd..00000000 --- a/dist/components/styles/style.component.js +++ /dev/null @@ -1,47 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -var core_1 = require("@angular/core"); -var openlayers_1 = require("openlayers"); -var feature_component_1 = require("../feature.component"); -var layers_1 = require("../layers"); -var StyleComponent = (function () { - function StyleComponent(featureHost, layerHost) { - this.componentType = 'style'; - // console.log('creating aol-style'); - this.host = !!featureHost ? featureHost : layerHost; - if (!this.host) { - throw new Error('aol-style must be applied to a feature or a layer'); - } - } - StyleComponent.prototype.update = function () { - // console.log('updating style\'s host: ', this.host); - this.host.instance.changed(); - }; - StyleComponent.prototype.ngOnInit = function () { - // console.log('creating aol-style instance with: ', this); - this.instance = new openlayers_1.style.Style(this); - this.host.instance.setStyle(this.instance); - }; - return StyleComponent; -}()); -StyleComponent.decorators = [ - { type: core_1.Component, args: [{ - selector: 'aol-style', - template: "" - },] }, -]; -/** @nocollapse */ -StyleComponent.ctorParameters = function () { return [ - { type: feature_component_1.FeatureComponent, decorators: [{ type: core_1.Optional },] }, - { type: layers_1.LayerVectorComponent, decorators: [{ type: core_1.Optional },] }, -]; }; -StyleComponent.propDecorators = { - 'geometry': [{ type: core_1.Input },], - 'fill': [{ type: core_1.Input },], - 'image': [{ type: core_1.Input },], - 'stroke': [{ type: core_1.Input },], - 'text': [{ type: core_1.Input },], - 'zIndex': [{ type: core_1.Input },], -}; -exports.StyleComponent = StyleComponent; -//# sourceMappingURL=style.component.js.map \ No newline at end of file diff --git a/dist/components/styles/style.component.js.map b/dist/components/styles/style.component.js.map deleted file mode 100644 index b9c17fc1..00000000 --- a/dist/components/styles/style.component.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../../../src/components/styles/style.component.ts"],"names":[],"mappings":";;AAAA,sCAAmE;AACnE,yCAAgE;A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E,IAAI,EAAE,YAAK,EAAE,EAAE;IAC1B,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IAC3B,QAAQ,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IAC5B,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IAC1B,QAAQ,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;CAC3B,CAAC;AAnDW,wCAAc","file":"style.component.js","sourceRoot":""} \ No newline at end of file diff --git a/dist/components/styles/style.component.metadata.json b/dist/components/styles/style.component.metadata.json deleted file mode 100644 index 4851eaf4..00000000 --- a/dist/components/styles/style.component.metadata.json +++ /dev/null @@ -1 +0,0 @@ -[{"__symbolic":"module","version":3,"metadata":{"StyleComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-style","template":""}]}],"members":{"geometry":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"fill":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"image":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"stroke":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"text":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"zIndex":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}]],"parameters":[{"__symbolic":"reference","module":"../feature.component","name":"FeatureComponent"},{"__symbolic":"reference","module":"../layers","name":"LayerVectorComponent"}]}],"update":[{"__symbolic":"method"}],"ngOnInit":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"StyleComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-style","template":""}]}],"members":{"geometry":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"fill":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"image":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"stroke":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"text":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"zIndex":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}]],"parameters":[{"__symbolic":"reference","module":"../feature.component","name":"FeatureComponent"},{"__symbolic":"reference","module":"../layers","name":"LayerVectorComponent"}]}],"update":[{"__symbolic":"method"}],"ngOnInit":[{"__symbolic":"method"}]}}}}] \ No newline at end of file diff --git a/dist/components/styles/text.component.d.ts b/dist/components/styles/text.component.d.ts deleted file mode 100644 index a09ddf1e..00000000 --- a/dist/components/styles/text.component.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -/// -import { OnInit, OnChanges, SimpleChanges } from '@angular/core'; -import { style } from 'openlayers'; -import { StyleComponent } from './style.component'; -export declare class StyleTextComponent implements OnInit, OnChanges { - private host; - instance: style.Text; - componentType: string; - font: string | undefined; - offsetX: number | undefined; - offsetY: number | undefined; - scale: number | undefined; - rotateWithView: boolean | undefined; - rotation: number | undefined; - text: string | undefined; - textAlign: string | undefined; - textBaseLine: string | undefined; - constructor(host: StyleComponent); - ngOnInit(): void; - ngOnChanges(changes: SimpleChanges): void; -} diff --git a/dist/components/styles/text.component.js b/dist/components/styles/text.component.js deleted file mode 100644 index c0865894..00000000 --- a/dist/components/styles/text.component.js +++ /dev/null @@ -1,75 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -var core_1 = require("@angular/core"); -var openlayers_1 = require("openlayers"); -var style_component_1 = require("./style.component"); -var StyleTextComponent = (function () { - function StyleTextComponent(host) { - this.host = host; - this.componentType = 'style-text'; - if (!host) { - throw new Error('aol-style-text must be a descendant of aol-style'); - } - // console.log('creating aol-style-text with: ', this); - } - StyleTextComponent.prototype.ngOnInit = function () { - // console.log('creating ol.style.Text instance with: ', this); - this.instance = new openlayers_1.style.Text(this); - this.host.instance.setText(this.instance); - }; - StyleTextComponent.prototype.ngOnChanges = function (changes) { - if (!this.instance) { - return; - } - if (changes['font']) { - this.instance.setFont(changes['font'].currentValue); - } - if (changes['offsetX']) { - this.instance.setOffsetX(changes['offsetX'].currentValue); - } - if (changes['offsetY']) { - this.instance.setOffsetY(changes['offsetY'].currentValue); - } - if (changes['scale']) { - this.instance.setScale(changes['scale'].currentValue); - } - if (changes['rotation']) { - this.instance.setRotation(changes['rotation'].currentValue); - } - if (changes['text']) { - this.instance.setText(changes['text'].currentValue); - } - if (changes['textAlign']) { - this.instance.setTextAlign(changes['textAlign'].currentValue); - } - if (changes['textBaseLine']) { - this.instance.setTextBaseline(changes['textBaseLine'].currentValue); - } - this.host.update(); - // console.log('changes detected in aol-style-text, setting new properties: ', changes); - }; - return StyleTextComponent; -}()); -StyleTextComponent.decorators = [ - { type: core_1.Component, args: [{ - selector: 'aol-style-text', - template: "
", - },] }, -]; -/** @nocollapse */ -StyleTextComponent.ctorParameters = function () { return [ - { type: style_component_1.StyleComponent, decorators: [{ type: core_1.Optional },] }, -]; }; -StyleTextComponent.propDecorators = { - 'font': [{ type: core_1.Input },], - 'offsetX': [{ type: core_1.Input },], - 'offsetY': [{ type: core_1.Input },], - 'scale': [{ type: core_1.Input },], - 'rotateWithView': [{ type: core_1.Input },], - 'rotation': [{ type: core_1.Input },], - 'text': [{ type: core_1.Input },], - 'textAlign': [{ type: core_1.Input },], - 'textBaseLine': [{ type: core_1.Input },], -}; -exports.StyleTextComponent = StyleTextComponent; -//# sourceMappingURL=text.component.js.map \ No newline at end of file diff --git a/dist/components/styles/text.component.js.map b/dist/components/styles/text.component.js.map deleted file mode 100644 index 9167571a..00000000 --- a/dist/components/styles/text.component.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../../../src/components/styles/text.component.ts"],"names":[],"mappings":";;AAAA,sCAA6F;AAC7F,yCAAmC;AACnC,qDAAmD;AAGnD;IAcE,4BAAqB,IAAoB;QAApB,SAAI,GAAJ,IAAI,CAAgB;QAZlC,kBAAa,GAAW,YAAY,CAAC;QAa1C,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;YACV,MAAM,IAAI,KAAK,CAAC,kDAAkD,CAAC,CAAC;QACtE,CAAC;QACD,uDAAuD;IACzD,CAAC;IAED,qCAAQ,GAAR;QACE,+DAA+D;QAC/D,IAAI,CAAC,QAAQ,GAAG,IAAI,kBAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACrC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC5C,CAAC;IAED,wCAAW,GAAX,UAAY,OAAsB;QAChC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,C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file diff --git a/dist/components/styles/text.component.metadata.json b/dist/components/styles/text.component.metadata.json deleted file mode 100644 index e488e13f..00000000 --- a/dist/components/styles/text.component.metadata.json +++ /dev/null @@ -1 +0,0 @@ -[{"__symbolic":"module","version":3,"metadata":{"StyleTextComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-style-text","template":"
"}]}],"members":{"font":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"offsetX":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"offsetY":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"scale":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"rotateWithView":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"rotation":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"text":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"textAlign":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"textBaseLine":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}]],"parameters":[{"__symbolic":"reference","module":"./style.component","name":"StyleComponent"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"StyleTextComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-style-text","template":"
"}]}],"members":{"font":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"offsetX":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"offsetY":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"scale":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"rotateWithView":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"rotation":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"text":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"textAlign":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"textBaseLine":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}]],"parameters":[{"__symbolic":"reference","module":"./style.component","name":"StyleComponent"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}]}}}}] \ No newline at end of file diff --git a/dist/components/tilegrid.component.d.ts b/dist/components/tilegrid.component.d.ts deleted file mode 100644 index 214026e4..00000000 --- a/dist/components/tilegrid.component.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -/// -import { OnChanges, OnInit, SimpleChanges } from '@angular/core'; -import { tilegrid, Extent, Size, Coordinate } from 'openlayers'; -export declare class TileGridComponent implements OnInit, OnChanges { - instance: tilegrid.TileGrid; - extent: Extent; - maxZoom: number; - minZoom: number; - tileSize: number | Size; - origin?: Coordinate; - resolutions: number[]; - ngOnInit(): void; - ngOnChanges(changes: SimpleChanges): void; -} diff --git a/dist/components/tilegrid.component.js b/dist/components/tilegrid.component.js deleted file mode 100644 index 7dd2beed..00000000 --- a/dist/components/tilegrid.component.js +++ /dev/null @@ -1,43 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -var core_1 = require("@angular/core"); -var openlayers_1 = require("openlayers"); -var TileGridComponent = (function () { - function TileGridComponent() { - } - TileGridComponent.prototype.ngOnInit = function () { - if (!this.resolutions) { - this.instance = openlayers_1.tilegrid.createXYZ(this); - } - else { - this.instance = new openlayers_1.tilegrid.TileGrid(this); - } - }; - TileGridComponent.prototype.ngOnChanges = function (changes) { - if (!this.resolutions) { - this.instance = openlayers_1.tilegrid.createXYZ(this); - } - else { - this.instance = new openlayers_1.tilegrid.TileGrid(this); - } - }; - return TileGridComponent; -}()); -TileGridComponent.decorators = [ - { type: core_1.Component, args: [{ - selector: 'aol-tilegrid', - template: '' - },] }, -]; -/** @nocollapse */ -TileGridComponent.ctorParameters = function () { return []; }; -TileGridComponent.propDecorators = { - 'extent': [{ type: core_1.Input },], - 'maxZoom': [{ type: core_1.Input },], - 'minZoom': [{ type: core_1.Input },], - 'tileSize': [{ type: core_1.Input },], - 'origin': [{ type: core_1.Input },], - 'resolutions': [{ type: core_1.Input },], -}; -exports.TileGridComponent = TileGridComponent; -//# sourceMappingURL=tilegrid.component.js.map \ No newline at end of file diff --git a/dist/components/tilegrid.component.js.map b/dist/components/tilegrid.component.js.map deleted file mode 100644 index c52b9db8..00000000 --- a/dist/components/tilegrid.component.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../../src/components/tilegrid.component.ts"],"names":[],"m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E,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IAC5B,aAAa,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;CAChC,CAAC;AAzCW,8CAAiB","file":"tilegrid.component.js","sourceRoot":""} \ No newline at end of file diff --git a/dist/components/tilegrid.component.metadata.json b/dist/components/tilegrid.component.metadata.json deleted file mode 100644 index 4bc817d8..00000000 --- a/dist/components/tilegrid.component.metadata.json +++ /dev/null @@ -1 +0,0 @@ -[{"__symbolic":"module","version":3,"metadata":{"TileGridComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-tilegrid","template":""}]}],"members":{"extent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"maxZoom":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"minZoom":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"tileSize":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"origin":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"resolutions":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"TileGridComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-tilegrid","template":""}]}],"members":{"extent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"maxZoom":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"minZoom":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"tileSize":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"origin":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"resolutions":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}]}}}}] \ No newline at end of file diff --git a/dist/components/view.component.d.ts b/dist/components/view.component.d.ts deleted file mode 100644 index e6094df0..00000000 --- a/dist/components/view.component.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -/// -import { OnInit, OnChanges, OnDestroy, SimpleChanges } from '@angular/core'; -import { View, Extent, Coordinate } from 'openlayers'; -import { MapComponent } from './map.component'; -export declare class ViewComponent implements OnInit, OnChanges, OnDestroy { - private host; - instance: View; - componentType: string; - constrainRotation: boolean | number; - enableRotation: boolean; - extent: Extent; - maxResolution: number; - minResolution: number; - maxZoom: number; - minZoom: number; - resolution: number; - resolutions: number[]; - rotation: number; - zoom: number; - zoomFactor: number; - center: Coordinate; - projection: string; - constructor(host: MapComponent); - ngOnInit(): void; - ngOnChanges(changes: SimpleChanges): void; - ngOnDestroy(): void; -} diff --git a/dist/components/view.component.js b/dist/components/view.component.js deleted file mode 100644 index df16086a..00000000 --- a/dist/components/view.component.js +++ /dev/null @@ -1,69 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -var core_1 = require("@angular/core"); -var openlayers_1 = require("openlayers"); -var map_component_1 = require("./map.component"); -var ViewComponent = (function () { - function ViewComponent(host) { - this.host = host; - this.componentType = 'view'; - } - ViewComponent.prototype.ngOnInit = function () { - // console.log('creating ol.View instance with: ', this); - this.instance = new openlayers_1.View(this); - this.host.instance.setView(this.instance); - }; - ViewComponent.prototype.ngOnChanges = function (changes) { - var properties = {}; - if (!this.instance) { - return; - } - for (var key in changes) { - if (changes.hasOwnProperty(key)) { - switch (key) { - case 'zoom': - /** Work-around: setting the zoom via setProperties does not work. */ - this.instance.setZoom(changes[key].currentValue); - break; - default: - break; - } - properties[key] = changes[key].currentValue; - } - } - // console.log('changes detected in aol-view, setting new properties: ', properties); - this.instance.setProperties(properties, false); - }; - ViewComponent.prototype.ngOnDestroy = function () { - // console.log('removing aol-view'); - }; - return ViewComponent; -}()); -ViewComponent.decorators = [ - { type: core_1.Component, args: [{ - selector: 'aol-view', - template: "" - },] }, -]; -/** @nocollapse */ -ViewComponent.ctorParameters = function () { return [ - { type: map_component_1.MapComponent, }, -]; }; -ViewComponent.propDecorators = { - 'constrainRotation': [{ type: core_1.Input },], - 'enableRotation': [{ type: core_1.Input },], - 'extent': [{ type: core_1.Input },], - 'maxResolution': [{ type: core_1.Input },], - 'minResolution': [{ type: core_1.Input },], - 'maxZoom': [{ type: core_1.Input },], - 'minZoom': [{ type: core_1.Input },], - 'resolution': [{ type: core_1.Input },], - 'resolutions': [{ type: core_1.Input },], - 'rotation': [{ type: core_1.Input },], - 'zoom': [{ type: core_1.Input },], - 'zoomFactor': [{ type: core_1.Input },], - 'center': [{ type: core_1.Input },], - 'projection': [{ type: core_1.Input },], -}; -exports.ViewComponent = ViewComponent; -//# sourceMappingURL=view.component.js.map \ No newline at end of file diff --git a/dist/components/view.component.js.map b/dist/components/view.component.js.map deleted file mode 100644 index 12b53fbb..00000000 --- a/dist/components/view.component.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../../src/components/view.component.ts"],"names":[],"mappings":";;AAAA,sCAA8F;AAC9F,yCAAsD;AACtD,iDAA+C;AAG/C;IAmBE,uBAAoB,IAAkB;QAAlB,SAAI,GAAJ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E;CACL,CAAC;AACF,kBAAkB;AACX,4BAAc,GAAmE,cAAM,OAAA;IAC9F,EAAC,IAAI,EAAE,4BAAY,GAAG;CACrB,EAF6F,CAE7F,CAAC;AACK,4BAAc,GAA2C;IAChE,mBAAmB,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IACvC,gBAAgB,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IACpC,QAAQ,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IAC5B,eAAe,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IACnC,eAAe,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IACnC,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IAC7B,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IAC7B,YAAY,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IAChC,aAAa,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IACjC,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IAC9B,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IAC1B,YAAY,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IAChC,QAAQ,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IAC5B,YAAY,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;CAC/B,CAAC;AA9EW,sCAAa","file":"view.component.js","sourceRoot":""} \ No newline at end of file diff --git a/dist/components/view.component.metadata.json b/dist/components/view.component.metadata.json deleted file mode 100644 index f7214356..00000000 --- a/dist/components/view.component.metadata.json +++ /dev/null @@ -1 +0,0 @@ -[{"__symbolic":"module","version":3,"metadata":{"ViewComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-view","template":""}]}],"members":{"constrainRotation":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"enableRotation":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"extent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"maxResolution":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"minResolution":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"maxZoom":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"minZoom":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"resolution":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"resolutions":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"rotation":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"zoom":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"zoomFactor":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"center":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"projection":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"./map.component","name":"MapComponent"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"ViewComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"aol-view","template":""}]}],"members":{"constrainRotation":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"enableRotation":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"extent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"maxResolution":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"minResolution":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"maxZoom":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"minZoom":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"resolution":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"resolutions":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"rotation":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"zoom":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"zoomFactor":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"center":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"projection":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"./map.component","name":"MapComponent"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}}}}] \ No newline at end of file diff --git a/dist/index.d.ts b/dist/index.d.ts deleted file mode 100644 index 596122d3..00000000 --- a/dist/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export * from './components'; -export declare class AngularOpenlayersModule { -} diff --git a/dist/index.js b/dist/index.js deleted file mode 100644 index 6a164abc..00000000 --- a/dist/index.js +++ /dev/null @@ -1,88 +0,0 @@ -"use strict"; -function __export(m) { - for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; -} -Object.defineProperty(exports, "__esModule", { value: true }); -var core_1 = require("@angular/core"); -var common_1 = require("@angular/common"); -var components_1 = require("./components"); -__export(require("./components")); -var COMPONENTS = [ - components_1.MapComponent, - components_1.ViewComponent, - components_1.GraticuleComponent, - components_1.LayerGroupComponent, - components_1.LayerImageComponent, - components_1.LayerTileComponent, - components_1.LayerVectorComponent, - components_1.LayerVectorTileComponent, - components_1.SourceOsmComponent, - components_1.SourceBingmapsComponent, - components_1.SourceVectorComponent, - components_1.SourceXYZComponent, - components_1.SourceVectorTileComponent, - components_1.SourceTileWMSComponent, - components_1.SourceTileWMTSComponent, - components_1.SourceGeoJSONComponent, - components_1.SourceImageWMSComponent, - components_1.FeatureComponent, - components_1.GeometryLinestringComponent, - components_1.GeometryPointComponent, - components_1.GeometryPolygonComponent, - components_1.CoordinateComponent, - components_1.CollectionCoordinatesComponent, - components_1.StyleComponent, - components_1.StyleCircleComponent, - components_1.StyleFillComponent, - components_1.StyleIconComponent, - components_1.StyleStrokeComponent, - components_1.StyleTextComponent, - components_1.DefaultControlComponent, - components_1.ControlComponent, - components_1.ControlAttributionComponent, - components_1.ControlFullScreenComponent, - components_1.ControlMousePositionComponent, - components_1.ControlOverviewMapComponent, - components_1.ControlRotateComponent, - components_1.ControlScaleLineComponent, - components_1.ControlZoomComponent, - components_1.ControlZoomSliderComponent, - components_1.ControlZoomToExtentComponent, - components_1.FormatMVTComponent, - components_1.TileGridComponent, - components_1.TileGridWMTSComponent, - components_1.DefaultInteractionComponent, - components_1.DoubleClickZoomInteractionComponent, - components_1.DragAndDropInteractionComponent, - components_1.DragBoxInteractionComponent, - components_1.DragPanInteractionComponent, - components_1.DragRotateInteractionComponent, - components_1.DragRotateAndZoomInteractionComponent, - components_1.DragZoomInteractionComponent, - components_1.MouseWheelZoomInteractionComponent, - components_1.PinchZoomInteractionComponent, - components_1.DrawInteractionComponent, - components_1.SelectInteractionComponent, - components_1.ModifyInteractionComponent, - components_1.TranslateInteractionComponent, - components_1.OverlayComponent, - components_1.ContentComponent, - components_1.AttributionComponent, - components_1.AttributionsComponent -]; -var AngularOpenlayersModule = (function () { - function AngularOpenlayersModule() { - } - return AngularOpenlayersModule; -}()); -AngularOpenlayersModule.decorators = [ - { type: core_1.NgModule, args: [{ - declarations: COMPONENTS, - imports: [common_1.CommonModule], - exports: COMPONENTS - },] }, -]; -/** @nocollapse */ -AngularOpenlayersModule.ctorParameters = function () { return []; }; -exports.AngularOpenlayersModule = AngularOpenlayersModule; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/index.js.map b/dist/index.js.map deleted file mode 100644 index 02856886..00000000 --- a/dist/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;AAAA,sCAAyC;AACzC,0CAA+C;AAC/C,2CAqBsB;AAEtB,kCAA6B;AAE7B,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D6F,CAC7F,CAAC;AATW,0DAAuB","file":"index.js","sourceRoot":""} \ No newline at end of file diff --git a/dist/index.metadata.json b/dist/index.metadata.json deleted file mode 100644 index 1cbc876e..00000000 --- a/dist/index.metadata.json +++ /dev/null @@ -1 +0,0 @@ -[{"__symbolic":"module","version":3,"metadata":{"AngularOpenlayersModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"declarations":[{"__symbolic":"reference","module":"./components","name":"MapComponent"},{"__symbolic":"reference","module":"./components","name":"ViewComponent"},{"__symbolic":"reference","module":"./components","name":"GraticuleComponent"},{"__symbolic":"reference","module":"./components","name":"LayerGroupComponent"},{"__symbolic":"reference","module":"./components","name":"LayerImageComponent"},{"__symbolic":"reference","module":"./components","name":"LayerTileComponent"},{"__symbolic":"reference","module":"./components","name":"LayerVectorComponent"},{"__symbolic":"reference","module":"./components","name":"LayerVectorTileComponent"},{"__symbolic":"reference","module":"./components","name":"SourceOsmComponent"},{"__symbolic":"reference","module":"./components","name":"SourceBingmapsComponent"},{"__symbolic":"reference","module":"./components","name":"SourceVectorComponent"},{"__symbolic":"reference","module":"./components","name":"SourceXYZComponent"},{"__symbolic":"reference","module":"./components","name":"SourceVectorTileComponent"},{"__symbolic":"reference","module":"./components","name":"SourceTileWMSComponent"},{"__symbolic":"reference","module":"./components","name":"SourceTileWMTSComponent"},{"__symbolic":"reference","module":"./components","name":"SourceGeoJSONComponent"},{"__symbolic":"reference","module":"./components","name":"SourceImageWMSComponent"},{"__symbolic":"reference","module":"./components","name":"FeatureComponent"},{"__symbolic":"reference","module":"./components","name":"GeometryLinestringComponent"},{"__symbolic":"reference","module":"./components","name":"GeometryPointComponent"},{"__symbolic":"reference","module":"./components","name":"GeometryPolygonComponent"},{"__symbolic":"reference","module":"./components","name":"CoordinateComponent"},{"__symbolic":"reference","module":"./components","name":"CollectionCoordinatesComponent"},{"__symbolic":"reference","module":"./components","name":"StyleComponent"},{"__symbolic":"reference","module":"./components","name":"StyleCircleComponent"},{"__symbolic":"reference","module":"./components","name":"StyleFillComponent"},{"__symbolic":"reference","module":"./components","name":"StyleIconComponent"},{"__symbolic":"reference","module":"./components","name":"StyleStrokeComponent"},{"__symbolic":"reference","module":"./components","name":"StyleTextComponent"},{"__symbolic":"reference","module":"./components","name":"DefaultControlComponent"},{"__symbolic":"reference","module":"./components","name":"ControlComponent"},{"__symbolic":"reference","module":"./components","name":"ControlAttributionComponent"},{"__symbolic":"reference","module":"./components","name":"ControlFullScreenComponent"},{"__symbolic":"reference","module":"./components","name":"ControlMousePositionComponent"},{"__symbolic":"reference","module":"./components","name":"ControlOverviewMapComponent"},{"__symbolic":"reference","module":"./components","name":"ControlRotateComponent"},{"__symbolic":"reference","module":"./components","name":"ControlScaleLineComponent"},{"__symbolic":"reference","module":"./components","name":"ControlZoomComponent"},{"__symbolic":"reference","module":"./components","name":"ControlZoomSliderComponent"},{"__symbolic":"reference","module":"./components","name":"ControlZoomToExtentComponent"},{"__symbolic":"reference","module":"./components","name":"FormatMVTComponent"},{"__symbolic":"reference","module":"./components","name":"TileGridComponent"},{"__symbolic":"reference","module":"./components","name":"TileGridWMTSComponent"},{"__symbolic":"reference","module":"./components","name":"DefaultInteractionComponent"},{"__symbolic":"reference","module":"./components","name":"DoubleClickZoomInteractionComponent"},{"__symbolic":"reference","module":"./components","name":"DragAndDropInteractionComponent"},{"__symbolic":"reference","module":"./components","name":"DragBoxInteractionComponent"},{"__symbolic":"reference","module":"./components","name":"DragPanInteractionComponent"},{"__symbolic":"reference","module":"./components","name":"DragRotateInteractionComponent"},{"__symbolic":"reference","module":"./components","name":"DragRotateAndZoomInteractionComponent"},{"__symbolic":"reference","module":"./components","name":"DragZoomInteractionComponent"},{"__symbolic":"reference","module":"./components","name":"MouseWheelZoomInteractionComponent"},{"__symbolic":"reference","module":"./components","name":"PinchZoomInteractionComponent"},{"__symbolic":"reference","module":"./components","name":"DrawInteractionComponent"},{"__symbolic":"reference","module":"./components","name":"SelectInteractionComponent"},{"__symbolic":"reference","module":"./components","name":"ModifyInteractionComponent"},{"__symbolic":"reference","module":"./components","name":"TranslateInteractionComponent"},{"__symbolic":"reference","module":"./components","name":"OverlayComponent"},{"__symbolic":"reference","module":"./components","name":"ContentComponent"},{"__symbolic":"reference","module":"./components","name":"AttributionComponent"},{"__symbolic":"reference","module":"./components","name":"AttributionsComponent"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule"}],"exports":[{"__symbolic":"reference","module":"./components","name":"MapComponent"},{"__symbolic":"reference","module":"./components","name":"ViewComponent"},{"__symbolic":"reference","module":"./components","name":"GraticuleComponent"},{"__symbolic":"reference","module":"./components","name":"LayerGroupComponent"},{"__symbolic":"reference","module":"./components","name":"LayerImageComponent"},{"__symbolic":"reference","module":"./components","name":"LayerTileComponent"},{"__symbolic":"reference","module":"./components","name":"LayerVectorComponent"},{"__symbolic":"reference","module":"./components","name":"LayerVectorTileComponent"},{"__symbolic":"reference","module":"./components","name":"SourceOsmComponent"},{"__symbolic":"reference","module":"./components","name":"SourceBingmapsComponent"},{"__symbolic":"reference","module":"./components","name":"SourceVectorComponent"},{"__symbolic":"reference","module":"./components","name":"SourceXYZComponent"},{"__symbolic":"reference","module":"./components","name":"SourceVectorTileComponent"},{"__symbolic":"reference","module":"./components","name":"SourceTileWMSComponent"},{"__symbolic":"reference","module":"./components","name":"SourceTileWMTSComponent"},{"__symbolic":"reference","module":"./components","name":"SourceGeoJSONComponent"},{"__symbolic":"reference","module":"./components","name":"SourceImageWMSComponent"},{"__symbolic":"reference","module":"./components","name":"FeatureComponent"},{"__symbolic":"reference","module":"./components","name":"GeometryLinestringComponent"},{"__symbolic":"reference","module":"./components","name":"GeometryPointComponent"},{"__symbolic":"reference","module":"./components","name":"GeometryPolygonComponent"},{"__symbolic":"reference","module":"./components","name":"CoordinateComponent"},{"__symbolic":"reference","module":"./components","name":"CollectionCoordinatesComponent"},{"__symbolic":"reference","module":"./components","name":"StyleComponent"},{"__symbolic":"reference","module":"./components","name":"StyleCircleComponent"},{"__symbolic":"reference","module":"./components","name":"StyleFillComponent"},{"__symbolic":"reference","module":"./components","name":"StyleIconComponent"},{"__symbolic":"reference","module":"./components","name":"StyleStrokeComponent"},{"__symbolic":"reference","module":"./components","name":"StyleTextComponent"},{"__symbolic":"reference","module":"./components","name":"DefaultControlComponent"},{"__symbolic":"reference","module":"./components","name":"ControlComponent"},{"__symbolic":"reference","module":"./components","name":"ControlAttributionComponent"},{"__symbolic":"reference","module":"./components","name":"ControlFullScreenComponent"},{"__symbolic":"reference","module":"./components","name":"ControlMousePositionComponent"},{"__symbolic":"reference","module":"./components","name":"ControlOverviewMapComponent"},{"__symbolic":"reference","module":"./components","name":"ControlRotateComponent"},{"__symbolic":"reference","module":"./components","name":"ControlScaleLineComponent"},{"__symbolic":"reference","module":"./components","name":"ControlZoomComponent"},{"__symbolic":"reference","module":"./components","name":"ControlZoomSliderComponent"},{"__symbolic":"reference","module":"./components","name":"ControlZoomToExtentComponent"},{"__symbolic":"reference","module":"./components","name":"FormatMVTComponent"},{"__symbolic":"reference","module":"./components","name":"TileGridComponent"},{"__symbolic":"reference","module":"./components","name":"TileGridWMTSComponent"},{"__symbolic":"reference","module":"./components","name":"DefaultInteractionComponent"},{"__symbolic":"reference","module":"./components","name":"DoubleClickZoomInteractionComponent"},{"__symbolic":"reference","module":"./components","name":"DragAndDropInteractionComponent"},{"__symbolic":"reference","module":"./components","name":"DragBoxInteractionComponent"},{"__symbolic":"reference","module":"./components","name":"DragPanInteractionComponent"},{"__symbolic":"reference","module":"./components","name":"DragRotateInteractionComponent"},{"__symbolic":"reference","module":"./components","name":"DragRotateAndZoomInteractionComponent"},{"__symbolic":"reference","module":"./components","name":"DragZoomInteractionComponent"},{"__symbolic":"reference","module":"./components","name":"MouseWheelZoomInteractionComponent"},{"__symbolic":"reference","module":"./components","name":"PinchZoomInteractionComponent"},{"__symbolic":"reference","module":"./components","name":"DrawInteractionComponent"},{"__symbolic":"reference","module":"./components","name":"SelectInteractionComponent"},{"__symbolic":"reference","module":"./components","name":"ModifyInteractionComponent"},{"__symbolic":"reference","module":"./components","name":"TranslateInteractionComponent"},{"__symbolic":"reference","module":"./components","name":"OverlayComponent"},{"__symbolic":"reference","module":"./components","name":"ContentComponent"},{"__symbolic":"reference","module":"./components","name":"AttributionComponent"},{"__symbolic":"reference","module":"./components","name":"AttributionsComponent"}]}]}]}},"exports":[{"from":"./components"}]},{"__symbolic":"module","version":1,"metadata":{"AngularOpenlayersModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"declarations":[{"__symbolic":"reference","module":"./components","name":"MapComponent"},{"__symbolic":"reference","module":"./components","name":"ViewComponent"},{"__symbolic":"reference","module":"./components","name":"GraticuleComponent"},{"__symbolic":"reference","module":"./components","name":"LayerGroupComponent"},{"__symbolic":"reference","module":"./components","name":"LayerImageComponent"},{"__symbolic":"reference","module":"./components","name":"LayerTileComponent"},{"__symbolic":"reference","module":"./components","name":"LayerVectorComponent"},{"__symbolic":"reference","module":"./components","name":"LayerVectorTileComponent"},{"__symbolic":"reference","module":"./components","name":"SourceOsmComponent"},{"__symbolic":"reference","module":"./components","name":"SourceBingmapsComponent"},{"__symbolic":"reference","module":"./components","name":"SourceVectorComponent"},{"__symbolic":"reference","module":"./components","name":"SourceXYZComponent"},{"__symbolic":"reference","module":"./components","name":"SourceVectorTileComponent"},{"__symbolic":"reference","module":"./components","name":"SourceTileWMSComponent"},{"__symbolic":"reference","module":"./components","name":"SourceTileWMTSComponent"},{"__symbolic":"reference","module":"./components","name":"SourceGeoJSONComponent"},{"__symbolic":"reference","module":"./components","name":"SourceImageWMSComponent"},{"__symbolic":"reference","module":"./components","name":"FeatureComponent"},{"__symbolic":"reference","module":"./components","name":"GeometryLinestringComponent"},{"__symbolic":"reference","module":"./components","name":"GeometryPointComponent"},{"__symbolic":"reference","module":"./components","name":"GeometryPolygonComponent"},{"__symbolic":"reference","module":"./components","name":"CoordinateComponent"},{"__symbolic":"reference","module":"./components","name":"CollectionCoordinatesComponent"},{"__symbolic":"reference","module":"./components","name":"StyleComponent"},{"__symbolic":"reference","module":"./components","name":"StyleCircleComponent"},{"__symbolic":"reference","module":"./components","name":"StyleFillComponent"},{"__symbolic":"reference","module":"./components","name":"StyleIconComponent"},{"__symbolic":"reference","module":"./components","name":"StyleStrokeComponent"},{"__symbolic":"reference","module":"./components","name":"StyleTextComponent"},{"__symbolic":"reference","module":"./components","name":"DefaultControlComponent"},{"__symbolic":"reference","module":"./components","name":"ControlComponent"},{"__symbolic":"reference","module":"./components","name":"ControlAttributionComponent"},{"__symbolic":"reference","module":"./components","name":"ControlFullScreenComponent"},{"__symbolic":"reference","module":"./components","name":"ControlMousePositionComponent"},{"__symbolic":"reference","module":"./components","name":"ControlOverviewMapComponent"},{"__symbolic":"reference","module":"./components","name":"ControlRotateComponent"},{"__symbolic":"reference","module":"./components","name":"ControlScaleLineComponent"},{"__symbolic":"reference","module":"./components","name":"ControlZoomComponent"},{"__symbolic":"reference","module":"./components","name":"ControlZoomSliderComponent"},{"__symbolic":"reference","module":"./components","name":"ControlZoomToExtentComponent"},{"__symbolic":"reference","module":"./components","name":"FormatMVTComponent"},{"__symbolic":"reference","module":"./components","name":"TileGridComponent"},{"__symbolic":"reference","module":"./components","name":"TileGridWMTSComponent"},{"__symbolic":"reference","module":"./components","name":"DefaultInteractionComponent"},{"__symbolic":"reference","module":"./components","name":"DoubleClickZoomInteractionComponent"},{"__symbolic":"reference","module":"./components","name":"DragAndDropInteractionComponent"},{"__symbolic":"reference","module":"./components","name":"DragBoxInteractionComponent"},{"__symbolic":"reference","module":"./components","name":"DragPanInteractionComponent"},{"__symbolic":"reference","module":"./components","name":"DragRotateInteractionComponent"},{"__symbolic":"reference","module":"./components","name":"DragRotateAndZoomInteractionComponent"},{"__symbolic":"reference","module":"./components","name":"DragZoomInteractionComponent"},{"__symbolic":"reference","module":"./components","name":"MouseWheelZoomInteractionComponent"},{"__symbolic":"reference","module":"./components","name":"PinchZoomInteractionComponent"},{"__symbolic":"reference","module":"./components","name":"DrawInteractionComponent"},{"__symbolic":"reference","module":"./components","name":"SelectInteractionComponent"},{"__symbolic":"reference","module":"./components","name":"ModifyInteractionComponent"},{"__symbolic":"reference","module":"./components","name":"TranslateInteractionComponent"},{"__symbolic":"reference","module":"./components","name":"OverlayComponent"},{"__symbolic":"reference","module":"./components","name":"ContentComponent"},{"__symbolic":"reference","module":"./components","name":"AttributionComponent"},{"__symbolic":"reference","module":"./components","name":"AttributionsComponent"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule"}],"exports":[{"__symbolic":"reference","module":"./components","name":"MapComponent"},{"__symbolic":"reference","module":"./components","name":"ViewComponent"},{"__symbolic":"reference","module":"./components","name":"GraticuleComponent"},{"__symbolic":"reference","module":"./components","name":"LayerGroupComponent"},{"__symbolic":"reference","module":"./components","name":"LayerImageComponent"},{"__symbolic":"reference","module":"./components","name":"LayerTileComponent"},{"__symbolic":"reference","module":"./components","name":"LayerVectorComponent"},{"__symbolic":"reference","module":"./components","name":"LayerVectorTileComponent"},{"__symbolic":"reference","module":"./components","name":"SourceOsmComponent"},{"__symbolic":"reference","module":"./components","name":"SourceBingmapsComponent"},{"__symbolic":"reference","module":"./components","name":"SourceVectorComponent"},{"__symbolic":"reference","module":"./components","name":"SourceXYZComponent"},{"__symbolic":"reference","module":"./components","name":"SourceVectorTileComponent"},{"__symbolic":"reference","module":"./components","name":"SourceTileWMSComponent"},{"__symbolic":"reference","module":"./components","name":"SourceTileWMTSComponent"},{"__symbolic":"reference","module":"./components","name":"SourceGeoJSONComponent"},{"__symbolic":"reference","module":"./components","name":"SourceImageWMSComponent"},{"__symbolic":"reference","module":"./components","name":"FeatureComponent"},{"__symbolic":"reference","module":"./components","name":"GeometryLinestringComponent"},{"__symbolic":"reference","module":"./components","name":"GeometryPointComponent"},{"__symbolic":"reference","module":"./components","name":"GeometryPolygonComponent"},{"__symbolic":"reference","module":"./components","name":"CoordinateComponent"},{"__symbolic":"reference","module":"./components","name":"CollectionCoordinatesComponent"},{"__symbolic":"reference","module":"./components","name":"StyleComponent"},{"__symbolic":"reference","module":"./components","name":"StyleCircleComponent"},{"__symbolic":"reference","module":"./components","name":"StyleFillComponent"},{"__symbolic":"reference","module":"./components","name":"StyleIconComponent"},{"__symbolic":"reference","module":"./components","name":"StyleStrokeComponent"},{"__symbolic":"reference","module":"./components","name":"StyleTextComponent"},{"__symbolic":"reference","module":"./components","name":"DefaultControlComponent"},{"__symbolic":"reference","module":"./components","name":"ControlComponent"},{"__symbolic":"reference","module":"./components","name":"ControlAttributionComponent"},{"__symbolic":"reference","module":"./components","name":"ControlFullScreenComponent"},{"__symbolic":"reference","module":"./components","name":"ControlMousePositionComponent"},{"__symbolic":"reference","module":"./components","name":"ControlOverviewMapComponent"},{"__symbolic":"reference","module":"./components","name":"ControlRotateComponent"},{"__symbolic":"reference","module":"./components","name":"ControlScaleLineComponent"},{"__symbolic":"reference","module":"./components","name":"ControlZoomComponent"},{"__symbolic":"reference","module":"./components","name":"ControlZoomSliderComponent"},{"__symbolic":"reference","module":"./components","name":"ControlZoomToExtentComponent"},{"__symbolic":"reference","module":"./components","name":"FormatMVTComponent"},{"__symbolic":"reference","module":"./components","name":"TileGridComponent"},{"__symbolic":"reference","module":"./components","name":"TileGridWMTSComponent"},{"__symbolic":"reference","module":"./components","name":"DefaultInteractionComponent"},{"__symbolic":"reference","module":"./components","name":"DoubleClickZoomInteractionComponent"},{"__symbolic":"reference","module":"./components","name":"DragAndDropInteractionComponent"},{"__symbolic":"reference","module":"./components","name":"DragBoxInteractionComponent"},{"__symbolic":"reference","module":"./components","name":"DragPanInteractionComponent"},{"__symbolic":"reference","module":"./components","name":"DragRotateInteractionComponent"},{"__symbolic":"reference","module":"./components","name":"DragRotateAndZoomInteractionComponent"},{"__symbolic":"reference","module":"./components","name":"DragZoomInteractionComponent"},{"__symbolic":"reference","module":"./components","name":"MouseWheelZoomInteractionComponent"},{"__symbolic":"reference","module":"./components","name":"PinchZoomInteractionComponent"},{"__symbolic":"reference","module":"./components","name":"DrawInteractionComponent"},{"__symbolic":"reference","module":"./components","name":"SelectInteractionComponent"},{"__symbolic":"reference","module":"./components","name":"ModifyInteractionComponent"},{"__symbolic":"reference","module":"./components","name":"TranslateInteractionComponent"},{"__symbolic":"reference","module":"./components","name":"OverlayComponent"},{"__symbolic":"reference","module":"./components","name":"ContentComponent"},{"__symbolic":"reference","module":"./components","name":"AttributionComponent"},{"__symbolic":"reference","module":"./components","name":"AttributionsComponent"}]}]}]}},"exports":[{"from":"./components"}]}] \ No newline at end of file diff --git a/e2e/protractor.conf.js b/e2e/protractor.conf.js new file mode 100644 index 00000000..86776a39 --- /dev/null +++ b/e2e/protractor.conf.js @@ -0,0 +1,28 @@ +// Protractor configuration file, see link for more information +// https://github.com/angular/protractor/blob/master/lib/config.ts + +const { SpecReporter } = require('jasmine-spec-reporter'); + +exports.config = { + allScriptsTimeout: 11000, + specs: [ + './src/**/*.e2e-spec.ts' + ], + capabilities: { + 'browserName': 'chrome' + }, + directConnect: true, + baseUrl: 'http://localhost:4200/', + framework: 'jasmine', + jasmineNodeOpts: { + showColors: true, + defaultTimeoutInterval: 30000, + print: function() {} + }, + onPrepare() { + require('ts-node').register({ + project: require('path').join(__dirname, './tsconfig.e2e.json') + }); + jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } })); + } +}; \ No newline at end of file diff --git a/e2e/src/app.e2e-spec.ts b/e2e/src/app.e2e-spec.ts new file mode 100644 index 00000000..e42d1f96 --- /dev/null +++ b/e2e/src/app.e2e-spec.ts @@ -0,0 +1,14 @@ +import { AppPage } from './app.po'; + +describe('workspace-project App', () => { + let page: AppPage; + + beforeEach(() => { + page = new AppPage(); + }); + + it('should display welcome message', () => { + page.navigateTo(); + expect(page.getParagraphText()).toEqual('Welcome to app!'); + }); +}); diff --git a/e2e/src/app.po.ts b/e2e/src/app.po.ts new file mode 100644 index 00000000..82ea75ba --- /dev/null +++ b/e2e/src/app.po.ts @@ -0,0 +1,11 @@ +import { browser, by, element } from 'protractor'; + +export class AppPage { + navigateTo() { + return browser.get('/'); + } + + getParagraphText() { + return element(by.css('app-root h1')).getText(); + } +} diff --git a/e2e/tsconfig.e2e.json b/e2e/tsconfig.e2e.json new file mode 100644 index 00000000..a6dd6220 --- /dev/null +++ b/e2e/tsconfig.e2e.json @@ -0,0 +1,13 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "outDir": "../out-tsc/app", + "module": "commonjs", + "target": "es5", + "types": [ + "jasmine", + "jasminewd2", + "node" + ] + } +} \ No newline at end of file diff --git a/example/.angular-cli.json b/example/.angular-cli.json deleted file mode 100644 index c0c55e88..00000000 --- a/example/.angular-cli.json +++ /dev/null @@ -1,83 +0,0 @@ -{ - "$schema": "./node_modules/@angular/cli/lib/config/schema.json", - "project": { - "name": "example" - }, - "apps": [ - { - "root": "src", - "outDir": "dist", - "assets": [ - "assets", - "favicon.ico" - ], - "index": "index.html", - "main": "main.ts", - "polyfills": "polyfills.ts", - "test": "test.ts", - "tsconfig": "tsconfig.app.json", - "testTsconfig": "tsconfig.spec.json", - "prefix": "app", - "styles": [ - "styles.css", - "../node_modules/openlayers/dist/ol.css" - ], - "scripts": [], - "environmentSource": "environments/environment.ts", - "environments": { - "dev": "environments/environment.ts", - "prod": "environments/environment.prod.ts" - } - } - ], - "e2e": { - "protractor": { - "config": "./protractor.conf.js" - } - }, - "lint": [ - { - "project": "src/tsconfig.app.json", - "exclude": "**/node_modules/**" - }, - { - "project": "src/tsconfig.spec.json", - "exclude": "**/node_modules/**" - }, - { - "project": "e2e/tsconfig.e2e.json", - "exclude": "**/node_modules/**" - } - ], - "test": { - "karma": { - "config": "./karma.conf.js" - } - }, - "defaults": { - "styleExt": "css", - "class": { - "spec": false - }, - "component": { - "inlineStyle": true, - "inlineTemplate": true, - "spec": false - }, - "directive": { - "spec": false - }, - "guard": { - "spec": false - }, - "module": { - "spec": false - }, - "pipe": { - "spec": false - }, - "service": { - "spec": false - } - } -} diff --git a/example/.gitignore b/example/.gitignore deleted file mode 100644 index 54bfd200..00000000 --- a/example/.gitignore +++ /dev/null @@ -1,42 +0,0 @@ -# See http://help.github.com/ignore-files/ for more about ignoring files. - -# compiled output -/dist -/tmp -/out-tsc - -# dependencies -/node_modules - -# IDEs and editors -/.idea -.project -.classpath -.c9/ -*.launch -.settings/ -*.sublime-workspace - -# IDE - VSCode -.vscode/* -!.vscode/settings.json -!.vscode/tasks.json -!.vscode/launch.json -!.vscode/extensions.json - -# misc -/.sass-cache -/connect.lock -/coverage -/libpeerconnection.log -npm-debug.log -testem.log -/typings - -# e2e -/e2e/*.js -/e2e/*.map - -# System Files -.DS_Store -Thumbs.db diff --git a/example/package.json b/example/package.json deleted file mode 100644 index 1d743b86..00000000 --- a/example/package.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "name": "example", - "version": "0.0.0", - "license": "MIT", - "scripts": { - "ng": "ng", - "start": "ng serve", - "build": "ng build", - "test": "ng test", - "lint": "ng lint", - "e2e": "ng e2e" - }, - "private": true, - "dependencies": { - "@angular/animations": "^5.0.0", - "@angular/common": "^5.0.0", - "@angular/compiler": "^5.0.0", - "@angular/core": "^5.0.0", - "@angular/forms": "^5.0.0", - "@angular/http": "^5.0.0", - "@angular/platform-browser": "^5.0.0", - "@angular/platform-browser-dynamic": "^5.0.0", - "@angular/router": "^5.0.0", - "core-js": "^2.4.1", - "ngx-openlayers": "^0.8.21", - "rxjs": "^5.5.2", - "zone.js": "^0.8.14" - }, - "devDependencies": { - "@angular/cli": "1.6.8", - "@angular/compiler-cli": "^5.0.0", - "@angular/language-service": "^5.0.0", - "typescript": "~2.4.2" - } -} diff --git a/example/src/app/app.component.css b/example/src/app/app.component.css deleted file mode 100755 index f8539565..00000000 --- a/example/src/app/app.component.css +++ /dev/null @@ -1,17 +0,0 @@ -nav { - display: flex; -} - -nav a { - display: flex; - color: black; - border: 1px black solid; - text-decoration: none; - padding: 5px 10px; - margin: 5px; - border-radius: 5px; -} - -nav a.active { - background: lightblue; -} diff --git a/example/src/app/app.component.html b/example/src/app/app.component.html deleted file mode 100755 index bb594947..00000000 --- a/example/src/app/app.component.html +++ /dev/null @@ -1,9 +0,0 @@ -

ngx-openlayer demo

- - - - diff --git a/example/src/app/app.component.ts b/example/src/app/app.component.ts deleted file mode 100755 index 1d99c108..00000000 --- a/example/src/app/app.component.ts +++ /dev/null @@ -1,8 +0,0 @@ -import {Component} from '@angular/core'; - -@Component({ - selector: 'app-root', - templateUrl: './app.component.html', - styleUrls: ['./app.component.css'], -}) -export class AppComponent {} diff --git a/example/src/app/app.module.ts b/example/src/app/app.module.ts deleted file mode 100755 index f736cdca..00000000 --- a/example/src/app/app.module.ts +++ /dev/null @@ -1,28 +0,0 @@ -import {BrowserModule} from '@angular/platform-browser'; -import {NgModule} from '@angular/core'; -import {FormsModule} from '@angular/forms'; -import {AngularOpenlayersModule} from 'ngx-openlayers'; - -import {AppComponent} from './app.component'; -import {AppRoutingModule} from './app.routing'; -import {ClusterComponent} from './cluster/cluster.component'; -import {BasicComponent} from './basic/basic.component'; -import {RasterComponent} from './raster/raster.component'; - -@NgModule({ - declarations: [ - AppComponent, - BasicComponent, - ClusterComponent, - RasterComponent - ], - imports: [ - BrowserModule, - FormsModule, - AppRoutingModule, - AngularOpenlayersModule - ], - providers: [], - bootstrap: [AppComponent] -}) -export class AppModule { } diff --git a/example/src/app/app.routing.ts b/example/src/app/app.routing.ts deleted file mode 100644 index 1a29c372..00000000 --- a/example/src/app/app.routing.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { NgModule } from '@angular/core'; -import { Routes, RouterModule } from '@angular/router'; -import { ClusterComponent } from './cluster/cluster.component'; -import { BasicComponent } from './basic/basic.component'; -import { RasterComponent } from './raster/raster.component'; - -const routes: Routes = [ - { path: '', redirectTo: '/basic', pathMatch: 'full' }, - { path: 'basic', component: BasicComponent }, - { path: 'cluster', component: ClusterComponent }, - { path: 'raster', component: RasterComponent }, - { path: '**', redirectTo: '/basic' } -]; - -@NgModule({ - imports: [RouterModule.forRoot(routes)], - exports: [RouterModule] -}) -export class AppRoutingModule { } diff --git a/example/src/app/basic/basic.component.html b/example/src/app/basic/basic.component.html deleted file mode 100644 index 9a314f2a..00000000 --- a/example/src/app/basic/basic.component.html +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -opacity:
-zoom:
diff --git a/example/src/app/basic/basic.component.ts b/example/src/app/basic/basic.component.ts deleted file mode 100644 index 37900738..00000000 --- a/example/src/app/basic/basic.component.ts +++ /dev/null @@ -1,31 +0,0 @@ -import {Component} from '@angular/core'; - -@Component({ - selector: 'app-root', - templateUrl: './basic.component.html' -}) -export class BasicComponent { - public zoom = 15; - public opacity = 1.0; - public width = 5; - - increaseZoom() { - this.zoom = Math.min(this.zoom + 1, 18); - console.log('zoom: ', this.zoom); - } - - decreaseZoom() { - this.zoom = Math.max(this.zoom - 1, 1); - console.log('zoom: ', this.zoom); - } - - increaseOpacity() { - this.opacity = Math.min(this.opacity + 0.1, 1); - console.log('opacity: ', this.opacity); - } - - decreaseOpacity() { - this.opacity = Math.max(this.opacity - 0.1, 0); - console.log('opacity: ', this.opacity); - } -} diff --git a/example/src/app/cluster/cluster.component.html b/example/src/app/cluster/cluster.component.html deleted file mode 100644 index c6f2ea1d..00000000 --- a/example/src/app/cluster/cluster.component.html +++ /dev/null @@ -1,55 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/example/src/app/cluster/cluster.component.ts b/example/src/app/cluster/cluster.component.ts deleted file mode 100644 index ad31c0ef..00000000 --- a/example/src/app/cluster/cluster.component.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { Component, OnInit } from '@angular/core'; - -@Component({ - selector: 'app-root', - templateUrl: './cluster.component.html' -}) -export class ClusterComponent implements OnInit { - distance = 60; - points: Array<{ x: number; y: number; }> = []; - - ngOnInit() { - // Generate random points - const nbPoints = 2000; - for (let i = 0; i < nbPoints; ++i) { - this.points.push({ - x : this.getRandomInRange(1.47, 1.51, 4), - y: this.getRandomInRange(43.545, 43.565, 4) - }); - } - } - - getRandomInRange(from, to, fixed) { - return (Math.random() * (to - from) + from).toFixed(fixed) * 1; - } -} diff --git a/example/src/app/raster/raster.component.css b/example/src/app/raster/raster.component.css deleted file mode 100644 index e4f34504..00000000 --- a/example/src/app/raster/raster.component.css +++ /dev/null @@ -1,6 +0,0 @@ -.control { - display: flex; - align-items: center; - justify-content: flex-start; - margin: 20px; -} diff --git a/example/src/app/raster/raster.component.html b/example/src/app/raster/raster.component.html deleted file mode 100644 index fa3133b1..00000000 --- a/example/src/app/raster/raster.component.html +++ /dev/null @@ -1,57 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - -
- OSM
- XYZ
-
- -
- Contrast : - - ({{ contrast }}) -
-
- Brightness : - - ({{ brightness }}) -
diff --git a/example/src/app/raster/raster.component.ts b/example/src/app/raster/raster.component.ts deleted file mode 100644 index 323a05a9..00000000 --- a/example/src/app/raster/raster.component.ts +++ /dev/null @@ -1,77 +0,0 @@ -import {Component, ViewChild} from '@angular/core'; -import {SourceRasterComponent} from 'ngx-openlayers'; - -interface RasterData { - brightness: number; - contrast: number; -} - -@Component({ - selector: 'app-root', - templateUrl: './raster.component.html', - styleUrls: ['./raster.component.css'], -}) -export class RasterComponent { - threads = 4; - operationType = 'image'; - lib: any = { - brightness: brightness, - contrast: contrast, - }; - brightness = 0; - contrast = 0; - - selectLayer = 'osm'; - @ViewChild(SourceRasterComponent) currentRasterSource; - - beforeOperations(event) { - const data: RasterData = event.data; - data.brightness = this.brightness; - data.contrast = this.contrast; - } - - operation(imageDatas: [ImageData], data: RasterData) { - let [imageData] = imageDatas; - imageData = brightness(imageData, data.brightness); - imageData = contrast(imageData, data.contrast); - return imageData; - } - - afterOperations() {} - - updateRaster() { - this.currentRasterSource.instance.changed(); - } -} - -/** - * @see https://github.com/canastro/image-filter-brightness/blob/master/src/transform.js - */ -function brightness(imageData: ImageData, adjustment: number) { - const pixels = imageData.data, - pixelsLength = pixels.length; - - for (let i = 0; i < pixelsLength; i += 4) { - pixels[i] += adjustment; - pixels[i + 1] += adjustment; - pixels[i + 2] += adjustment; - } - return imageData; -} - -/** - * @see https://github.com/canastro/image-filter-contrast/blob/master/src/transform.js - */ -function contrast(imageData: ImageData, adjustment: number) { - const pixels = imageData.data, - factor = (259 * (adjustment + 255)) / (255 * (259 - adjustment)), - pixelsLength = pixels.length; - - for (let i = 0; i < pixelsLength; i += 4) { - pixels[i] = factor * (pixels[i] - 128) + 128; - pixels[i + 1] = factor * (pixels[i + 1] - 128) + 128; - pixels[i + 2] = factor * (pixels[i + 2] - 128) + 128; - } - - return imageData; -} diff --git a/example/src/assets/marker.png b/example/src/assets/marker.png deleted file mode 100755 index 60367659..00000000 Binary files a/example/src/assets/marker.png and /dev/null differ diff --git a/example/src/environments/environment.ts b/example/src/environments/environment.ts deleted file mode 100644 index b7f639ae..00000000 --- a/example/src/environments/environment.ts +++ /dev/null @@ -1,8 +0,0 @@ -// The file contents for the current environment will overwrite these during build. -// The build system defaults to the dev environment which uses `environment.ts`, but if you do -// `ng build --env=prod` then `environment.prod.ts` will be used instead. -// The list of which env maps to which file can be found in `.angular-cli.json`. - -export const environment = { - production: false -}; diff --git a/example/src/styles.css b/example/src/styles.css deleted file mode 100644 index 90d4ee00..00000000 --- a/example/src/styles.css +++ /dev/null @@ -1 +0,0 @@ -/* You can add global styles to this file, and also import other style files */ diff --git a/example/src/typings.d.ts b/example/src/typings.d.ts deleted file mode 100644 index ef5c7bd6..00000000 --- a/example/src/typings.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* SystemJS module definition */ -declare var module: NodeModule; -interface NodeModule { - id: string; -} diff --git a/example/tsconfig.json b/example/tsconfig.json deleted file mode 100644 index a6c016bf..00000000 --- a/example/tsconfig.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "outDir": "./dist/out-tsc", - "sourceMap": true, - "declaration": false, - "moduleResolution": "node", - "emitDecoratorMetadata": true, - "experimentalDecorators": true, - "target": "es5", - "typeRoots": [ - "node_modules/@types" - ], - "lib": [ - "es2017", - "dom" - ] - } -} diff --git a/package.json b/package.json index c42332d5..0fd28dbd 100644 --- a/package.json +++ b/package.json @@ -1,54 +1,62 @@ { - "name": "ngx-openlayers", - "version": "0.8.22", - "scripts": { - "lint": "tslint src/**/*.ts", - "test": "echo \"No tests specified\" && exit 0", - "prepublish": "ngc", - "ngc": "ngc", - "release": "npm version -m \"[version] %s\" patch" - }, - "repository": { - "type": "git", - "url": "https://github.com/quentin-ol/ngx-openlayers" - }, - "author": { - "name": "Quentin Lampin", - "email": "quentin.lampin@orange.com" - }, - "keywords": [ - "angular", - "angular2", - "angular4", - "openlayers", - "openlayers3", - "openlayers4", - "ngx-openlayers" - ], - "license": "MPL-2.0", - "bugs": { - "url": "https://github.com/quentin-ol/ngx-openlayers/issues" - }, - "main": "./dist/index.js", - "typings": "./dist/index.d.ts", - "dependencies": { - "@types/openlayers": "4.3.x || 4.4.x", - "openlayers": "4.3.x || 4.4.x" - }, - "devDependencies": { - "@angular/common": "^4.1.3", - "@angular/compiler": "^4.1.3", - "@angular/compiler-cli": "^4.1.3", - "@angular/core": "^4.1.3", - "@types/jasmine": "^2.5.38", - "@types/selenium-webdriver": "^3.0.4", - "codelyzer": "3.0.1", - "rxjs": "5.4.0", - "tslint": "~5.3.2", - "typescript": "~2.3.3", - "zone.js": "0.8.11" - }, - "engines": { - "node": ">=0.8.0" - } + "name": "demo-ngx-openlayers", + "version": "1.0.0-next.0", + "scripts": { + "ng": "ng", + "start": "yarn build:lib && ng serve", + "build:lib": "yarn --cwd projects/ngx-openlayers && ng build ngx-openlayers --prod", + "build": "yarn build:lib && ng build demo-ngx-openlayers", + "test": "yarn build:lib && ng test", + "lint": "ng lint", + "e2e": "yarn build:lib && ng e2e", + "format": "prettier --write \"**/@(src|e2e)/**/*.ts\"", + "release": "yarn --cwd projects/ngx-openlayers release" + }, + "private": true, + "dependencies": { + "@angular/animations": "^6.0.3", + "@angular/common": "^6.0.3", + "@angular/compiler": "^6.0.3", + "@angular/core": "^6.0.3", + "@angular/forms": "^6.0.3", + "@angular/http": "^6.0.3", + "@angular/platform-browser": "^6.0.3", + "@angular/platform-browser-dynamic": "^6.0.3", + "@angular/router": "^6.0.3", + "core-js": "^2.5.4", + "geojson": "^0.5.0", + "hammer-timejs": "^1.1.0", + "hammerjs": "^2.0.8", + "rxjs": "^6.0.0", + "zone.js": "^0.8.26" + }, + "devDependencies": { + "@angular-devkit/build-angular": "~0.6.5", + "@angular-devkit/build-ng-packagr": "~0.6.5", + "@angular/cli": "~6.0.5", + "@angular/compiler-cli": "^6.0.3", + "@angular/language-service": "^6.0.3", + "@types/jasmine": "~2.8.6", + "@types/jasminewd2": "~2.0.3", + "@types/node": "~8.9.4", + "codelyzer": "~4.2.1", + "jasmine-core": "~2.99.1", + "jasmine-spec-reporter": "~4.2.1", + "karma": "~1.7.1", + "karma-chrome-launcher": "~2.2.0", + "karma-coverage-istanbul-reporter": "~1.4.2", + "karma-jasmine": "~1.1.1", + "karma-jasmine-html-reporter": "^0.2.2", + "ng-packagr": "^3.0.0-rc.2", + "prettier": "^1.13.4", + "protractor": "~5.3.0", + "standard-version": "^4.4.0", + "ts-node": "~5.0.1", + "tsickle": ">=0.25.5", + "tslib": "^1.7.1", + "tslint": "~5.9.1", + "tslint-config-prettier": "^1.13.0", + "tslint-plugin-prettier": "^1.3.0", + "typescript": "~2.7.2" + } } diff --git a/projects/ngx-openlayers/CHANGELOG.md b/projects/ngx-openlayers/CHANGELOG.md new file mode 100644 index 00000000..ab5b6989 --- /dev/null +++ b/projects/ngx-openlayers/CHANGELOG.md @@ -0,0 +1,21 @@ +# Change Log + +All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. + + +# [1.0.0-next.0](https://github.com/quentin-ol/ngx-openlayers/compare/v0.8.22...v1.0.0-next.0) (2018-09-21) + + +### Features + +* **demo:** add example of a cursor position ([9a8988e](https://github.com/quentin-ol/ngx-openlayers/commit/9a8988e)) +* **demo:** add example of geojson feature : point, polygon, linestring ([367c72d](https://github.com/quentin-ol/ngx-openlayers/commit/367c72d)) +* **demo:** add example of map position with longitude, latitude and zoom ([251bbf7](https://github.com/quentin-ol/ngx-openlayers/commit/251bbf7)) +* **demo:** add example to display geometry of a geojson file ([fe977e6](https://github.com/quentin-ol/ngx-openlayers/commit/fe977e6)) +* **demo:** example change color on hover or on select ([2e7bda4](https://github.com/quentin-ol/ngx-openlayers/commit/2e7bda4)) +* **demo:** example draw a polygon ([2737e6b](https://github.com/quentin-ol/ngx-openlayers/commit/2737e6b)) +* **demo:** example modify polygon ([18c95fa](https://github.com/quentin-ol/ngx-openlayers/commit/18c95fa)) +* **demo:** example of marker with svg ([b5f57b3](https://github.com/quentin-ol/ngx-openlayers/commit/b5f57b3)) +* **demo:** example of overlay ([b7749f9](https://github.com/quentin-ol/ngx-openlayers/commit/b7749f9)) +* **demo:** example of side by side ([4b5b08b](https://github.com/quentin-ol/ngx-openlayers/commit/4b5b08b)) +* **demo:** example of swipe ([9aa4dab](https://github.com/quentin-ol/ngx-openlayers/commit/9aa4dab)) diff --git a/projects/ngx-openlayers/karma.conf.js b/projects/ngx-openlayers/karma.conf.js new file mode 100644 index 00000000..4c5f8d03 --- /dev/null +++ b/projects/ngx-openlayers/karma.conf.js @@ -0,0 +1,31 @@ +// Karma configuration file, see link for more information +// https://karma-runner.github.io/1.0/config/configuration-file.html + +module.exports = function (config) { + config.set({ + basePath: '', + frameworks: ['jasmine', '@angular-devkit/build-angular'], + plugins: [ + require('karma-jasmine'), + require('karma-chrome-launcher'), + require('karma-jasmine-html-reporter'), + require('karma-coverage-istanbul-reporter'), + require('@angular-devkit/build-angular/plugins/karma') + ], + client: { + clearContext: false // leave Jasmine Spec Runner output visible in browser + }, + coverageIstanbulReporter: { + dir: require('path').join(__dirname, '../../coverage'), + reports: ['html', 'lcovonly'], + fixWebpackSourcePaths: true + }, + reporters: ['progress', 'kjhtml'], + port: 9876, + colors: true, + logLevel: config.LOG_INFO, + autoWatch: true, + browsers: ['Chrome'], + singleRun: false + }); +}; diff --git a/projects/ngx-openlayers/ng-package.json b/projects/ngx-openlayers/ng-package.json new file mode 100644 index 00000000..f44c934e --- /dev/null +++ b/projects/ngx-openlayers/ng-package.json @@ -0,0 +1,11 @@ +{ + "$schema": "../../node_modules/ng-packagr/ng-package.schema.json", + "dest": "../../dist/ngx-openlayers", + "deleteDestPath": false, + "whitelistedNonPeerDependencies": [ + "openlayers", "@types/openlayers" + ], + "lib": { + "entryFile": "src/public_api.ts" + } +} diff --git a/projects/ngx-openlayers/ng-package.prod.json b/projects/ngx-openlayers/ng-package.prod.json new file mode 100644 index 00000000..38540c5f --- /dev/null +++ b/projects/ngx-openlayers/ng-package.prod.json @@ -0,0 +1,10 @@ +{ + "$schema": "../../node_modules/ng-packagr/ng-package.schema.json", + "dest": "../../dist/ngx-openlayers", + "whitelistedNonPeerDependencies": [ + "openlayers", "@types/openlayers" + ], + "lib": { + "entryFile": "src/public_api.ts" + } +} diff --git a/projects/ngx-openlayers/package.json b/projects/ngx-openlayers/package.json new file mode 100644 index 00000000..226fd6d1 --- /dev/null +++ b/projects/ngx-openlayers/package.json @@ -0,0 +1,18 @@ +{ + "name": "ngx-openlayers", + "version": "1.0.0-next.0", + "scripts": { + "release": "standard-version -m \"chore(release): version %s\" -t \"\" --prerelease next" + }, + "standard-version": { + "postchangelog": "cp projects/ngx-openlayers/CHANGELOG.md dist/ngx-openlayers/CHANGELOG.md" + }, + "peerDependencies": { + "@angular/common": "^6.0.0-rc.0 || ^6.0.0", + "@angular/core": "^6.0.0-rc.0 || ^6.0.0" + }, + "dependencies": { + "@types/openlayers": "4.3.x || 4.4.x", + "openlayers": "4.3.x || 4.4.x" + } +} diff --git a/src/components/attribution.component.ts b/projects/ngx-openlayers/src/lib/attribution.component.ts similarity index 78% rename from src/components/attribution.component.ts rename to projects/ngx-openlayers/src/lib/attribution.component.ts index 624d6f46..3fdd6259 100644 --- a/src/components/attribution.component.ts +++ b/projects/ngx-openlayers/src/lib/attribution.component.ts @@ -3,16 +3,13 @@ import { Attribution } from 'openlayers'; @Component({ selector: 'aol-attribution', - template: '' + template: '', }) export class AttributionComponent implements OnInit { instance: Attribution; html: string; - constructor( - private elementRef: ElementRef - ) { - } + constructor(private elementRef: ElementRef) {} ngOnInit() { this.html = this.elementRef.nativeElement.innerHTML; diff --git a/src/components/attributions.component.ts b/projects/ngx-openlayers/src/lib/attributions.component.ts similarity index 78% rename from src/components/attributions.component.ts rename to projects/ngx-openlayers/src/lib/attributions.component.ts index b15319ea..f276d4e7 100644 --- a/src/components/attributions.component.ts +++ b/projects/ngx-openlayers/src/lib/attributions.component.ts @@ -5,15 +5,15 @@ import { AttributionComponent } from './attribution.component'; @Component({ selector: 'aol-attributions', - template: '' + template: '', }) export class AttributionsComponent implements AfterViewInit { instance: Array; - @ContentChildren(AttributionComponent) attributions: QueryList; + @ContentChildren(AttributionComponent) + attributions: QueryList; - constructor(@Host() private source: SourceComponent) { - } + constructor(@Host() private source: SourceComponent) {} /* we can do this at the very end */ ngAfterViewInit() { diff --git a/src/components/content.component.ts b/projects/ngx-openlayers/src/lib/content.component.ts similarity index 57% rename from src/components/content.component.ts rename to projects/ngx-openlayers/src/lib/content.component.ts index 878a39a7..d03c05f9 100644 --- a/src/components/content.component.ts +++ b/projects/ngx-openlayers/src/lib/content.component.ts @@ -2,12 +2,8 @@ import { Component, ElementRef } from '@angular/core'; @Component({ selector: 'aol-content', - template: '' + template: '', }) export class ContentComponent { - - constructor( - public elementRef: ElementRef - ) { - } + constructor(public elementRef: ElementRef) {} } diff --git a/src/components/controls/attribution.component.ts b/projects/ngx-openlayers/src/lib/controls/attribution.component.ts similarity index 79% rename from src/components/controls/attribution.component.ts rename to projects/ngx-openlayers/src/lib/controls/attribution.component.ts index f9cefd60..2997f9bc 100644 --- a/src/components/controls/attribution.component.ts +++ b/projects/ngx-openlayers/src/lib/controls/attribution.component.ts @@ -4,19 +4,16 @@ import { MapComponent } from '../map.component'; @Component({ selector: 'aol-control-attribution', - template: `` + template: ``, }) export class ControlAttributionComponent implements OnInit, OnDestroy { - public componentType: string = 'control'; + public componentType = 'control'; instance: control.Attribution; target: Element; - @Input() collapsible: boolean; + @Input() + collapsible: boolean; - constructor( - private map: MapComponent, - private element: ElementRef - ) { - } + constructor(private map: MapComponent, private element: ElementRef) {} ngOnInit() { this.target = this.element.nativeElement; diff --git a/src/components/controls/control.component.ts b/projects/ngx-openlayers/src/lib/controls/control.component.ts similarity index 77% rename from src/components/controls/control.component.ts rename to projects/ngx-openlayers/src/lib/controls/control.component.ts index f7822599..ea19e14c 100644 --- a/src/components/controls/control.component.ts +++ b/projects/ngx-openlayers/src/lib/controls/control.component.ts @@ -5,18 +5,16 @@ import { ContentComponent } from '../content.component'; @Component({ selector: 'aol-control', - template: `` + template: ``, }) export class ControlComponent implements OnInit, OnDestroy { - public componentType: string = 'control'; + public componentType = 'control'; instance: control.Control; element: Element; - @ContentChild(ContentComponent) content: ContentComponent; + @ContentChild(ContentComponent) + content: ContentComponent; - constructor( - private map: MapComponent - ) { - } + constructor(private map: MapComponent) {} ngOnInit() { if (this.content) { diff --git a/src/components/controls/default.component.ts b/projects/ngx-openlayers/src/lib/controls/default.component.ts similarity index 52% rename from src/components/controls/default.component.ts rename to projects/ngx-openlayers/src/lib/controls/default.component.ts index e20579f5..6798cc91 100644 --- a/src/components/controls/default.component.ts +++ b/projects/ngx-openlayers/src/lib/controls/default.component.ts @@ -4,28 +4,33 @@ import { MapComponent } from '../map.component'; @Component({ selector: 'aol-control-defaults', - template: '' + template: '', }) export class DefaultControlComponent implements OnInit, OnDestroy { instance: Collection; - @Input() attribution: boolean; - @Input() attributionOptions: olx.control.AttributionOptions; - @Input() rotate: boolean; - @Input() rotateOptions: olx.control.RotateOptions; - @Input() zoom: boolean; - @Input() zoomOptions: olx.control.ZoomOptions; + @Input() + attribution: boolean; + @Input() + attributionOptions: olx.control.AttributionOptions; + @Input() + rotate: boolean; + @Input() + rotateOptions: olx.control.RotateOptions; + @Input() + zoom: boolean; + @Input() + zoomOptions: olx.control.ZoomOptions; - constructor(private map: MapComponent) { - } + constructor(private map: MapComponent) {} ngOnInit() { // console.log('ol.control.defaults init: ', this); this.instance = control.defaults(this); - this.instance.forEach((control) => this.map.instance.addControl(control)); + this.instance.forEach(c => this.map.instance.addControl(c)); } ngOnDestroy() { // console.log('removing aol-control-defaults'); - this.instance.forEach((control) => this.map.instance.removeControl(control)); + this.instance.forEach(c => this.map.instance.removeControl(c)); } } diff --git a/src/components/controls/fullscreen.component.ts b/projects/ngx-openlayers/src/lib/controls/fullscreen.component.ts similarity index 69% rename from src/components/controls/fullscreen.component.ts rename to projects/ngx-openlayers/src/lib/controls/fullscreen.component.ts index dead6372..8f2c4cb5 100644 --- a/src/components/controls/fullscreen.component.ts +++ b/projects/ngx-openlayers/src/lib/controls/fullscreen.component.ts @@ -1,14 +1,25 @@ -import { Component, OnDestroy, OnInit } from '@angular/core'; +import { Component, Input, OnDestroy, OnInit } from '@angular/core'; import { control } from 'openlayers'; import { MapComponent } from '../map.component'; @Component({ selector: 'aol-control-fullscreen', - template: `` + template: ``, }) export class ControlFullScreenComponent implements OnInit, OnDestroy { instance: control.FullScreen; + @Input() + className: string; + @Input() + label: string; + @Input() + labelActive: string; + @Input() + tipLabel: string; + @Input() + keys: boolean; + constructor(private map: MapComponent) { // console.log('instancing aol-control-fullscreen'); } diff --git a/src/components/controls/mouseposition.component.ts b/projects/ngx-openlayers/src/lib/controls/mouseposition.component.ts similarity index 79% rename from src/components/controls/mouseposition.component.ts rename to projects/ngx-openlayers/src/lib/controls/mouseposition.component.ts index 003a42ce..3cf4a6b2 100644 --- a/src/components/controls/mouseposition.component.ts +++ b/projects/ngx-openlayers/src/lib/controls/mouseposition.component.ts @@ -4,19 +4,17 @@ import { MapComponent } from '../map.component'; @Component({ selector: 'aol-control-mouseposition', - template: `` + template: ``, }) export class ControlMousePositionComponent implements OnInit, OnDestroy { instance: control.MousePosition; - @Input() coordinateFormat: CoordinateFormatType; - @Input() projection: ProjectionLike; + @Input() + coordinateFormat: CoordinateFormatType; + @Input() + projection: ProjectionLike; target: Element; - constructor( - private map: MapComponent, - private element: ElementRef - ) { - } + constructor(private map: MapComponent, private element: ElementRef) {} ngOnInit() { this.target = this.element.nativeElement; diff --git a/src/components/controls/overviewmap.component.ts b/projects/ngx-openlayers/src/lib/controls/overviewmap.component.ts similarity index 70% rename from src/components/controls/overviewmap.component.ts rename to projects/ngx-openlayers/src/lib/controls/overviewmap.component.ts index 274ddbfa..c8ee56a6 100644 --- a/src/components/controls/overviewmap.component.ts +++ b/projects/ngx-openlayers/src/lib/controls/overviewmap.component.ts @@ -4,18 +4,26 @@ import { MapComponent } from '../map.component'; @Component({ selector: 'aol-control-overviewmap', - template: `` + template: ``, }) export class ControlOverviewMapComponent implements OnInit, OnDestroy { instance: control.OverviewMap; - @Input() collapsed: boolean; - @Input() collapseLabel: string; - @Input() collapsible: boolean; - @Input() label: string; - @Input() layers: layer.Layer[]; - @Input() target: Element; - @Input() tipLabel: string; - @Input() view: View; + @Input() + collapsed: boolean; + @Input() + collapseLabel: string; + @Input() + collapsible: boolean; + @Input() + label: string; + @Input() + layers: layer.Layer[]; + @Input() + target: Element; + @Input() + tipLabel: string; + @Input() + view: View; constructor(private map: MapComponent) { // console.log('instancing aol-control-overviewmap'); diff --git a/src/components/controls/rotate.component.ts b/projects/ngx-openlayers/src/lib/controls/rotate.component.ts similarity index 68% rename from src/components/controls/rotate.component.ts rename to projects/ngx-openlayers/src/lib/controls/rotate.component.ts index 3921d4c1..3c593341 100644 --- a/src/components/controls/rotate.component.ts +++ b/projects/ngx-openlayers/src/lib/controls/rotate.component.ts @@ -1,14 +1,25 @@ -import { Component, OnDestroy, OnInit } from '@angular/core'; +import { Component, Input, OnDestroy, OnInit } from '@angular/core'; import { control } from 'openlayers'; import { MapComponent } from '../map.component'; @Component({ selector: 'aol-control-rotate', - template: `` + template: ``, }) export class ControlRotateComponent implements OnInit, OnDestroy { instance: control.Rotate; + @Input() + className: string; + @Input() + label: string; + @Input() + tipLabel: string; + @Input() + duration: number; + @Input() + autoHide: boolean; + constructor(private map: MapComponent) { // console.log('instancing aol-control-rotate'); } diff --git a/src/components/controls/scaleline.component.ts b/projects/ngx-openlayers/src/lib/controls/scaleline.component.ts similarity index 90% rename from src/components/controls/scaleline.component.ts rename to projects/ngx-openlayers/src/lib/controls/scaleline.component.ts index 600ac967..d3ca5648 100644 --- a/src/components/controls/scaleline.component.ts +++ b/projects/ngx-openlayers/src/lib/controls/scaleline.component.ts @@ -4,11 +4,12 @@ import { MapComponent } from '../map.component'; @Component({ selector: 'aol-control-scaleline', - template: `` + template: ``, }) export class ControlScaleLineComponent implements OnInit, OnDestroy { instance: control.ScaleLine; - @Input() units: string; + @Input() + units: string; constructor(private map: MapComponent) { // console.log('instancing aol-control-scaleline'); diff --git a/src/components/controls/zoom.component.ts b/projects/ngx-openlayers/src/lib/controls/zoom.component.ts similarity index 71% rename from src/components/controls/zoom.component.ts rename to projects/ngx-openlayers/src/lib/controls/zoom.component.ts index 32aac2d5..a6c53b9e 100644 --- a/src/components/controls/zoom.component.ts +++ b/projects/ngx-openlayers/src/lib/controls/zoom.component.ts @@ -4,17 +4,23 @@ import { MapComponent } from '../map.component'; @Component({ selector: 'aol-control-zoom', - template: `` + template: ``, }) export class ControlZoomComponent implements OnInit, OnDestroy { instance: control.Zoom; - @Input() duration: number; - @Input() zoomInLabel: (string | Node); - @Input() zoomOutLabel: (string | Node); - @Input() zoomInTipLabel: string; - @Input() zoomOutTipLabel: string; - @Input() delta: number; + @Input() + duration: number; + @Input() + zoomInLabel: string | Node; + @Input() + zoomOutLabel: string | Node; + @Input() + zoomInTipLabel: string; + @Input() + zoomOutTipLabel: string; + @Input() + delta: number; constructor(private map: MapComponent) { // console.log('instancing aol-control-zoom'); diff --git a/src/components/controls/zoomslider.component.ts b/projects/ngx-openlayers/src/lib/controls/zoomslider.component.ts similarity index 70% rename from src/components/controls/zoomslider.component.ts rename to projects/ngx-openlayers/src/lib/controls/zoomslider.component.ts index 8e6e42f2..acd0f1f1 100644 --- a/src/components/controls/zoomslider.component.ts +++ b/projects/ngx-openlayers/src/lib/controls/zoomslider.component.ts @@ -1,14 +1,23 @@ -import { Component, OnDestroy, OnInit } from '@angular/core'; +import { Component, Input, OnDestroy, OnInit } from '@angular/core'; import { control } from 'openlayers'; import { MapComponent } from '../map.component'; @Component({ selector: 'aol-control-zoomslider', - template: `` + template: ``, }) export class ControlZoomSliderComponent implements OnInit, OnDestroy { instance: control.ZoomSlider; + @Input() + className: string; + @Input() + duration: number; + @Input() + maxResolution: number; + @Input() + minResolution: number; + constructor(private map: MapComponent) { // console.log('instancing aol-control-zoomslider'); } diff --git a/src/components/controls/zoomtoextent.component.ts b/projects/ngx-openlayers/src/lib/controls/zoomtoextent.component.ts similarity index 80% rename from src/components/controls/zoomtoextent.component.ts rename to projects/ngx-openlayers/src/lib/controls/zoomtoextent.component.ts index ea65ee0d..b134b558 100644 --- a/src/components/controls/zoomtoextent.component.ts +++ b/projects/ngx-openlayers/src/lib/controls/zoomtoextent.component.ts @@ -4,15 +4,19 @@ import { MapComponent } from '../map.component'; @Component({ selector: 'aol-control-zoomtoextent', - template: `` + template: ``, }) export class ControlZoomToExtentComponent implements OnInit, OnDestroy { instance: control.ZoomToExtent; - @Input() className: string; - @Input() label: (string | Node); - @Input() tipLabel: string; - @Input() extent: Extent; + @Input() + className: string; + @Input() + label: string | Node; + @Input() + tipLabel: string; + @Input() + extent: Extent; constructor(private map: MapComponent) { // console.log('instancing aol-control-zoomtoextent'); diff --git a/src/components/coordinate.component.ts b/projects/ngx-openlayers/src/lib/coordinate.component.ts similarity index 81% rename from src/components/coordinate.component.ts rename to projects/ngx-openlayers/src/lib/coordinate.component.ts index f2cfafdc..187a05ba 100644 --- a/src/components/coordinate.component.ts +++ b/projects/ngx-openlayers/src/lib/coordinate.component.ts @@ -7,14 +7,17 @@ import { OverlayComponent } from './overlay.component'; @Component({ selector: 'aol-coordinate', - template: `
` + template: `
`, }) export class CoordinateComponent implements OnChanges { private host: any; - @Input() x: number; - @Input() y: number; - @Input() srid: string = 'EPSG:3857'; + @Input() + x: number; + @Input() + y: number; + @Input() + srid = 'EPSG:3857'; constructor( private map: MapComponent, @@ -62,18 +65,20 @@ export class CoordinateComponent implements OnChanges { @Component({ selector: 'aol-collection-coordinates', - template: `
` + template: `
`, }) export class CollectionCoordinatesComponent implements OnChanges { private host: any; - @Input() coordinates: [number, number][]; - @Input() srid: string = 'EPSG:3857'; + @Input() + coordinates: [number, number][]; + @Input() + srid = 'EPSG:3857'; constructor( - private map: MapComponent, - @Optional() geometryLinestring: GeometryLinestringComponent, - @Optional() geometryPolygon: GeometryPolygonComponent + private map: MapComponent, + @Optional() geometryLinestring: GeometryLinestringComponent, + @Optional() geometryPolygon: GeometryPolygonComponent ) { // console.log('creating aol-collection-coordinates'); if (!!geometryLinestring) { @@ -99,9 +104,11 @@ export class CollectionCoordinatesComponent implements OnChanges { transformedCoordinates = this.coordinates; } else { transformedCoordinates = []; - this.coordinates.forEach(function (coordinate: Coordinate) { - transformedCoordinates.push(proj.transform(coordinate, this.srid, referenceProjectionCode)); - }.bind(this)); + this.coordinates.forEach( + function(coordinate: Coordinate) { + transformedCoordinates.push(proj.transform(coordinate, this.srid, referenceProjectionCode)); + }.bind(this) + ); } switch (this.host.componentType) { case 'geometry-linestring': @@ -111,8 +118,8 @@ export class CollectionCoordinatesComponent implements OnChanges { this.host.instance.setCoordinates([transformedCoordinates]); break; default: - throw new Error('aol-collection-coordinates\' host is of unknown type: ' + this.host.componentType); - // break; + throw new Error('aol-collection-coordinates host is of unknown type: ' + this.host.componentType); + // break; } } } diff --git a/src/components/feature.component.ts b/projects/ngx-openlayers/src/lib/feature.component.ts similarity index 76% rename from src/components/feature.component.ts rename to projects/ngx-openlayers/src/lib/feature.component.ts index a9c2a8a6..3d2389cb 100644 --- a/src/components/feature.component.ts +++ b/projects/ngx-openlayers/src/lib/feature.component.ts @@ -1,19 +1,19 @@ import { Component, OnInit, OnDestroy, OnChanges, Input, SimpleChanges } from '@angular/core'; import { Feature } from 'openlayers'; -import { SourceVectorComponent } from './sources'; +import { SourceVectorComponent } from './sources/vector.component'; @Component({ selector: 'aol-feature', - template: `` + template: ``, }) export class FeatureComponent implements OnInit, OnDestroy, OnChanges { public componentType = 'feature'; public instance: Feature; - @Input() id: string|number|undefined; + @Input() + id: string | number | undefined; - constructor(private host: SourceVectorComponent) { - } + constructor(private host: SourceVectorComponent) {} ngOnInit() { this.instance = new Feature(); diff --git a/src/components/formats/format.component.ts b/projects/ngx-openlayers/src/lib/formats/format.component.ts similarity index 100% rename from src/components/formats/format.component.ts rename to projects/ngx-openlayers/src/lib/formats/format.component.ts diff --git a/projects/ngx-openlayers/src/lib/formats/mvt.component.ts b/projects/ngx-openlayers/src/lib/formats/mvt.component.ts new file mode 100644 index 00000000..824b1182 --- /dev/null +++ b/projects/ngx-openlayers/src/lib/formats/mvt.component.ts @@ -0,0 +1,28 @@ +import { Component, forwardRef, Input } from '@angular/core'; +import { format, geom } from 'openlayers'; +import { FormatComponent } from './format.component'; + +@Component({ + selector: 'aol-format-mvt', + template: '', + providers: [{ provide: FormatComponent, useExisting: forwardRef(() => FormatMVTComponent) }], +}) +export class FormatMVTComponent extends FormatComponent { + instance: format.MVT; + + @Input() + featureClass: + | ((geom: geom.Geometry | { [k: string]: any }) => any) + | ((geom: geom.GeometryType, arg2: number[], arg3: number[] | number[][], arg4: { [k: string]: any }) => any); + @Input() + geometryName: string; + @Input() + layerName: string; + @Input() + layers: string[]; + + constructor() { + super(); + this.instance = new format.MVT(this); + } +} diff --git a/src/components/geometry.components.ts b/projects/ngx-openlayers/src/lib/geometry.components.ts similarity index 81% rename from src/components/geometry.components.ts rename to projects/ngx-openlayers/src/lib/geometry.components.ts index 231d0c50..770d408c 100644 --- a/src/components/geometry.components.ts +++ b/projects/ngx-openlayers/src/lib/geometry.components.ts @@ -4,10 +4,10 @@ import { FeatureComponent } from './feature.component'; @Component({ selector: 'aol-geometry-linestring', - template: `` + template: ``, }) export class GeometryLinestringComponent implements OnInit, OnDestroy { - public componentType: string = 'geometry-linestring'; + public componentType = 'geometry-linestring'; public instance: geom.LineString; constructor(private host: FeatureComponent) { @@ -25,10 +25,10 @@ export class GeometryLinestringComponent implements OnInit, OnDestroy { @Component({ selector: 'aol-geometry-point', - template: `` + template: ``, }) export class GeometryPointComponent implements OnInit, OnDestroy { - public componentType: string = 'geometry-point'; + public componentType = 'geometry-point'; public instance: geom.Point; constructor(private host: FeatureComponent) { @@ -47,10 +47,10 @@ export class GeometryPointComponent implements OnInit, OnDestroy { @Component({ selector: 'aol-geometry-polygon', - template: `` + template: ``, }) export class GeometryPolygonComponent implements OnInit, OnDestroy { - public componentType: string = 'geometry-polygon'; + public componentType = 'geometry-polygon'; public instance: geom.Polygon; constructor(private host: FeatureComponent) { @@ -59,7 +59,7 @@ export class GeometryPolygonComponent implements OnInit, OnDestroy { ngOnInit() { // defaulting coordinates to [0,0]. To be overridden in child component. - this.instance = new geom.Polygon([ [ [0, 0], [1, 0], [1, 1] ] ]); + this.instance = new geom.Polygon([[[0, 0], [1, 0], [1, 1]]]); this.host.instance.setGeometry(this.instance); } diff --git a/src/components/graticule.component.ts b/projects/ngx-openlayers/src/lib/graticule.component.ts similarity index 68% rename from src/components/graticule.component.ts rename to projects/ngx-openlayers/src/lib/graticule.component.ts index 8b438e67..ad90c70f 100644 --- a/src/components/graticule.component.ts +++ b/projects/ngx-openlayers/src/lib/graticule.component.ts @@ -4,28 +4,31 @@ import { MapComponent } from './map.component'; @Component({ selector: 'aol-graticule', - template: '' + template: '', }) export class GraticuleComponent implements AfterContentInit, OnChanges { instance: any; - public componentType: string = 'graticule'; + public componentType = 'graticule'; - @Input() strokeStyle: style.Stroke; - @Input() showLabels: boolean; - @Input() lonLabelPosition: number; - @Input() latLabelPosition: number; + @Input() + strokeStyle: style.Stroke; + @Input() + showLabels: boolean; + @Input() + lonLabelPosition: number; + @Input() + latLabelPosition: number; - constructor(private map: MapComponent) { - } + constructor(private map: MapComponent) {} ngOnChanges(changes: SimpleChanges) { - let properties: {[index: string]: any} = {}; + const properties: { [index: string]: any } = {}; if (!this.instance) { return; } - for (let key in changes) { + for (const key in changes) { if (changes.hasOwnProperty(key)) { properties[key] = changes[key].currentValue; } @@ -42,7 +45,7 @@ export class GraticuleComponent implements AfterContentInit, OnChanges { strokeStyle: this.strokeStyle, showLabels: this.showLabels, lonLabelPosition: this.lonLabelPosition, - latLabelPosition: this.latLabelPosition + latLabelPosition: this.latLabelPosition, }); this.instance.setMap(this.map.instance); } diff --git a/src/components/interactions/default.component.ts b/projects/ngx-openlayers/src/lib/interactions/default.component.ts similarity index 63% rename from src/components/interactions/default.component.ts rename to projects/ngx-openlayers/src/lib/interactions/default.component.ts index 2f440b89..6e17dbae 100644 --- a/src/components/interactions/default.component.ts +++ b/projects/ngx-openlayers/src/lib/interactions/default.component.ts @@ -4,20 +4,19 @@ import { MapComponent } from '../map.component'; @Component({ selector: 'aol-interaction-default', - template: '' + template: '', }) export class DefaultInteractionComponent implements OnInit, OnDestroy { instance: Collection; - constructor(private map: MapComponent) { - } + constructor(private map: MapComponent) {} ngOnInit() { this.instance = interaction.defaults(); - this.instance.forEach((interaction) => this.map.instance.addInteraction(interaction)); + this.instance.forEach(i => this.map.instance.addInteraction(i)); } ngOnDestroy() { - this.instance.forEach((interaction) => this.map.instance.removeInteraction(interaction)); + this.instance.forEach(i => this.map.instance.removeInteraction(i)); } } diff --git a/src/components/interactions/doubleclickzoom.component.ts b/projects/ngx-openlayers/src/lib/interactions/doubleclickzoom.component.ts similarity index 82% rename from src/components/interactions/doubleclickzoom.component.ts rename to projects/ngx-openlayers/src/lib/interactions/doubleclickzoom.component.ts index 30d3ffdc..2eaf570a 100644 --- a/src/components/interactions/doubleclickzoom.component.ts +++ b/projects/ngx-openlayers/src/lib/interactions/doubleclickzoom.component.ts @@ -4,16 +4,17 @@ import { MapComponent } from '../map.component'; @Component({ selector: 'aol-interaction-doubleclickzoom', - template: '' + template: '', }) export class DoubleClickZoomInteractionComponent implements OnInit, OnDestroy { instance: interaction.DoubleClickZoom; - @Input() duration: number; - @Input() delta: number; + @Input() + duration: number; + @Input() + delta: number; - constructor(private map: MapComponent) { - } + constructor(private map: MapComponent) {} ngOnInit() { this.instance = new interaction.DoubleClickZoom(this); diff --git a/src/components/interactions/draganddrop.component.ts b/projects/ngx-openlayers/src/lib/interactions/draganddrop.component.ts similarity index 74% rename from src/components/interactions/draganddrop.component.ts rename to projects/ngx-openlayers/src/lib/interactions/draganddrop.component.ts index cdce0014..60b7f3a1 100644 --- a/src/components/interactions/draganddrop.component.ts +++ b/projects/ngx-openlayers/src/lib/interactions/draganddrop.component.ts @@ -4,17 +4,19 @@ import { MapComponent } from '../map.component'; @Component({ selector: 'aol-interaction-draganddrop', - template: '' + template: '', }) export class DragAndDropInteractionComponent implements OnInit, OnDestroy { instance: interaction.DragAndDrop; - @Input() formatConstructors: ((n: format.Feature) => any)[]; - @Input() projection: ProjectionLike; - @Input() target: Element; + @Input() + formatConstructors: ((n: format.Feature) => any)[]; + @Input() + projection: ProjectionLike; + @Input() + target: Element; - constructor(private map: MapComponent) { - } + constructor(private map: MapComponent) {} ngOnInit() { this.instance = new interaction.DragAndDrop(this); diff --git a/src/components/interactions/dragbox.component.ts b/projects/ngx-openlayers/src/lib/interactions/dragbox.component.ts similarity index 74% rename from src/components/interactions/dragbox.component.ts rename to projects/ngx-openlayers/src/lib/interactions/dragbox.component.ts index 88245ca1..07521478 100644 --- a/src/components/interactions/dragbox.component.ts +++ b/projects/ngx-openlayers/src/lib/interactions/dragbox.component.ts @@ -4,17 +4,19 @@ import { MapComponent } from '../map.component'; @Component({ selector: 'aol-interaction-dragbox', - template: '' + template: '', }) export class DragBoxInteractionComponent implements OnInit, OnDestroy { instance: interaction.DragBox; - @Input() className: string; - @Input() condition: EventsConditionType; - @Input() boxEndCondition: DragBoxEndConditionType; + @Input() + className: string; + @Input() + condition: EventsConditionType; + @Input() + boxEndCondition: DragBoxEndConditionType; - constructor(private map: MapComponent) { - } + constructor(private map: MapComponent) {} ngOnInit() { this.instance = new interaction.DragBox(this); diff --git a/src/components/interactions/dragpan.component.ts b/projects/ngx-openlayers/src/lib/interactions/dragpan.component.ts similarity index 80% rename from src/components/interactions/dragpan.component.ts rename to projects/ngx-openlayers/src/lib/interactions/dragpan.component.ts index 9ebbd83c..fdebad88 100644 --- a/src/components/interactions/dragpan.component.ts +++ b/projects/ngx-openlayers/src/lib/interactions/dragpan.component.ts @@ -4,16 +4,17 @@ import { MapComponent } from '../map.component'; @Component({ selector: 'aol-interaction-dragpan', - template: '' + template: '', }) export class DragPanInteractionComponent implements OnInit, OnDestroy { instance: interaction.DragPan; - @Input() condition: EventsConditionType; - @Input() kinetic: Kinetic; + @Input() + condition: EventsConditionType; + @Input() + kinetic: Kinetic; - constructor(private map: MapComponent) { - } + constructor(private map: MapComponent) {} ngOnInit() { this.instance = new interaction.DragPan(this); diff --git a/src/components/interactions/dragrotate.component.ts b/projects/ngx-openlayers/src/lib/interactions/dragrotate.component.ts similarity index 80% rename from src/components/interactions/dragrotate.component.ts rename to projects/ngx-openlayers/src/lib/interactions/dragrotate.component.ts index 3c7dc4f1..16462643 100644 --- a/src/components/interactions/dragrotate.component.ts +++ b/projects/ngx-openlayers/src/lib/interactions/dragrotate.component.ts @@ -4,16 +4,17 @@ import { MapComponent } from '../map.component'; @Component({ selector: 'aol-interaction-dragrotate', - template: '' + template: '', }) export class DragRotateInteractionComponent implements OnInit, OnDestroy { instance: interaction.DragRotate; - @Input() condition: EventsConditionType; - @Input() duration: number; + @Input() + condition: EventsConditionType; + @Input() + duration: number; - constructor(private map: MapComponent) { - } + constructor(private map: MapComponent) {} ngOnInit() { this.instance = new interaction.DragRotate(this); diff --git a/src/components/interactions/dragrotateandzoom.component.ts b/projects/ngx-openlayers/src/lib/interactions/dragrotateandzoom.component.ts similarity index 81% rename from src/components/interactions/dragrotateandzoom.component.ts rename to projects/ngx-openlayers/src/lib/interactions/dragrotateandzoom.component.ts index fdfd479e..ff401860 100644 --- a/src/components/interactions/dragrotateandzoom.component.ts +++ b/projects/ngx-openlayers/src/lib/interactions/dragrotateandzoom.component.ts @@ -4,16 +4,17 @@ import { MapComponent } from '../map.component'; @Component({ selector: 'aol-interaction-dragrotateandzoom', - template: '' + template: '', }) export class DragRotateAndZoomInteractionComponent implements OnInit, OnDestroy { instance: interaction.DragRotate; - @Input() condition: EventsConditionType; - @Input() duration: number; + @Input() + condition: EventsConditionType; + @Input() + duration: number; - constructor(private map: MapComponent) { - } + constructor(private map: MapComponent) {} ngOnInit() { this.instance = new interaction.DragRotateAndZoom(this); diff --git a/src/components/interactions/dragzoom.component.ts b/projects/ngx-openlayers/src/lib/interactions/dragzoom.component.ts similarity index 73% rename from src/components/interactions/dragzoom.component.ts rename to projects/ngx-openlayers/src/lib/interactions/dragzoom.component.ts index 661e133a..dc6fd16c 100644 --- a/src/components/interactions/dragzoom.component.ts +++ b/projects/ngx-openlayers/src/lib/interactions/dragzoom.component.ts @@ -4,18 +4,21 @@ import { MapComponent } from '../map.component'; @Component({ selector: 'aol-interaction-dragzoom', - template: '' + template: '', }) export class DragZoomInteractionComponent implements OnInit, OnDestroy { instance: interaction.DragZoom; - @Input() className: string; - @Input() condition: EventsConditionType; - @Input() duration: number; - @Input() out: boolean; + @Input() + className: string; + @Input() + condition: EventsConditionType; + @Input() + duration: number; + @Input() + out: boolean; - constructor(private map: MapComponent) { - } + constructor(private map: MapComponent) {} ngOnInit() { this.instance = new interaction.DragZoom(this); diff --git a/projects/ngx-openlayers/src/lib/interactions/draw.component.ts b/projects/ngx-openlayers/src/lib/interactions/draw.component.ts new file mode 100644 index 00000000..edbaa38d --- /dev/null +++ b/projects/ngx-openlayers/src/lib/interactions/draw.component.ts @@ -0,0 +1,69 @@ +import { Component, Input, OnDestroy, OnInit, EventEmitter, Output } from '@angular/core'; +import { interaction } from 'openlayers'; +import { MapComponent } from '../map.component'; + +@Component({ + selector: 'aol-interaction-draw', + template: '', +}) +export class DrawInteractionComponent implements OnInit, OnDestroy { + instance: interaction.Draw; + + @Input() + clickTolerance?: number; + @Input() + features?: ol.Collection; + @Input() + source?: ol.source.Vector; + @Input() + snapTolerance?: number; + @Input() + type: ol.geom.GeometryType; + @Input() + maxPoints?: number; + @Input() + minPoints?: number; + @Input() + finishCondition?: ol.EventsConditionType; + @Input() + style?: ol.style.Style | ol.style.Style[] | ol.StyleFunction; + @Input() + geometryFunction?: ol.DrawGeometryFunctionType; + @Input() + geometryName?: string; + @Input() + condition?: ol.EventsConditionType; + @Input() + freehandCondition?: ol.EventsConditionType; + @Input() + freehand?: boolean; + @Input() + wrapX?: boolean; + + @Output() + onChange = new EventEmitter(); + @Output() + onChangeActive = new EventEmitter(); + @Output() + onDrawEnd = new EventEmitter(); + @Output() + onDrawStart = new EventEmitter(); + @Output() + onPropertyChange = new EventEmitter(); + + constructor(private map: MapComponent) {} + + ngOnInit() { + this.instance = new interaction.Draw(this); + this.instance.on('change', (event: ol.interaction.Draw.Event) => this.onChange.emit(event)); + this.instance.on('change:active', (event: ol.interaction.Draw.Event) => this.onChangeActive.emit(event)); + this.instance.on('drawend', (event: ol.interaction.Draw.Event) => this.onDrawEnd.emit(event)); + this.instance.on('drawstart', (event: ol.interaction.Draw.Event) => this.onDrawStart.emit(event)); + this.instance.on('propertychange', (event: ol.interaction.Draw.Event) => this.onPropertyChange.emit(event)); + this.map.instance.addInteraction(this.instance); + } + + ngOnDestroy() { + this.map.instance.removeInteraction(this.instance); + } +} diff --git a/projects/ngx-openlayers/src/lib/interactions/modify.component.ts b/projects/ngx-openlayers/src/lib/interactions/modify.component.ts new file mode 100644 index 00000000..2f34d14c --- /dev/null +++ b/projects/ngx-openlayers/src/lib/interactions/modify.component.ts @@ -0,0 +1,53 @@ +import { Component, OnDestroy, OnInit, Input, Output, EventEmitter } from '@angular/core'; +import { interaction, EventsConditionType, style, StyleFunction, Collection, Feature, source } from 'openlayers'; +import { MapComponent } from '../map.component'; + +@Component({ + selector: 'aol-interaction-modify', + template: '', +}) +export class ModifyInteractionComponent implements OnInit, OnDestroy { + instance: interaction.Modify; + + @Input() + condition?: EventsConditionType; + @Input() + deleteCondition?: EventsConditionType; + @Input() + pixelTolerance?: number; + @Input() + style?: style.Style | style.Style[] | StyleFunction; + @Input() + features: Collection; + @Input() + wrapX?: boolean; + @Input() + source?: source.Vector; + + @Output() + onModifyEnd = new EventEmitter(); + @Output() + onModifyStart = new EventEmitter(); + @Output() + onChange = new EventEmitter(); + @Output() + onChangeActive = new EventEmitter(); + @Output() + onPropertyChange = new EventEmitter(); + + constructor(private map: MapComponent) {} + + ngOnInit() { + this.instance = new interaction.Modify(this); + this.instance.on('change', (event: interaction.Modify.Event) => this.onChange.emit(event)); + this.instance.on('change:active', (event: interaction.Modify.Event) => this.onChangeActive.emit(event)); + this.instance.on('propertychange', (event: interaction.Modify.Event) => this.onPropertyChange.emit(event)); + this.instance.on('modifyend', (event: interaction.Modify.Event) => this.onModifyEnd.emit(event)); + this.instance.on('modifystart', (event: interaction.Modify.Event) => this.onModifyStart.emit(event)); + this.map.instance.addInteraction(this.instance); + } + + ngOnDestroy() { + this.map.instance.removeInteraction(this.instance); + } +} diff --git a/src/components/interactions/mousewheelzoom.component.ts b/projects/ngx-openlayers/src/lib/interactions/mousewheelzoom.component.ts similarity index 78% rename from src/components/interactions/mousewheelzoom.component.ts rename to projects/ngx-openlayers/src/lib/interactions/mousewheelzoom.component.ts index 8520ff1d..a6738c24 100644 --- a/src/components/interactions/mousewheelzoom.component.ts +++ b/projects/ngx-openlayers/src/lib/interactions/mousewheelzoom.component.ts @@ -4,16 +4,18 @@ import { MapComponent } from '../map.component'; @Component({ selector: 'aol-interaction-mousewheelzoom', - template: '' + template: '', }) export class MouseWheelZoomInteractionComponent implements OnInit, OnDestroy { instance: interaction.MouseWheelZoom; - @Input() duration: number; - @Input() timeout: number; - @Input() useAnchor: boolean; + @Input() + duration: number; + @Input() + timeout: number; + @Input() + useAnchor: boolean; - constructor(private map: MapComponent) { - } + constructor(private map: MapComponent) {} ngOnInit() { this.instance = new interaction.MouseWheelZoom(this); diff --git a/src/components/interactions/pinchzoom.component.ts b/projects/ngx-openlayers/src/lib/interactions/pinchzoom.component.ts similarity index 80% rename from src/components/interactions/pinchzoom.component.ts rename to projects/ngx-openlayers/src/lib/interactions/pinchzoom.component.ts index bea650f8..ffb6b886 100644 --- a/src/components/interactions/pinchzoom.component.ts +++ b/projects/ngx-openlayers/src/lib/interactions/pinchzoom.component.ts @@ -4,16 +4,17 @@ import { MapComponent } from '../map.component'; @Component({ selector: 'aol-interaction-pinchzoom', - template: '' + template: '', }) export class PinchZoomInteractionComponent implements OnInit, OnDestroy { instance: interaction.PinchZoom; - @Input() duration: number; - @Input() constrainResolution: boolean; + @Input() + duration: number; + @Input() + constrainResolution: boolean; - constructor(private map: MapComponent) { - } + constructor(private map: MapComponent) {} ngOnInit() { this.instance = new interaction.PinchZoom(this); diff --git a/projects/ngx-openlayers/src/lib/interactions/select.component.ts b/projects/ngx-openlayers/src/lib/interactions/select.component.ts new file mode 100644 index 00000000..258233e9 --- /dev/null +++ b/projects/ngx-openlayers/src/lib/interactions/select.component.ts @@ -0,0 +1,64 @@ +import { Component, OnDestroy, OnInit, Input, Output, EventEmitter } from '@angular/core'; +import { + interaction, + EventsConditionType, + layer, + style, + Collection, + SelectFilterFunction, + StyleFunction, + Feature, +} from 'openlayers'; +import { MapComponent } from '../map.component'; + +@Component({ + selector: 'aol-interaction-select', + template: '', +}) +export class SelectInteractionComponent implements OnInit, OnDestroy { + instance: interaction.Select; + + @Input() + addCondition?: EventsConditionType; + @Input() + condition?: EventsConditionType; + @Input() + layers?: layer.Layer[] | ((layer: layer.Layer) => boolean); + @Input() + style?: style.Style | style.Style[] | StyleFunction; + @Input() + removeCondition?: EventsConditionType; + @Input() + toggleCondition?: EventsConditionType; + @Input() + multi?: boolean; + @Input() + features?: Collection; + @Input() + filter?: SelectFilterFunction; + @Input() + wrapX?: boolean; + + @Output() + onChange = new EventEmitter(); + @Output() + onSelect = new EventEmitter(); + @Output() + onPropertyChange = new EventEmitter(); + + constructor(private map: MapComponent) {} + + ngOnInit() { + this.instance = new interaction.Select(this); + + this.instance.on('change', (event: interaction.Select.Event) => this.onChange.emit(event)); + this.instance.on('select', (event: interaction.Select.Event) => this.onSelect.emit(event)); + this.instance.on('propertychange', (event: interaction.Select.Event) => this.onPropertyChange.emit(event)); + + this.map.instance.addInteraction(this.instance); + } + + ngOnDestroy() { + this.map.instance.removeInteraction(this.instance); + } +} diff --git a/src/components/interactions/translate.component.ts b/projects/ngx-openlayers/src/lib/interactions/translate.component.ts similarity index 74% rename from src/components/interactions/translate.component.ts rename to projects/ngx-openlayers/src/lib/interactions/translate.component.ts index 082f258b..700aa4d0 100644 --- a/src/components/interactions/translate.component.ts +++ b/projects/ngx-openlayers/src/lib/interactions/translate.component.ts @@ -4,20 +4,28 @@ import { MapComponent } from '../map.component'; @Component({ selector: 'aol-interaction-translate', - template: '' + template: '', }) export class TranslateInteractionComponent implements OnInit, OnDestroy { instance: interaction.Translate; - @Input() features?: Collection; - @Input() layers?: (layer.Layer[] | ((layer: layer.Layer) => boolean)); - @Input() hitTolerance?: number; - - @Output() onChange: EventEmitter; - @Output() onPropertyChange: EventEmitter; - @Output() onTranslateEnd: EventEmitter; - @Output() onTranslateStart: EventEmitter; - @Output() onTranslating: EventEmitter; + @Input() + features?: Collection; + @Input() + layers?: layer.Layer[] | ((layer: layer.Layer) => boolean); + @Input() + hitTolerance?: number; + + @Output() + onChange: EventEmitter; + @Output() + onPropertyChange: EventEmitter; + @Output() + onTranslateEnd: EventEmitter; + @Output() + onTranslateStart: EventEmitter; + @Output() + onTranslating: EventEmitter; constructor(private map: MapComponent) { this.onChange = new EventEmitter(); diff --git a/src/components/layers/layer.component.ts b/projects/ngx-openlayers/src/lib/layers/layer.component.ts similarity index 75% rename from src/components/layers/layer.component.ts rename to projects/ngx-openlayers/src/lib/layers/layer.component.ts index e54955a9..2a04696f 100644 --- a/src/components/layers/layer.component.ts +++ b/projects/ngx-openlayers/src/lib/layers/layer.component.ts @@ -1,24 +1,31 @@ import { OnDestroy, OnInit, OnChanges, Input, SimpleChanges } from '@angular/core'; -import { layer, Extent } from 'openlayers'; import { MapComponent } from '../map.component'; +import { Extent } from 'openlayers'; import { LayerGroupComponent } from './layergroup.component'; export abstract class LayerComponent implements OnInit, OnChanges, OnDestroy { public instance: any; - public componentType: string = 'layer'; + public componentType = 'layer'; - @Input() opacity: number; - @Input() visible: boolean; - @Input() extent: Extent; - @Input() zIndex: number; - @Input() minResolution: number; - @Input() maxResolution: number; + @Input() + opacity: number; + @Input() + visible: boolean; + @Input() + extent: Extent; + @Input() + zIndex: number; + @Input() + minResolution: number; + @Input() + maxResolution: number; - @Input() precompose: (evt: ol.events.Event) => void; - @Input() postcompose: (evt: ol.events.Event) => void; + @Input() + precompose: (evt: ol.events.Event) => void; + @Input() + postcompose: (evt: ol.events.Event) => void; - constructor(protected host: LayerGroupComponent | MapComponent) { - } + constructor(protected host: LayerGroupComponent | MapComponent) {} ngOnInit() { if (this.precompose !== null && this.precompose !== undefined) { @@ -35,19 +42,19 @@ export abstract class LayerComponent implements OnInit, OnChanges, OnDestroy { } ngOnChanges(changes: SimpleChanges) { - let properties: { [index: string]: any } = {}; + const properties: { [index: string]: any } = {}; if (!this.instance) { return; } - for (let key in changes) { + for (const key in changes) { if (changes.hasOwnProperty(key)) { properties[key] = changes[key].currentValue; if (key === 'precompose') { - this.instance.un('precompose', changes[key].previousValue) + this.instance.un('precompose', changes[key].previousValue); this.instance.on('precompose', changes[key].currentValue); } if (key === 'postcompose') { - this.instance.un('postcompose', changes[key].previousValue) + this.instance.un('postcompose', changes[key].previousValue); this.instance.on('postcompose', changes[key].currentValue); } } diff --git a/src/components/layers/layergroup.component.ts b/projects/ngx-openlayers/src/lib/layers/layergroup.component.ts similarity index 67% rename from src/components/layers/layergroup.component.ts rename to projects/ngx-openlayers/src/lib/layers/layergroup.component.ts index 48350d24..031f4cf4 100644 --- a/src/components/layers/layergroup.component.ts +++ b/projects/ngx-openlayers/src/lib/layers/layergroup.component.ts @@ -1,17 +1,21 @@ -import { Component, OnDestroy, OnInit, SkipSelf, Inject, Optional } from '@angular/core'; +import { Component, OnDestroy, OnInit, SkipSelf, Optional } from '@angular/core'; import { layer } from 'openlayers'; import { LayerComponent } from './layer.component'; import { MapComponent } from '../map.component'; @Component({ selector: 'aol-layer-group', - template: `` + template: ``, }) export class LayerGroupComponent extends LayerComponent implements OnInit, OnDestroy { public instance: ol.layer.Group; - constructor(map: MapComponent, - @SkipSelf() @Optional() group?: LayerGroupComponent) { + constructor( + map: MapComponent, + @SkipSelf() + @Optional() + group?: LayerGroupComponent + ) { super(group || map); } diff --git a/src/components/layers/layerimage.component.ts b/projects/ngx-openlayers/src/lib/layers/layerimage.component.ts similarity index 57% rename from src/components/layers/layerimage.component.ts rename to projects/ngx-openlayers/src/lib/layers/layerimage.component.ts index e5e8ff22..c31555d3 100644 --- a/src/components/layers/layerimage.component.ts +++ b/projects/ngx-openlayers/src/lib/layers/layerimage.component.ts @@ -1,7 +1,4 @@ -import { - Component, EventEmitter, Input, OnChanges, OnInit, Optional, - SimpleChanges -} from '@angular/core'; +import { Component, Input, OnChanges, OnInit, Optional, SimpleChanges } from '@angular/core'; import { Extent, layer, source } from 'openlayers'; import { MapComponent } from '../map.component'; import { LayerComponent } from './layer.component'; @@ -9,20 +6,25 @@ import { LayerGroupComponent } from './layergroup.component'; @Component({ selector: 'aol-layer-image', - template: `` + template: ``, }) export class LayerImageComponent extends LayerComponent implements OnInit, OnChanges { public source: source.Image; - @Input() opacity: number; - @Input() visible: boolean; - @Input() extent: Extent; - @Input() minResolution: number; - @Input() maxResolution: number; - @Input() zIndex: number; + @Input() + opacity: number; + @Input() + visible: boolean; + @Input() + extent: Extent; + @Input() + minResolution: number; + @Input() + maxResolution: number; + @Input() + zIndex: number; - constructor(map: MapComponent, - @Optional() group?: LayerGroupComponent) { + constructor(map: MapComponent, @Optional() group?: LayerGroupComponent) { super(group || map); } diff --git a/src/components/layers/layertile.component.ts b/projects/ngx-openlayers/src/lib/layers/layertile.component.ts similarity index 67% rename from src/components/layers/layertile.component.ts rename to projects/ngx-openlayers/src/lib/layers/layertile.component.ts index 4f268f39..baf6dcde 100644 --- a/src/components/layers/layertile.component.ts +++ b/projects/ngx-openlayers/src/lib/layers/layertile.component.ts @@ -1,7 +1,4 @@ -import { - Component, OnDestroy, OnInit, Input, Optional, OnChanges, - SimpleChanges -} from '@angular/core'; +import { Component, OnDestroy, OnInit, Input, Optional, OnChanges, SimpleChanges } from '@angular/core'; import { layer, source } from 'openlayers'; import { MapComponent } from '../map.component'; import { LayerComponent } from './layer.component'; @@ -9,16 +6,17 @@ import { LayerGroupComponent } from './layergroup.component'; @Component({ selector: 'aol-layer-tile', - template: `` + template: ``, }) export class LayerTileComponent extends LayerComponent implements OnInit, OnDestroy, OnChanges { public source: source.Tile; - @Input() preload: number; - @Input() useInterimTilesOnError: boolean; + @Input() + preload: number; + @Input() + useInterimTilesOnError: boolean; - constructor(map: MapComponent, - @Optional() group?: LayerGroupComponent) { + constructor(map: MapComponent, @Optional() group?: LayerGroupComponent) { super(group || map); } diff --git a/src/components/layers/layervector.component.ts b/projects/ngx-openlayers/src/lib/layers/layervector.component.ts similarity index 70% rename from src/components/layers/layervector.component.ts rename to projects/ngx-openlayers/src/lib/layers/layervector.component.ts index 8d9b8398..1d4928b3 100644 --- a/src/components/layers/layervector.component.ts +++ b/projects/ngx-openlayers/src/lib/layers/layervector.component.ts @@ -1,7 +1,4 @@ -import { - Component, OnDestroy, OnInit, Input, Optional, OnChanges, - SimpleChanges -} from '@angular/core'; +import { Component, OnDestroy, OnInit, Input, Optional, OnChanges, SimpleChanges } from '@angular/core'; import { layer, source } from 'openlayers'; import { MapComponent } from '../map.component'; import { LayerComponent } from './layer.component'; @@ -9,15 +6,15 @@ import { LayerGroupComponent } from './layergroup.component'; @Component({ selector: 'aol-layer-vector', - template: `` + template: ``, }) export class LayerVectorComponent extends LayerComponent implements OnInit, OnDestroy, OnChanges { public source: source.Vector; - @Input() renderBuffer: number; + @Input() + renderBuffer: number; - constructor(map: MapComponent, - @Optional() group?: LayerGroupComponent) { + constructor(map: MapComponent, @Optional() group?: LayerGroupComponent) { super(group || map); } diff --git a/src/components/layers/layervectortile.component.ts b/projects/ngx-openlayers/src/lib/layers/layervectortile.component.ts similarity index 61% rename from src/components/layers/layervectortile.component.ts rename to projects/ngx-openlayers/src/lib/layers/layervectortile.component.ts index fc9c1bd1..aca2583d 100644 --- a/src/components/layers/layervectortile.component.ts +++ b/projects/ngx-openlayers/src/lib/layers/layervectortile.component.ts @@ -6,21 +6,26 @@ import { LayerGroupComponent } from './layergroup.component'; @Component({ selector: 'aol-layer-vectortile', - template: `` + template: ``, }) export class LayerVectorTileComponent extends LayerComponent implements OnInit, OnChanges { - - @Input() renderBuffer: number; - @Input() renderMode: layer.VectorTileRenderType|string; + @Input() + renderBuffer: number; + @Input() + renderMode: layer.VectorTileRenderType | string; /* not marked as optional in the typings */ - @Input() renderOrder: (feature1: ol.Feature, feature2: ol.Feature) => number; - @Input() style: (style.Style | style.Style[] | StyleFunction); - @Input() updateWhileAnimating: boolean; - @Input() updateWhileInteracting: boolean; - @Input() visible: boolean; + @Input() + renderOrder: (feature1: ol.Feature, feature2: ol.Feature) => number; + @Input() + style: style.Style | style.Style[] | StyleFunction; + @Input() + updateWhileAnimating: boolean; + @Input() + updateWhileInteracting: boolean; + @Input() + visible: boolean; - constructor(map: MapComponent, - @Optional() group?: LayerGroupComponent) { + constructor(map: MapComponent, @Optional() group?: LayerGroupComponent) { super(group || map); } diff --git a/src/components/map.component.ts b/projects/ngx-openlayers/src/lib/map.component.ts similarity index 59% rename from src/components/map.component.ts rename to projects/ngx-openlayers/src/lib/map.component.ts index d7401a03..a379ecc3 100644 --- a/src/components/map.component.ts +++ b/projects/ngx-openlayers/src/lib/map.component.ts @@ -1,47 +1,76 @@ import { - Component, OnInit, ElementRef, Input, Output, EventEmitter, AfterViewInit, - SimpleChanges, OnChanges + Component, + OnInit, + ElementRef, + Input, + Output, + EventEmitter, + AfterViewInit, + SimpleChanges, + OnChanges, + Inject, + PLATFORM_ID, } from '@angular/core'; -import { - Map, MapBrowserEvent, MapEvent, render, ObjectEvent, control, - interaction -} from 'openlayers'; +import { Map, MapBrowserEvent, MapEvent, render, ObjectEvent, control, interaction } from 'openlayers'; +import { isPlatformBrowser } from '@angular/common'; @Component({ selector: 'aol-map', - template: `
` + template: `
`, }) - export class MapComponent implements OnInit, AfterViewInit, OnChanges { public instance: Map; - public componentType: string = 'map'; + public componentType = 'map'; - @Input() width: string = '100%'; - @Input() height: string = '100%'; - @Input() pixelRatio: number; - @Input() keyboardEventTarget: Element|string; - @Input() loadTilesWhileAnimating: boolean; - @Input() loadTilesWhileInteracting: boolean; - @Input() logo: string|boolean; - @Input() renderer: 'canvas'|'webgl'; + @Input() + width = '100%'; + @Input() + height = '100%'; + @Input() + pixelRatio: number; + @Input() + keyboardEventTarget: Element | string; + @Input() + loadTilesWhileAnimating: boolean; + @Input() + loadTilesWhileInteracting: boolean; + @Input() + logo: string | boolean; + @Input() + renderer: 'canvas' | 'webgl'; - - @Output() onClick: EventEmitter; - @Output() onDblClick: EventEmitter; - @Output() onMoveEnd: EventEmitter; - @Output() onPointerDrag: EventEmitter; - @Output() onPointerMove: EventEmitter; - @Output() onPostCompose: EventEmitter; - @Output() onPostRender: EventEmitter; - @Output() onPreCompose: EventEmitter; - @Output() onPropertyChange: EventEmitter; - @Output() onSingleClick: EventEmitter; + @Output() + onClick: EventEmitter; + @Output() + onDblClick: EventEmitter; + @Output() + onMoveEnd: EventEmitter; + @Output() + onPointerDrag: EventEmitter; + @Output() + onPointerMove: EventEmitter; + @Output() + onPostCompose: EventEmitter; + @Output() + onPostRender: EventEmitter; + @Output() + onPreCompose: EventEmitter; + @Output() + onPropertyChange: EventEmitter; + @Output() + onSingleClick: EventEmitter; // we pass empty arrays to not get default controls/interactions because we have our own directives controls: control.Control[] = []; interactions: interaction.Interaction[] = []; + isBrowser: boolean; + + constructor(@Inject(PLATFORM_ID) private platformId, private host: ElementRef) { + this.isBrowser = isPlatformBrowser(this.platformId); + if (!this.isBrowser) { + return; + } - constructor(private host: ElementRef) { this.onClick = new EventEmitter(); this.onDblClick = new EventEmitter(); this.onMoveEnd = new EventEmitter(); @@ -55,6 +84,10 @@ export class MapComponent implements OnInit, AfterViewInit, OnChanges { } ngOnInit() { + if (!this.isBrowser) { + return; + } + // console.log('creating ol.Map instance with:', this); this.instance = new Map(this); this.instance.setTarget(this.host.nativeElement.firstElementChild); @@ -71,11 +104,15 @@ export class MapComponent implements OnInit, AfterViewInit, OnChanges { } ngOnChanges(changes: SimpleChanges) { - let properties: { [index: string]: any } = {}; + if (!this.isBrowser) { + return; + } + + const properties: { [index: string]: any } = {}; if (!this.instance) { return; } - for (let key in changes) { + for (const key in changes) { if (changes.hasOwnProperty(key)) { properties[key] = changes[key].currentValue; } @@ -85,6 +122,10 @@ export class MapComponent implements OnInit, AfterViewInit, OnChanges { } ngAfterViewInit() { + if (!this.isBrowser) { + return; + } + this.instance.updateSize(); } } diff --git a/src/components/overlay.component.ts b/projects/ngx-openlayers/src/lib/overlay.component.ts similarity index 61% rename from src/components/overlay.component.ts rename to projects/ngx-openlayers/src/lib/overlay.component.ts index dddf95d2..53cbe782 100644 --- a/src/components/overlay.component.ts +++ b/projects/ngx-openlayers/src/lib/overlay.component.ts @@ -5,27 +5,33 @@ import { ContentComponent } from './content.component'; @Component({ selector: 'aol-overlay', - template: '' + template: '', }) export class OverlayComponent implements OnInit, OnDestroy { componentType = 'overlay'; instance: Overlay; element: Element; - @ContentChild(ContentComponent) content: ContentComponent; + @ContentChild(ContentComponent) + content: ContentComponent; - @Input() id: number|string; - @Input() offset: number[]; - @Input() positioning: OverlayPositioning|string; - @Input() stopEvent: boolean; - @Input() insertFirst: boolean; - @Input() autoPan: boolean; - @Input() autoPanAnimation: olx.animation.PanOptions; - @Input() autoPanMargin: number; + @Input() + id: number | string; + @Input() + offset: number[]; + @Input() + positioning: OverlayPositioning | string; + @Input() + stopEvent: boolean; + @Input() + insertFirst: boolean; + @Input() + autoPan: boolean; + @Input() + autoPanAnimation: olx.animation.PanOptions; + @Input() + autoPanMargin: number; - constructor( - private map: MapComponent - ) { - } + constructor(private map: MapComponent) {} ngOnInit() { if (this.content) { diff --git a/src/components/sources/bingmaps.component.ts b/projects/ngx-openlayers/src/lib/sources/bingmaps.component.ts similarity index 51% rename from src/components/sources/bingmaps.component.ts rename to projects/ngx-openlayers/src/lib/sources/bingmaps.component.ts index c0a9d030..35f4b2cf 100644 --- a/src/components/sources/bingmaps.component.ts +++ b/projects/ngx-openlayers/src/lib/sources/bingmaps.component.ts @@ -1,27 +1,34 @@ import { Component, Host, Input, OnInit, forwardRef } from '@angular/core'; import { source, TileLoadFunctionType } from 'openlayers'; -import { LayerTileComponent } from '../layers'; import { SourceComponent } from './source.component'; +import { LayerTileComponent } from '../layers/layertile.component'; @Component({ selector: 'aol-source-bingmaps', template: `
`, - providers: [ - { provide: SourceComponent, useExisting: forwardRef(() => SourceBingmapsComponent) } - ] + providers: [{ provide: SourceComponent, useExisting: forwardRef(() => SourceBingmapsComponent) }], }) export class SourceBingmapsComponent extends SourceComponent implements OnInit { instance: source.BingMaps; - @Input() cacheSize: number; - @Input() hidpi: boolean; - @Input() culture: string; - @Input() key: string; - @Input() imagerySet: 'Road'|'Aerial'|'AerialWithLabels'|'collinsBart'|'ordnanceSurvey' = 'Aerial'; - @Input() maxZoom: number; - @Input() reprojectionErrorThreshold: number; - @Input() tileLoadFunction: TileLoadFunctionType; - @Input() wrapX: boolean; + @Input() + cacheSize: number; + @Input() + hidpi: boolean; + @Input() + culture: string; + @Input() + key: string; + @Input() + imagerySet: 'Road' | 'Aerial' | 'AerialWithLabels' | 'collinsBart' | 'ordnanceSurvey' = 'Aerial'; + @Input() + maxZoom: number; + @Input() + reprojectionErrorThreshold: number; + @Input() + tileLoadFunction: TileLoadFunctionType; + @Input() + wrapX: boolean; constructor(@Host() layer: LayerTileComponent) { super(layer); diff --git a/projects/ngx-openlayers/src/lib/sources/cluster.component.ts b/projects/ngx-openlayers/src/lib/sources/cluster.component.ts new file mode 100644 index 00000000..1f6bf074 --- /dev/null +++ b/projects/ngx-openlayers/src/lib/sources/cluster.component.ts @@ -0,0 +1,34 @@ +import { Component, Host, Input, forwardRef, ContentChild, AfterContentInit } from '@angular/core'; +import { source, Feature, geom } from 'openlayers'; +import { LayerVectorComponent } from '../layers/layervector.component'; +import { SourceComponent } from './source.component'; +import { SourceVectorComponent } from './vector.component'; + +@Component({ + selector: 'aol-source-cluster', + template: ``, + providers: [{ provide: SourceComponent, useExisting: forwardRef(() => SourceClusterComponent) }], +}) +export class SourceClusterComponent extends SourceComponent implements AfterContentInit { + instance: source.Cluster; + + @Input() + distance: number; + @Input() + geometryFunction?: ((feature: Feature) => geom.Point); + + @ContentChild(SourceVectorComponent) + sourceVectorComponent: SourceVectorComponent; + source: source.Vector; + + constructor(@Host() layer: LayerVectorComponent) { + super(layer); + } + + ngAfterContentInit() { + this.source = this.sourceVectorComponent.instance; + + this.instance = new source.Cluster(this); + this.host.instance.setSource(this.instance); + } +} diff --git a/projects/ngx-openlayers/src/lib/sources/geojson.component.ts b/projects/ngx-openlayers/src/lib/sources/geojson.component.ts new file mode 100644 index 00000000..a20b56ff --- /dev/null +++ b/projects/ngx-openlayers/src/lib/sources/geojson.component.ts @@ -0,0 +1,32 @@ +import { Component, Host, Input, OnInit, forwardRef } from '@angular/core'; +import { source, ProjectionLike, format } from 'openlayers'; +import { LayerVectorComponent } from '../layers/layervector.component'; +import { SourceComponent } from './source.component'; + +@Component({ + selector: 'aol-source-geojson', + template: ``, + providers: [{ provide: SourceComponent, useExisting: forwardRef(() => SourceGeoJSONComponent) }], +}) +export class SourceGeoJSONComponent extends SourceComponent implements OnInit { + instance: source.Vector; + format: format.Feature; + @Input() + defaultDataProjection: ProjectionLike; + @Input() + featureProjection: ProjectionLike; + @Input() + geometryName: string; + @Input() + url: string; + + constructor(@Host() layer: LayerVectorComponent) { + super(layer); + } + + ngOnInit() { + this.format = new format.GeoJSON(this); + this.instance = new source.Vector(this); + this.host.instance.setSource(this.instance); + } +} diff --git a/src/components/sources/imagestatic.component.ts b/projects/ngx-openlayers/src/lib/sources/imagestatic.component.ts similarity index 71% rename from src/components/sources/imagestatic.component.ts rename to projects/ngx-openlayers/src/lib/sources/imagestatic.component.ts index 546e081e..51313ff2 100644 --- a/src/components/sources/imagestatic.component.ts +++ b/projects/ngx-openlayers/src/lib/sources/imagestatic.component.ts @@ -11,14 +11,22 @@ import { LayerImageComponent } from '../layers/layerimage.component'; export class SourceImageStaticComponent extends SourceComponent implements OnInit { instance: source.ImageStatic; - @Input() projection: (ProjectionLike | string); - @Input() imageExtent: Extent; - @Input() url: string; - @Input() attributions: AttributionLike; - @Input() crossOrigin?: string; - @Input() imageLoadFunction?: ImageLoadFunctionType; - @Input() logo?: (string | olx.LogoOptions); - @Input() imageSize?: Size; + @Input() + projection: ProjectionLike | string; + @Input() + imageExtent: Extent; + @Input() + url: string; + @Input() + attributions: AttributionLike; + @Input() + crossOrigin?: string; + @Input() + imageLoadFunction?: ImageLoadFunctionType; + @Input() + logo?: string | olx.LogoOptions; + @Input() + imageSize?: Size; constructor(@Host() layer: LayerImageComponent) { super(layer); diff --git a/projects/ngx-openlayers/src/lib/sources/imagewms.component.ts b/projects/ngx-openlayers/src/lib/sources/imagewms.component.ts new file mode 100644 index 00000000..6b8e2aa8 --- /dev/null +++ b/projects/ngx-openlayers/src/lib/sources/imagewms.component.ts @@ -0,0 +1,51 @@ +import { Component, Host, Input, OnChanges, OnInit, forwardRef, SimpleChanges } from '@angular/core'; +import { AttributionLike, ImageLoadFunctionType, ProjectionLike, source } from 'openlayers'; +import { LayerImageComponent } from '../layers/layerimage.component'; +import { SourceComponent } from './source.component'; + +@Component({ + selector: 'aol-source-imagewms', + template: ``, + providers: [{ provide: SourceComponent, useExisting: forwardRef(() => SourceImageWMSComponent) }], +}) +export class SourceImageWMSComponent extends SourceComponent implements OnChanges, OnInit { + instance: source.ImageWMS; + + @Input() + attributions: AttributionLike; + @Input() + crossOrigin: string; + @Input() + hidpi: boolean; + @Input() + serverType: string; + @Input() + imageLoadFunction?: ImageLoadFunctionType; + @Input() + logo: string | olx.LogoOptions; + @Input() + params: Object; + @Input() + projection: ProjectionLike | string; + @Input() + ratio: number; + @Input() + resolutions: Array; + @Input() + url: string; + + constructor(@Host() layer: LayerImageComponent) { + super(layer); + } + + ngOnInit() { + this.instance = new source.ImageWMS(this); + this.host.instance.setSource(this.instance); + } + + ngOnChanges(changes: SimpleChanges) { + if (this.instance && changes.hasOwnProperty('params')) { + this.instance.updateParams(this.params); + } + } +} diff --git a/projects/ngx-openlayers/src/lib/sources/osm.component.ts b/projects/ngx-openlayers/src/lib/sources/osm.component.ts new file mode 100644 index 00000000..31b2e168 --- /dev/null +++ b/projects/ngx-openlayers/src/lib/sources/osm.component.ts @@ -0,0 +1,53 @@ +import { Component, Host, forwardRef, Input, AfterContentInit, Optional } from '@angular/core'; +import { source, AttributionLike, TileLoadFunctionType } from 'openlayers'; +import { LayerTileComponent } from '../layers/layertile.component'; +import { SourceComponent } from './source.component'; +import { SourceXYZComponent } from './xyz.component'; +import { SourceRasterComponent } from './raster.component'; + +@Component({ + selector: 'aol-source-osm', + template: `
`, + providers: [{ provide: SourceComponent, useExisting: forwardRef(() => SourceOsmComponent) }], +}) +export class SourceOsmComponent extends SourceXYZComponent implements AfterContentInit { + instance: source.OSM; + + @Input() + attributions: AttributionLike; + @Input() + cacheSize: number; + @Input() + crossOrigin: string; + @Input() + maxZoom: number; + @Input() + opaque: boolean; + @Input() + reprojectionErrorThreshold: number; + @Input() + tileLoadFunction: TileLoadFunctionType; + @Input() + url: string; + @Input() + wrapX: boolean; + + constructor( + @Host() + @Optional() + layer: LayerTileComponent, + @Host() + @Optional() + raster?: SourceRasterComponent + ) { + super(layer, raster); + } + + ngAfterContentInit() { + if (this.tileGridXYZ) { + this.tileGrid = this.tileGridXYZ.instance; + } + this.instance = new source.OSM(this); + this._register(this.instance); + } +} diff --git a/src/components/sources/raster.component.ts b/projects/ngx-openlayers/src/lib/sources/raster.component.ts similarity index 69% rename from src/components/sources/raster.component.ts rename to projects/ngx-openlayers/src/lib/sources/raster.component.ts index 66c0b374..47a07fd2 100644 --- a/src/components/sources/raster.component.ts +++ b/projects/ngx-openlayers/src/lib/sources/raster.component.ts @@ -10,20 +10,26 @@ import { SourceComponent } from './source.component'; providers: [ { provide: SourceComponent, - useExisting: forwardRef(() => SourceRasterComponent) - } - ] + useExisting: forwardRef(() => SourceRasterComponent), + }, + ], }) export class SourceRasterComponent extends SourceComponent implements AfterContentInit { instance: source.Raster; - @Input() operation?: RasterOperation; - @Input() threads?: number; - @Input() lib?: Object; - @Input() operationType?: RasterOperationType; - - @Output() beforeOperations: EventEmitter = new EventEmitter(); - @Output() afterOperations: EventEmitter = new EventEmitter(); + @Input() + operation?: RasterOperation; + @Input() + threads?: number; + @Input() + lib?: Object; + @Input() + operationType?: RasterOperationType; + + @Output() + beforeOperations: EventEmitter = new EventEmitter(); + @Output() + afterOperations: EventEmitter = new EventEmitter(); sources: source.Source[] = []; diff --git a/src/components/sources/source.component.ts b/projects/ngx-openlayers/src/lib/sources/source.component.ts similarity index 55% rename from src/components/sources/source.component.ts rename to projects/ngx-openlayers/src/lib/sources/source.component.ts index 381c7eed..c036a653 100644 --- a/src/components/sources/source.component.ts +++ b/projects/ngx-openlayers/src/lib/sources/source.component.ts @@ -1,20 +1,20 @@ -import {AfterContentInit, Host, Input, OnDestroy, OnInit, Optional} from '@angular/core'; +import { Input, OnDestroy } from '@angular/core'; import { source } from 'openlayers'; -import { LayerComponent } from '../layers'; +import { LayerComponent } from '../layers/layer.component'; import AttributionLike = ol.AttributionLike; import { SourceRasterComponent } from './raster.component'; export class SourceComponent implements OnDestroy { public instance: source.Source; - public componentType: string = 'source'; + public componentType = 'source'; - @Input() attributions: AttributionLike; + @Input() + attributions: AttributionLike; - constructor(protected host: LayerComponent, protected raster?: SourceRasterComponent) { - } + constructor(protected host: LayerComponent, protected raster?: SourceRasterComponent) {} ngOnDestroy() { - if (this.host) { + if (this.host && this.host.instance) { this.host.instance.setSource(null); } @@ -23,13 +23,13 @@ export class SourceComponent implements OnDestroy { } } - protected _register(source: source.Source) { + protected _register(s: source.Source) { if (this.host) { - this.host.instance.setSource(source); + this.host.instance.setSource(s); } if (this.raster) { - this.raster.sources = [source]; + this.raster.sources = [s]; } } } diff --git a/src/components/sources/tilejson.component.ts b/projects/ngx-openlayers/src/lib/sources/tilejson.component.ts similarity index 66% rename from src/components/sources/tilejson.component.ts rename to projects/ngx-openlayers/src/lib/sources/tilejson.component.ts index 177890a8..d1fa7476 100644 --- a/src/components/sources/tilejson.component.ts +++ b/projects/ngx-openlayers/src/lib/sources/tilejson.component.ts @@ -1,19 +1,18 @@ import { Component, Host, Input, OnInit, forwardRef } from '@angular/core'; -import { AttributionLike, source, TileLoadFunctionType, tilegrid } from 'openlayers'; -import { LayerTileComponent } from '../layers'; +import { source } from 'openlayers'; +import { LayerTileComponent } from '../layers/layertile.component'; import { SourceComponent } from './source.component'; @Component({ selector: 'aol-source-tilejson', template: ``, - providers: [ - { provide: SourceComponent, useExisting: forwardRef(() => SourceTileJSONComponent) } - ] + providers: [{ provide: SourceComponent, useExisting: forwardRef(() => SourceTileJSONComponent) }], }) export class SourceTileJSONComponent extends SourceComponent implements OnInit { instance: source.TileJSON; - @Input() url: string; + @Input() + url: string; constructor(@Host() layer: LayerTileComponent) { super(layer); diff --git a/projects/ngx-openlayers/src/lib/sources/tilewms.component.ts b/projects/ngx-openlayers/src/lib/sources/tilewms.component.ts new file mode 100644 index 00000000..11ee5680 --- /dev/null +++ b/projects/ngx-openlayers/src/lib/sources/tilewms.component.ts @@ -0,0 +1,54 @@ +import { Component, Host, Input, OnChanges, OnInit, forwardRef, SimpleChanges } from '@angular/core'; +import { source, TileLoadFunctionType, tilegrid } from 'openlayers'; +import { LayerTileComponent } from '../layers/layertile.component'; +import { SourceComponent } from './source.component'; + +@Component({ + selector: 'aol-source-tilewms', + template: ``, + providers: [{ provide: SourceComponent, useExisting: forwardRef(() => SourceTileWMSComponent) }], +}) +export class SourceTileWMSComponent extends SourceComponent implements OnChanges, OnInit { + instance: source.TileWMS; + @Input() + cacheSize: number; + @Input() + crossOrigin: string; + @Input() + gutter: number; + @Input() + hidpi: boolean; + @Input() + params: Object; + @Input() + projection: string; + @Input() + reprojectionErrorThreshold: number; + @Input() + serverType: string; + @Input() + tileGrid: tilegrid.TileGrid; + @Input() + tileLoadFunction: TileLoadFunctionType; + @Input() + url: string; + @Input() + urls: string[]; + @Input() + wrapX: boolean; + + constructor(@Host() layer: LayerTileComponent) { + super(layer); + } + + ngOnInit() { + this.instance = new source.TileWMS(this); + this.host.instance.setSource(this.instance); + } + + ngOnChanges(changes: SimpleChanges) { + if (this.instance && changes.hasOwnProperty('params')) { + this.instance.updateParams(this.params); + } + } +} diff --git a/projects/ngx-openlayers/src/lib/sources/tilewmts.component.ts b/projects/ngx-openlayers/src/lib/sources/tilewmts.component.ts new file mode 100644 index 00000000..ed66f5c3 --- /dev/null +++ b/projects/ngx-openlayers/src/lib/sources/tilewmts.component.ts @@ -0,0 +1,108 @@ +import { + Component, + Host, + Input, + forwardRef, + AfterContentInit, + ContentChild, + SimpleChanges, + OnChanges, +} from '@angular/core'; +import { TileLoadFunctionType, tilegrid, ProjectionLike, source, ImageTile, TileCoord, Tile } from 'openlayers'; +import { LayerTileComponent } from '../layers/layertile.component'; +import { SourceComponent } from './source.component'; +import { TileGridWMTSComponent } from '../tilegridwmts.component'; + +@Component({ + selector: 'aol-source-tilewmts', + template: ``, + providers: [{ provide: SourceComponent, useExisting: forwardRef(() => SourceTileWMTSComponent) }], +}) +export class SourceTileWMTSComponent extends SourceComponent implements AfterContentInit, OnChanges { + instance: source.WMTS; + @Input() + cacheSize?: number; + @Input() + crossOrigin?: string; + @Input() + logo?: string | olx.LogoOptions; + @Input() + tileGrid: tilegrid.WMTS; + @Input() + projection: ProjectionLike; + @Input() + reprojectionErrorThreshold?: number; + @Input() + requestEncoding?: source.WMTSRequestEncoding | string; + @Input() + layer: string; + @Input() + style: string; + @Input() + tileClass?: (( + n: ImageTile, + coords: TileCoord, + state: Tile.State, + s1: string, + s2: string, + type: TileLoadFunctionType + ) => any); + @Input() + tilePixelRatio?: number; + @Input() + version?: string; + @Input() + format?: string; + @Input() + matrixSet: string; + @Input() + dimensions?: GlobalObject; + @Input() + url?: string; + @Input() + tileLoadFunction?: TileLoadFunctionType; + @Input() + urls?: string[]; + @Input() + wrapX?: boolean; + + @ContentChild(TileGridWMTSComponent) + tileGridWMTS: TileGridWMTSComponent; + + constructor(@Host() layer: LayerTileComponent) { + super(layer); + } + + ngOnChanges(changes: SimpleChanges) { + const properties: { [index: string]: any } = {}; + if (!this.instance) { + return; + } + for (const key in changes) { + if (changes.hasOwnProperty(key)) { + switch (key) { + case 'url': + this.url = changes[key].currentValue; + this.setLayerSource(); + break; + default: + break; + } + properties[key] = changes[key].currentValue; + } + } + this.instance.setProperties(properties, false); + } + + setLayerSource(): void { + this.instance = new source.WMTS(this); + this.host.instance.setSource(this.instance); + } + + ngAfterContentInit(): void { + if (this.tileGridWMTS) { + this.tileGrid = this.tileGridWMTS.instance; + this.setLayerSource(); + } + } +} diff --git a/src/components/sources/vector.component.ts b/projects/ngx-openlayers/src/lib/sources/vector.component.ts similarity index 59% rename from src/components/sources/vector.component.ts rename to projects/ngx-openlayers/src/lib/sources/vector.component.ts index 8a37ee20..0a992abf 100644 --- a/src/components/sources/vector.component.ts +++ b/projects/ngx-openlayers/src/lib/sources/vector.component.ts @@ -1,23 +1,27 @@ import { Component, Host, Input, OnInit, forwardRef } from '@angular/core'; import { source } from 'openlayers'; -import { LayerVectorComponent } from '../layers'; +import { LayerVectorComponent } from '../layers/layervector.component'; import { SourceComponent } from './source.component'; @Component({ selector: 'aol-source-vector', template: ``, - providers: [ - { provide: SourceComponent, useExisting: forwardRef(() => SourceVectorComponent) } - ] + providers: [{ provide: SourceComponent, useExisting: forwardRef(() => SourceVectorComponent) }], }) export class SourceVectorComponent extends SourceComponent implements OnInit { instance: source.Vector; - @Input() overlaps: boolean; - @Input() useSpatialIndex: boolean; - @Input() wrapX: boolean; - @Input() url: string; - @Input() format: ol.format.Feature; - @Input() strategy: ol.LoadingStrategy; + @Input() + overlaps: boolean; + @Input() + useSpatialIndex: boolean; + @Input() + wrapX: boolean; + @Input() + url: string; + @Input() + format: ol.format.Feature; + @Input() + strategy: ol.LoadingStrategy; constructor(@Host() layer: LayerVectorComponent) { super(layer); diff --git a/src/components/sources/vectortile.component.ts b/projects/ngx-openlayers/src/lib/sources/vectortile.component.ts similarity index 60% rename from src/components/sources/vectortile.component.ts rename to projects/ngx-openlayers/src/lib/sources/vectortile.component.ts index 15867484..fe853f31 100644 --- a/src/components/sources/vectortile.component.ts +++ b/projects/ngx-openlayers/src/lib/sources/vectortile.component.ts @@ -1,31 +1,39 @@ import { Component, Host, Input, forwardRef, ContentChild, AfterContentInit } from '@angular/core'; import { source, ProjectionLike, TileUrlFunctionType, format, tilegrid } from 'openlayers'; -import { LayerVectorTileComponent } from '../layers'; -import { FormatComponent } from '../formats'; +import { LayerVectorTileComponent } from '../layers/layervectortile.component'; +import { FormatComponent } from '../formats/format.component'; import { TileGridComponent } from '../tilegrid.component'; import { SourceComponent } from './source.component'; @Component({ selector: 'aol-source-vectortile', template: ``, - providers: [ - { provide: SourceComponent, useExisting: forwardRef(() => SourceVectorTileComponent) } - ] + providers: [{ provide: SourceComponent, useExisting: forwardRef(() => SourceVectorTileComponent) }], }) export class SourceVectorTileComponent extends SourceComponent implements AfterContentInit { public instance: source.VectorTile; - @Input() cacheSize: number; - @Input() overlaps: boolean; - @Input() projection: ProjectionLike; - @Input() tilePixelRatio: number; - @Input() tileUrlFunction: TileUrlFunctionType; - @Input() url: string; - @Input() urls: string[]; - @Input() wrapX: boolean; + @Input() + cacheSize: number; + @Input() + overlaps: boolean; + @Input() + projection: ProjectionLike; + @Input() + tilePixelRatio: number; + @Input() + tileUrlFunction: TileUrlFunctionType; + @Input() + url: string; + @Input() + urls: string[]; + @Input() + wrapX: boolean; - @ContentChild(FormatComponent) formatComponent: FormatComponent; + @ContentChild(FormatComponent) + formatComponent: FormatComponent; format: format.Feature; - @ContentChild(TileGridComponent) tileGridComponent: TileGridComponent; + @ContentChild(TileGridComponent) + tileGridComponent: TileGridComponent; tileGrid: tilegrid.TileGrid; constructor(@Host() layer: LayerVectorTileComponent) { diff --git a/src/components/sources/xyz.component.ts b/projects/ngx-openlayers/src/lib/sources/xyz.component.ts similarity index 55% rename from src/components/sources/xyz.component.ts rename to projects/ngx-openlayers/src/lib/sources/xyz.component.ts index f1b1b4a8..53a3903b 100644 --- a/src/components/sources/xyz.component.ts +++ b/projects/ngx-openlayers/src/lib/sources/xyz.component.ts @@ -8,10 +8,9 @@ import { ContentChild, SimpleChanges, Optional, - OnInit } from '@angular/core'; import { source, Size, TileUrlFunctionType, TileLoadFunctionType, tilegrid } from 'openlayers'; -import { LayerTileComponent } from '../layers'; +import { LayerTileComponent } from '../layers/layertile.component'; import { SourceComponent } from './source.component'; import { TileGridComponent } from '../tilegrid.component'; import { SourceRasterComponent } from './raster.component'; @@ -19,32 +18,52 @@ import { SourceRasterComponent } from './raster.component'; @Component({ selector: 'aol-source-xyz', template: ``, - providers: [ - { provide: SourceComponent, useExisting: forwardRef(() => SourceXYZComponent) } - ] + providers: [{ provide: SourceComponent, useExisting: forwardRef(() => SourceXYZComponent) }], }) export class SourceXYZComponent extends SourceComponent implements AfterContentInit, OnChanges { instance: source.XYZ; - @Input() cacheSize: number; - @Input() crossOrigin: string; - @Input() opaque: boolean; - @Input() projection: string; - @Input() reprojectionErrorThreshold: number; - @Input() minZoom: number; - @Input() maxZoom: number; - @Input() tileGrid: tilegrid.TileGrid; - @Input() tileLoadFunction?: TileLoadFunctionType; - @Input() tilePixelRatio: number; - @Input() tileSize: number|Size; - @Input() tileUrlFunction: TileUrlFunctionType; - @Input() url: string; - @Input() urls: string[]; - @Input() wrapX: boolean; + @Input() + cacheSize: number; + @Input() + crossOrigin: string; + @Input() + opaque: boolean; + @Input() + projection: string; + @Input() + reprojectionErrorThreshold: number; + @Input() + minZoom: number; + @Input() + maxZoom: number; + @Input() + tileGrid: tilegrid.TileGrid; + @Input() + tileLoadFunction?: TileLoadFunctionType; + @Input() + tilePixelRatio: number; + @Input() + tileSize: number | Size; + @Input() + tileUrlFunction: TileUrlFunctionType; + @Input() + url: string; + @Input() + urls: string[]; + @Input() + wrapX: boolean; - @ContentChild(TileGridComponent) tileGridXYZ: TileGridComponent; + @ContentChild(TileGridComponent) + tileGridXYZ: TileGridComponent; - constructor(@Optional() @Host() layer: LayerTileComponent, - @Optional() @Host() raster?: SourceRasterComponent) { + constructor( + @Optional() + @Host() + layer: LayerTileComponent, + @Optional() + @Host() + raster?: SourceRasterComponent + ) { super(layer, raster); } @@ -57,12 +76,12 @@ export class SourceXYZComponent extends SourceComponent implements AfterContentI } ngOnChanges(changes: SimpleChanges) { - let properties: {[index: string]: any} = {}; + const properties: { [index: string]: any } = {}; if (!this.instance) { return; } - for (let key in changes) { + for (const key in changes) { if (changes.hasOwnProperty(key)) { properties[key] = changes[key].currentValue; } diff --git a/src/components/styles/circle.component.ts b/projects/ngx-openlayers/src/lib/styles/circle.component.ts similarity index 81% rename from src/components/styles/circle.component.ts rename to projects/ngx-openlayers/src/lib/styles/circle.component.ts index 27caa4e2..9561c40d 100644 --- a/src/components/styles/circle.component.ts +++ b/projects/ngx-openlayers/src/lib/styles/circle.component.ts @@ -4,20 +4,24 @@ import { StyleComponent } from './style.component'; @Component({ selector: 'aol-style-circle', - template: `` + template: ``, }) export class StyleCircleComponent implements AfterContentInit, OnChanges, OnDestroy { - public componentType: string = 'style-circle'; + public componentType = 'style-circle'; public instance: style.Circle; - @Input() fill: style.Fill; - @Input() radius: number; - @Input() snapToPixel: boolean; - @Input() stroke: style.Stroke; - @Input() atlasManager: style.AtlasManager; + @Input() + fill: style.Fill; + @Input() + radius: number; + @Input() + snapToPixel: boolean; + @Input() + stroke: style.Stroke; + @Input() + atlasManager: style.AtlasManager; - constructor(@Host() private host: StyleComponent) { - } + constructor(@Host() private host: StyleComponent) {} /** * WORK-AROUND: since the re-rendering is not triggered on style change diff --git a/src/components/styles/fill.component.ts b/projects/ngx-openlayers/src/lib/styles/fill.component.ts similarity index 97% rename from src/components/styles/fill.component.ts rename to projects/ngx-openlayers/src/lib/styles/fill.component.ts index 47c7ea5b..aacecd7e 100644 --- a/src/components/styles/fill.component.ts +++ b/projects/ngx-openlayers/src/lib/styles/fill.component.ts @@ -10,10 +10,11 @@ import { StyleTextComponent } from './text.component'; }) export class StyleFillComponent implements OnInit, OnChanges { /* the typings do not have the setters */ - private host: /*StyleComponent|StyleCircleComponent|StyleTextComponent*/any; + private host: /*StyleComponent|StyleCircleComponent|StyleTextComponent*/ any; public instance: style.Fill; - @Input() color: Color|ColorLike; + @Input() + color: Color | ColorLike; constructor( @Optional() styleHost: StyleComponent, diff --git a/src/components/styles/icon.component.ts b/projects/ngx-openlayers/src/lib/styles/icon.component.ts similarity index 61% rename from src/components/styles/icon.component.ts rename to projects/ngx-openlayers/src/lib/styles/icon.component.ts index fea2c2a8..930ac382 100644 --- a/src/components/styles/icon.component.ts +++ b/projects/ngx-openlayers/src/lib/styles/icon.component.ts @@ -9,27 +9,42 @@ import { StyleComponent } from './style.component'; export class StyleIconComponent implements OnInit, OnChanges { public instance: style.Icon; - @Input() anchor: [number, number]; - @Input() anchorXUnits: style.IconAnchorUnits; - @Input() anchorYUnits: style.IconAnchorUnits; - @Input() anchorOrigin: style.IconOrigin; - @Input() color: [number, number, number, number]; - @Input() crossOrigin: style.IconOrigin; - @Input() img: string; - @Input() offset: [number, number]; - @Input() offsetOrigin: style.IconOrigin; - @Input() opacity: number; - @Input() scale: number; - @Input() snapToPixel: boolean; - @Input() rotateWithView: boolean; - @Input() rotation: number; - @Input() size: [number, number]; - @Input() imgSize: [number, number]; - @Input() src: string; + @Input() + anchor: [number, number]; + @Input() + anchorXUnits: style.IconAnchorUnits; + @Input() + anchorYUnits: style.IconAnchorUnits; + @Input() + anchorOrigin: style.IconOrigin; + @Input() + color: [number, number, number, number]; + @Input() + crossOrigin: style.IconOrigin; + @Input() + img: string; + @Input() + offset: [number, number]; + @Input() + offsetOrigin: style.IconOrigin; + @Input() + opacity: number; + @Input() + scale: number; + @Input() + snapToPixel: boolean; + @Input() + rotateWithView: boolean; + @Input() + rotation: number; + @Input() + size: [number, number]; + @Input() + imgSize: [number, number]; + @Input() + src: string; - - constructor(@Host() private host: StyleComponent) { - } + constructor(@Host() private host: StyleComponent) {} ngOnInit() { // console.log('creating ol.style.Icon instance with: ', this); diff --git a/src/components/styles/stroke.component.ts b/projects/ngx-openlayers/src/lib/styles/stroke.component.ts similarity index 90% rename from src/components/styles/stroke.component.ts rename to projects/ngx-openlayers/src/lib/styles/stroke.component.ts index b323dc84..81a3734d 100644 --- a/src/components/styles/stroke.component.ts +++ b/projects/ngx-openlayers/src/lib/styles/stroke.component.ts @@ -11,14 +11,20 @@ import { StyleTextComponent } from './text.component'; export class StyleStrokeComponent implements OnInit, OnChanges { public instance: style.Stroke; /* the typings do not have the setters */ - private host: /*StyleComponent|StyleCircleComponent|StyleTextComponent*/any; + private host: /*StyleComponent|StyleCircleComponent|StyleTextComponent*/ any; - @Input() color: Color|undefined; - @Input() lineCap: string|undefined; - @Input() lineDash: number[]|undefined; - @Input() lineJoin: string|undefined; - @Input() miterLimit: number|undefined; - @Input() width: number|undefined; + @Input() + color: Color | undefined; + @Input() + lineCap: string | undefined; + @Input() + lineDash: number[] | undefined; + @Input() + lineJoin: string | undefined; + @Input() + miterLimit: number | undefined; + @Input() + width: number | undefined; constructor( @Optional() styleHost: StyleComponent, diff --git a/src/components/styles/style.component.ts b/projects/ngx-openlayers/src/lib/styles/style.component.ts similarity index 60% rename from src/components/styles/style.component.ts rename to projects/ngx-openlayers/src/lib/styles/style.component.ts index 9dc6d760..86b119d0 100644 --- a/src/components/styles/style.component.ts +++ b/projects/ngx-openlayers/src/lib/styles/style.component.ts @@ -1,28 +1,31 @@ import { Component, Input, Optional, OnInit } from '@angular/core'; import { style, StyleGeometryFunction, geom } from 'openlayers'; import { FeatureComponent } from '../feature.component'; -import { LayerVectorComponent } from '../layers'; +import { LayerVectorComponent } from '../layers/layervector.component'; @Component({ selector: 'aol-style', - template: `` + template: ``, }) export class StyleComponent implements OnInit { - private host: FeatureComponent|LayerVectorComponent; + private host: FeatureComponent | LayerVectorComponent; public instance: style.Style; - public componentType: string = 'style'; + public componentType = 'style'; - @Input() geometry: string | geom.Geometry | StyleGeometryFunction; - @Input() fill: style.Fill; - @Input() image: style.Image; - @Input() stroke: style.Stroke; - @Input() text: style.Text; - @Input() zIndex: number; + @Input() + geometry: string | geom.Geometry | StyleGeometryFunction; + @Input() + fill: style.Fill; + @Input() + image: style.Image; + @Input() + stroke: style.Stroke; + @Input() + text: style.Text; + @Input() + zIndex: number; - constructor( - @Optional() featureHost: FeatureComponent, - @Optional() layerHost: LayerVectorComponent - ) { + constructor(@Optional() featureHost: FeatureComponent, @Optional() layerHost: LayerVectorComponent) { // console.log('creating aol-style'); this.host = !!featureHost ? featureHost : layerHost; if (!this.host) { diff --git a/src/components/styles/text.component.ts b/projects/ngx-openlayers/src/lib/styles/text.component.ts similarity index 80% rename from src/components/styles/text.component.ts rename to projects/ngx-openlayers/src/lib/styles/text.component.ts index a828c008..84bcd2a1 100644 --- a/src/components/styles/text.component.ts +++ b/projects/ngx-openlayers/src/lib/styles/text.component.ts @@ -8,17 +8,26 @@ import { StyleComponent } from './style.component'; }) export class StyleTextComponent implements OnInit, OnChanges { public instance: style.Text; - public componentType: string = 'style-text'; + public componentType = 'style-text'; - @Input() font: string|undefined; - @Input() offsetX: number|undefined; - @Input() offsetY: number|undefined; - @Input() scale: number|undefined; - @Input() rotateWithView: boolean|undefined; - @Input() rotation: number|undefined; - @Input() text: string|undefined; - @Input() textAlign: string|undefined; - @Input() textBaseLine: string|undefined; + @Input() + font: string | undefined; + @Input() + offsetX: number | undefined; + @Input() + offsetY: number | undefined; + @Input() + scale: number | undefined; + @Input() + rotateWithView: boolean | undefined; + @Input() + rotation: number | undefined; + @Input() + text: string | undefined; + @Input() + textAlign: string | undefined; + @Input() + textBaseLine: string | undefined; constructor(@Optional() private host: StyleComponent) { if (!host) { diff --git a/src/components/tilegrid.component.ts b/projects/ngx-openlayers/src/lib/tilegrid.component.ts similarity index 56% rename from src/components/tilegrid.component.ts rename to projects/ngx-openlayers/src/lib/tilegrid.component.ts index 0f77fd34..b87b6dd8 100644 --- a/src/components/tilegrid.component.ts +++ b/projects/ngx-openlayers/src/lib/tilegrid.component.ts @@ -1,23 +1,29 @@ import { Component, Input, OnChanges, OnInit, SimpleChanges } from '@angular/core'; -import { tilegrid, Extent, Size , Coordinate} from 'openlayers'; +import { tilegrid, Extent, Size, Coordinate } from 'openlayers'; @Component({ selector: 'aol-tilegrid', - template: '' + template: '', }) export class TileGridComponent implements OnInit, OnChanges { instance: tilegrid.TileGrid; - @Input() extent: Extent; - @Input() maxZoom: number; - @Input() minZoom: number; - @Input() tileSize: number|Size; - @Input() origin?: Coordinate; - @Input() resolutions: number[]; + @Input() + extent: Extent; + @Input() + maxZoom: number; + @Input() + minZoom: number; + @Input() + tileSize: number | Size; + @Input() + origin?: Coordinate; + @Input() + resolutions: number[]; ngOnInit() { if (!this.resolutions) { - this.instance = tilegrid.createXYZ(this) + this.instance = tilegrid.createXYZ(this); } else { this.instance = new tilegrid.TileGrid(this); } @@ -25,7 +31,7 @@ export class TileGridComponent implements OnInit, OnChanges { ngOnChanges(changes: SimpleChanges) { if (!this.resolutions) { - this.instance = tilegrid.createXYZ(this) + this.instance = tilegrid.createXYZ(this); } else { this.instance = new tilegrid.TileGrid(this); } diff --git a/projects/ngx-openlayers/src/lib/tilegridwmts.component.ts b/projects/ngx-openlayers/src/lib/tilegridwmts.component.ts new file mode 100644 index 00000000..150eebd5 --- /dev/null +++ b/projects/ngx-openlayers/src/lib/tilegridwmts.component.ts @@ -0,0 +1,30 @@ +import { Component, Input, OnInit } from '@angular/core'; +import { tilegrid, Size, Coordinate } from 'openlayers'; +import { TileGridComponent } from './tilegrid.component'; + +@Component({ + selector: 'aol-tilegrid-wmts', + template: '', +}) +export class TileGridWMTSComponent extends TileGridComponent implements OnInit { + instance: tilegrid.WMTS; + + @Input() + origin?: Coordinate; + @Input() + origins?: Coordinate[]; + @Input() + resolutions: number[]; + @Input() + matrixIds: string[]; + @Input() + sizes?: Size[]; + @Input() + tileSizes?: (number | Size)[]; + @Input() + widths?: number[]; + + ngOnInit() { + this.instance = new tilegrid.WMTS(this); + } +} diff --git a/src/components/view.component.ts b/projects/ngx-openlayers/src/lib/view.component.ts similarity index 61% rename from src/components/view.component.ts rename to projects/ngx-openlayers/src/lib/view.component.ts index e65b1d48..9fad63d9 100644 --- a/src/components/view.component.ts +++ b/projects/ngx-openlayers/src/lib/view.component.ts @@ -4,31 +4,45 @@ import { MapComponent } from './map.component'; @Component({ selector: 'aol-view', - template: `` + template: ``, }) export class ViewComponent implements OnInit, OnChanges, OnDestroy { public instance: View; - public componentType: string = 'view'; + public componentType = 'view'; - @Input() constrainRotation: boolean|number; - @Input() enableRotation: boolean; - @Input() extent: Extent; - @Input() maxResolution: number; - @Input() minResolution: number; - @Input() maxZoom: number; - @Input() minZoom: number; - @Input() resolution: number; - @Input() resolutions: number[]; - @Input() rotation: number; - @Input() zoom: number; - @Input() zoomFactor: number; - @Input() center: Coordinate; - @Input() projection: string; + @Input() + constrainRotation: boolean | number; + @Input() + enableRotation: boolean; + @Input() + extent: Extent; + @Input() + maxResolution: number; + @Input() + minResolution: number; + @Input() + maxZoom: number; + @Input() + minZoom: number; + @Input() + resolution: number; + @Input() + resolutions: number[]; + @Input() + rotation: number; + @Input() + zoom: number; + @Input() + zoomFactor: number; + @Input() + center: Coordinate; + @Input() + projection: string; - @Input() zoomAnimation = false; + @Input() + zoomAnimation = false; - constructor(private host: MapComponent) { - } + constructor(private host: MapComponent) {} ngOnInit() { // console.log('creating ol.View instance with: ', this); @@ -37,17 +51,17 @@ export class ViewComponent implements OnInit, OnChanges, OnDestroy { } ngOnChanges(changes: SimpleChanges) { - let properties: { [index: string]: any } = {}; + const properties: { [index: string]: any } = {}; if (!this.instance) { return; } - for (let key in changes) { + for (const key in changes) { if (changes.hasOwnProperty(key)) { switch (key) { case 'zoom': /** Work-around: setting the zoom via setProperties does not work. */ if (this.zoomAnimation) { - this.instance.animate({zoom: changes[key].currentValue}); + this.instance.animate({ zoom: changes[key].currentValue }); } else { this.instance.setZoom(changes[key].currentValue); } diff --git a/projects/ngx-openlayers/src/public_api.ts b/projects/ngx-openlayers/src/public_api.ts new file mode 100644 index 00000000..2ba9d195 --- /dev/null +++ b/projects/ngx-openlayers/src/public_api.ts @@ -0,0 +1,222 @@ +/* + * Public API Surface of ngx-openlayers + */ +import { NgModule } from '@angular/core'; +import { CommonModule } from '@angular/common'; +import { ViewComponent } from './lib/view.component'; +import { GraticuleComponent } from './lib/graticule.component'; +import { LayerGroupComponent } from './lib/layers/layergroup.component'; +import { LayerImageComponent } from './lib/layers/layerimage.component'; +import { LayerTileComponent } from './lib/layers/layertile.component'; +import { MapComponent } from './lib/map.component'; +import { LayerVectorComponent } from './lib/layers/layervector.component'; +import { LayerVectorTileComponent } from './lib/layers/layervectortile.component'; +import { SourceOsmComponent } from './lib/sources/osm.component'; +import { SourceBingmapsComponent } from './lib/sources/bingmaps.component'; +import { SourceClusterComponent } from './lib/sources/cluster.component'; +import { SourceVectorComponent } from './lib/sources/vector.component'; +import { SourceXYZComponent } from './lib/sources/xyz.component'; +import { SourceTileWMTSComponent } from './lib/sources/tilewmts.component'; +import { SourceVectorTileComponent } from './lib/sources/vectortile.component'; +import { SourceTileWMSComponent } from './lib/sources/tilewms.component'; +import { SourceTileJSONComponent } from './lib/sources/tilejson.component'; +import { SourceGeoJSONComponent } from './lib/sources/geojson.component'; +import { SourceImageStaticComponent } from './lib/sources/imagestatic.component'; +import { SourceImageWMSComponent } from './lib/sources/imagewms.component'; +import { SourceRasterComponent } from './lib/sources/raster.component'; +import { FeatureComponent } from './lib/feature.component'; +import { + GeometryLinestringComponent, + GeometryPointComponent, + GeometryPolygonComponent, +} from './lib/geometry.components'; +import { CollectionCoordinatesComponent, CoordinateComponent } from './lib/coordinate.component'; +import { StyleComponent } from './lib/styles/style.component'; +import { StyleCircleComponent } from './lib/styles/circle.component'; +import { StyleStrokeComponent } from './lib/styles/stroke.component'; +import { StyleIconComponent } from './lib/styles/icon.component'; +import { StyleFillComponent } from './lib/styles/fill.component'; +import { StyleTextComponent } from './lib/styles/text.component'; +import { DefaultControlComponent } from './lib/controls/default.component'; +import { ControlComponent } from './lib/controls/control.component'; +import { ControlAttributionComponent } from './lib/controls/attribution.component'; +import { ControlFullScreenComponent } from './lib/controls/fullscreen.component'; +import { ControlMousePositionComponent } from './lib/controls/mouseposition.component'; +import { ControlOverviewMapComponent } from './lib/controls/overviewmap.component'; +import { ControlRotateComponent } from './lib/controls/rotate.component'; +import { ControlScaleLineComponent } from './lib/controls/scaleline.component'; +import { ControlZoomComponent } from './lib/controls/zoom.component'; +import { ControlZoomSliderComponent } from './lib/controls/zoomslider.component'; +import { ControlZoomToExtentComponent } from './lib/controls/zoomtoextent.component'; +import { FormatMVTComponent } from './lib/formats/mvt.component'; +import { TileGridComponent } from './lib/tilegrid.component'; +import { TileGridWMTSComponent } from './lib/tilegridwmts.component'; +import { DefaultInteractionComponent } from './lib/interactions/default.component'; +import { DoubleClickZoomInteractionComponent } from './lib/interactions/doubleclickzoom.component'; +import { DragAndDropInteractionComponent } from './lib/interactions/draganddrop.component'; +import { DragBoxInteractionComponent } from './lib/interactions/dragbox.component'; +import { DragPanInteractionComponent } from './lib/interactions/dragpan.component'; +import { DragRotateInteractionComponent } from './lib/interactions/dragrotate.component'; +import { DragRotateAndZoomInteractionComponent } from './lib/interactions/dragrotateandzoom.component'; +import { DragZoomInteractionComponent } from './lib/interactions/dragzoom.component'; +import { MouseWheelZoomInteractionComponent } from './lib/interactions/mousewheelzoom.component'; +import { PinchZoomInteractionComponent } from './lib/interactions/pinchzoom.component'; +import { DrawInteractionComponent } from './lib/interactions/draw.component'; +import { SelectInteractionComponent } from './lib/interactions/select.component'; +import { ModifyInteractionComponent } from './lib/interactions/modify.component'; +import { TranslateInteractionComponent } from './lib/interactions/translate.component'; +import { OverlayComponent } from './lib/overlay.component'; +import { ContentComponent } from './lib/content.component'; +import { AttributionComponent } from './lib/attribution.component'; +import { AttributionsComponent } from './lib/attributions.component'; + +export { + MapComponent, + ViewComponent, + GraticuleComponent, + LayerGroupComponent, + LayerImageComponent, + LayerTileComponent, + LayerVectorComponent, + LayerVectorTileComponent, + SourceOsmComponent, + SourceBingmapsComponent, + SourceClusterComponent, + SourceVectorComponent, + SourceXYZComponent, + SourceVectorTileComponent, + SourceTileWMSComponent, + SourceTileWMTSComponent, + SourceTileJSONComponent, + SourceGeoJSONComponent, + SourceImageStaticComponent, + SourceImageWMSComponent, + SourceRasterComponent, + FeatureComponent, + GeometryLinestringComponent, + GeometryPointComponent, + GeometryPolygonComponent, + CoordinateComponent, + CollectionCoordinatesComponent, + StyleComponent, + StyleCircleComponent, + StyleFillComponent, + StyleIconComponent, + StyleStrokeComponent, + StyleTextComponent, + DefaultControlComponent, + ControlComponent, + ControlAttributionComponent, + ControlFullScreenComponent, + ControlMousePositionComponent, + ControlOverviewMapComponent, + ControlRotateComponent, + ControlScaleLineComponent, + ControlZoomComponent, + ControlZoomSliderComponent, + ControlZoomToExtentComponent, + FormatMVTComponent, + TileGridComponent, + TileGridWMTSComponent, + DefaultInteractionComponent, + DoubleClickZoomInteractionComponent, + DragAndDropInteractionComponent, + DragBoxInteractionComponent, + DragPanInteractionComponent, + DragRotateInteractionComponent, + DragRotateAndZoomInteractionComponent, + DragZoomInteractionComponent, + MouseWheelZoomInteractionComponent, + PinchZoomInteractionComponent, + DrawInteractionComponent, + SelectInteractionComponent, + ModifyInteractionComponent, + TranslateInteractionComponent, + OverlayComponent, + ContentComponent, + AttributionComponent, + AttributionsComponent, +}; + +const COMPONENTS = [ + MapComponent, + + ViewComponent, + GraticuleComponent, + + LayerGroupComponent, + LayerImageComponent, + LayerTileComponent, + LayerVectorComponent, + LayerVectorTileComponent, + + SourceOsmComponent, + SourceBingmapsComponent, + SourceClusterComponent, + SourceVectorComponent, + SourceXYZComponent, + SourceVectorTileComponent, + SourceTileWMSComponent, + SourceTileWMTSComponent, + SourceTileJSONComponent, + SourceGeoJSONComponent, + SourceImageStaticComponent, + SourceImageWMSComponent, + SourceRasterComponent, + FeatureComponent, + GeometryLinestringComponent, + GeometryPointComponent, + GeometryPolygonComponent, + CoordinateComponent, + CollectionCoordinatesComponent, + + StyleComponent, + StyleCircleComponent, + StyleFillComponent, + StyleIconComponent, + StyleStrokeComponent, + StyleTextComponent, + + DefaultControlComponent, + ControlComponent, + ControlAttributionComponent, + ControlFullScreenComponent, + ControlMousePositionComponent, + ControlOverviewMapComponent, + ControlRotateComponent, + ControlScaleLineComponent, + ControlZoomComponent, + ControlZoomSliderComponent, + ControlZoomToExtentComponent, + + FormatMVTComponent, + TileGridComponent, + TileGridWMTSComponent, + + DefaultInteractionComponent, + DoubleClickZoomInteractionComponent, + DragAndDropInteractionComponent, + DragBoxInteractionComponent, + DragPanInteractionComponent, + DragRotateInteractionComponent, + DragRotateAndZoomInteractionComponent, + DragZoomInteractionComponent, + MouseWheelZoomInteractionComponent, + PinchZoomInteractionComponent, + DrawInteractionComponent, + SelectInteractionComponent, + ModifyInteractionComponent, + TranslateInteractionComponent, + + OverlayComponent, + ContentComponent, + AttributionComponent, + AttributionsComponent, +]; + +@NgModule({ + declarations: COMPONENTS, + imports: [CommonModule], + exports: COMPONENTS, +}) +export class AngularOpenlayersModule {} diff --git a/projects/ngx-openlayers/src/test.ts b/projects/ngx-openlayers/src/test.ts new file mode 100644 index 00000000..be4725e7 --- /dev/null +++ b/projects/ngx-openlayers/src/test.ts @@ -0,0 +1,16 @@ +// This file is required by karma.conf.js and loads recursively all the .spec and framework files + +import 'core-js/es7/reflect'; +import 'zone.js/dist/zone'; +import 'zone.js/dist/zone-testing'; +import { getTestBed } from '@angular/core/testing'; +import { BrowserDynamicTestingModule, platformBrowserDynamicTesting } from '@angular/platform-browser-dynamic/testing'; + +declare const require: any; + +// First, initialize the Angular testing environment. +getTestBed().initTestEnvironment(BrowserDynamicTestingModule, platformBrowserDynamicTesting()); +// Then we find all the tests. +const context = require.context('./', true, /\.spec\.ts$/); +// And load the modules. +context.keys().map(context); diff --git a/projects/ngx-openlayers/tsconfig.lib.json b/projects/ngx-openlayers/tsconfig.lib.json new file mode 100644 index 00000000..8d28abc2 --- /dev/null +++ b/projects/ngx-openlayers/tsconfig.lib.json @@ -0,0 +1,33 @@ +{ + "extends": "../../tsconfig.json", + "compilerOptions": { + "outDir": "../../out-tsc/lib", + "target": "es2015", + "module": "es2015", + "moduleResolution": "node", + "declaration": true, + "sourceMap": true, + "inlineSources": true, + "emitDecoratorMetadata": true, + "experimentalDecorators": true, + "importHelpers": true, + "types": ["openlayers"], + "lib": [ + "dom", + "es2015" + ] + }, + "angularCompilerOptions": { + "annotateForClosureCompiler": true, + "skipTemplateCodegen": true, + "strictMetadataEmit": true, + "fullTemplateTypeCheck": true, + "strictInjectionParameters": true, + "flatModuleId": "AUTOGENERATED", + "flatModuleOutFile": "AUTOGENERATED" + }, + "exclude": [ + "src/test.ts", + "**/*.spec.ts" + ] +} diff --git a/projects/ngx-openlayers/tsconfig.spec.json b/projects/ngx-openlayers/tsconfig.spec.json new file mode 100644 index 00000000..16da33db --- /dev/null +++ b/projects/ngx-openlayers/tsconfig.spec.json @@ -0,0 +1,17 @@ +{ + "extends": "../../tsconfig.json", + "compilerOptions": { + "outDir": "../../out-tsc/spec", + "types": [ + "jasmine", + "node" + ] + }, + "files": [ + "src/test.ts" + ], + "include": [ + "**/*.spec.ts", + "**/*.d.ts" + ] +} diff --git a/projects/ngx-openlayers/tslint.json b/projects/ngx-openlayers/tslint.json new file mode 100644 index 00000000..41904528 --- /dev/null +++ b/projects/ngx-openlayers/tslint.json @@ -0,0 +1,17 @@ +{ + "extends": "../../tslint.json", + "rules": { + "directive-selector": [ + true, + "attribute", + "aol", + "camelCase" + ], + "component-selector": [ + true, + "element", + "aol", + "kebab-case" + ] + } +} diff --git a/src/app/app.component.ts b/src/app/app.component.ts new file mode 100755 index 00000000..e447514f --- /dev/null +++ b/src/app/app.component.ts @@ -0,0 +1,48 @@ +import { Component } from '@angular/core'; + +@Component({ + selector: 'app-root', + template: ` +
+

ngx-openlayer demo

+
+
+ +
+ + `, + styles: [ + ` + header { + top: 0; + height: 75px; + width: 100%; + display: -ms-flexbox; + display: flex; + flex-wrap: wrap; + -ms-flex-pack: justify; + justify-content: space-between; + z-index: 4; + background-color: #202124; + color: #fff; + font-family: Roboto, sans-serif; + font-size: 16px; + opacity: 1; + box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12); + } + + header h1 { + padding-left: 1rem; + cursor: pointer; + } + + .main-container { + height: calc(100% - 72px); + background-color: white; + margin: 0px; + overflow: auto; + } + `, + ], +}) +export class AppComponent {} diff --git a/src/app/app.module.ts b/src/app/app.module.ts new file mode 100755 index 00000000..b8bcd2bb --- /dev/null +++ b/src/app/app.module.ts @@ -0,0 +1,51 @@ +import { BrowserModule } from '@angular/platform-browser'; +import { NgModule } from '@angular/core'; +import { FormsModule, ReactiveFormsModule } from '@angular/forms'; +import { AngularOpenlayersModule } from 'ngx-openlayers'; +import 'hammerjs'; +import 'hammer-timejs'; + +import { AppComponent } from './app.component'; +import { AppRoutingModule } from './app.routing'; +import { ClusterComponent } from './cluster/cluster.component'; +import { BasicComponent } from './basic/basic.component'; +import { RasterComponent } from './raster/raster.component'; +import { ExamplesListComponent } from './examples-list/examples-list.component'; +import { ExamplesItemComponent } from './examples-item/examples-item.component'; +import { MapPositionComponent } from './map-position/map-position.component'; +import { CursorPositionComponent } from './cursor-position/cursor-position.component'; +import { DisplayGeometryComponent } from './display-geometry/display-geometry.component'; +import { DisplayGeojsonSourceComponent } from './display-geojson-source/display-geojson-source.component'; +import { DrawPolygonComponent } from './draw-polygon/draw-polygon.component'; +import { ModifyPolygonComponent } from './modify-polygon/modify-polygon.component'; +import { SideBySideComponent } from './side-by-side/side-by-side.component'; +import { SwipeComponent } from './swipe/swipe.component'; +import { OverlayComponent } from './overlay/overlay.component'; +import { ColorSelectHoverComponent } from './color-select-hover/color-select-hover.component'; +import { MarkerComponent } from './marker/marker.component'; + +@NgModule({ + declarations: [ + AppComponent, + BasicComponent, + ClusterComponent, + RasterComponent, + ExamplesListComponent, + ExamplesItemComponent, + MapPositionComponent, + CursorPositionComponent, + DisplayGeometryComponent, + DisplayGeojsonSourceComponent, + DrawPolygonComponent, + ModifyPolygonComponent, + SideBySideComponent, + SwipeComponent, + OverlayComponent, + ColorSelectHoverComponent, + MarkerComponent, + ], + imports: [BrowserModule, FormsModule, AppRoutingModule, AngularOpenlayersModule, ReactiveFormsModule], + providers: [], + bootstrap: [AppComponent], +}) +export class AppModule {} diff --git a/src/app/app.routing.ts b/src/app/app.routing.ts new file mode 100644 index 00000000..20c14f97 --- /dev/null +++ b/src/app/app.routing.ts @@ -0,0 +1,49 @@ +import { NgModule } from '@angular/core'; +import { RouterModule, Routes } from '@angular/router'; +import { ClusterComponent } from './cluster/cluster.component'; +import { BasicComponent } from './basic/basic.component'; +import { RasterComponent } from './raster/raster.component'; +import { ExamplesListComponent } from './examples-list/examples-list.component'; +import { ExamplesItemComponent } from './examples-item/examples-item.component'; +import { MapPositionComponent } from './map-position/map-position.component'; +import { CursorPositionComponent } from './cursor-position/cursor-position.component'; +import { DisplayGeometryComponent } from './display-geometry/display-geometry.component'; +import { DisplayGeojsonSourceComponent } from './display-geojson-source/display-geojson-source.component'; +import { DrawPolygonComponent } from './draw-polygon/draw-polygon.component'; +import { ModifyPolygonComponent } from './modify-polygon/modify-polygon.component'; +import { SideBySideComponent } from './side-by-side/side-by-side.component'; +import { SwipeComponent } from './swipe/swipe.component'; +import { OverlayComponent } from './overlay/overlay.component'; +import { ColorSelectHoverComponent } from './color-select-hover/color-select-hover.component'; +import { MarkerComponent } from './marker/marker.component'; + +const routes: Routes = [ + { path: '', component: ExamplesListComponent }, + { + path: 'examples', + component: ExamplesItemComponent, + children: [ + { path: 'basic', component: BasicComponent }, + { path: 'map-position', component: MapPositionComponent }, + { path: 'cursor-position', component: CursorPositionComponent }, + { path: 'display-geometry', component: DisplayGeometryComponent }, + { path: 'display-geojson-source', component: DisplayGeojsonSourceComponent }, + { path: 'draw-polygon', component: DrawPolygonComponent }, + { path: 'modify-polygon', component: ModifyPolygonComponent }, + { path: 'side-by-side', component: SideBySideComponent }, + { path: 'swipe', component: SwipeComponent }, + { path: 'overlay', component: OverlayComponent }, + { path: 'color-select-hover', component: ColorSelectHoverComponent }, + { path: 'marker', component: MarkerComponent }, + { path: 'cluster', component: ClusterComponent }, + { path: 'raster', component: RasterComponent }, + ], + }, + { path: '**', redirectTo: '' }, +]; + +@NgModule({ + imports: [RouterModule.forRoot(routes)], + exports: [RouterModule], +}) +export class AppRoutingModule {} diff --git a/src/app/basic/basic.component.ts b/src/app/basic/basic.component.ts new file mode 100644 index 00000000..03342a2e --- /dev/null +++ b/src/app/basic/basic.component.ts @@ -0,0 +1,89 @@ +import { Component } from '@angular/core'; + +@Component({ + selector: 'app-root', + template: ` + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ opacity:
+ zoom:
+
+ `, + styles: [ + ` + :host { + display: flex; + } + + aol-map { + width: 70%; + } + + .controls { + width: 28%; + padding: 1rem; + } + `, + ], +}) +export class BasicComponent { + public zoom = 15; + public opacity = 1.0; + public width = 5; + + increaseZoom() { + this.zoom = Math.min(this.zoom + 1, 18); + console.log('zoom: ', this.zoom); + } + + decreaseZoom() { + this.zoom = Math.max(this.zoom - 1, 1); + console.log('zoom: ', this.zoom); + } + + increaseOpacity() { + this.opacity = Math.min(this.opacity + 0.1, 1); + console.log('opacity: ', this.opacity); + } + + decreaseOpacity() { + this.opacity = Math.max(this.opacity - 0.1, 0); + console.log('opacity: ', this.opacity); + } +} diff --git a/src/app/cluster/cluster.component.ts b/src/app/cluster/cluster.component.ts new file mode 100644 index 00000000..ed6d5fc9 --- /dev/null +++ b/src/app/cluster/cluster.component.ts @@ -0,0 +1,81 @@ +import { Component, OnInit } from '@angular/core'; + +@Component({ + selector: 'app-cluster', + template: ` + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + `, +}) +export class ClusterComponent implements OnInit { + distance = 60; + points: Array<{ x: number; y: number }> = []; + + ngOnInit() { + // Generate random points + const nbPoints = 2000; + for (let i = 0; i < nbPoints; ++i) { + this.points.push({ + x: this.getRandomInRange(1.47, 1.51, 4), + y: this.getRandomInRange(43.545, 43.565, 4), + }); + } + } + + getRandomInRange(from, to, fixed) { + return (Math.random() * (to - from) + from).toFixed(fixed) * 1; + } +} diff --git a/src/app/color-select-hover/color-select-hover.component.ts b/src/app/color-select-hover/color-select-hover.component.ts new file mode 100644 index 00000000..64b71791 --- /dev/null +++ b/src/app/color-select-hover/color-select-hover.component.ts @@ -0,0 +1,159 @@ +import { Component, OnInit, QueryList, ViewChild, ViewChildren } from '@angular/core'; +import { Feature as OlFeature, layer as OlLayer, style } from 'openlayers'; +import { MapComponent, LayerVectorComponent } from 'ngx-openlayers'; + +@Component({ + selector: 'app-color-select-hover', + template: ` + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + `, +}) +export class ColorSelectHoverComponent implements OnInit { + constructor() {} + + @ViewChild('map') + map: MapComponent; + @ViewChildren('aoiLayerVector') + aoiLayerVector: QueryList; + + features = { + type: 'FeatureCollection', + features: [ + { + id: 1, + type: 'Feature', + properties: {}, + geometry: { + type: 'Polygon', + coordinates: [ + [ + [-1.4501953125, 48.40003249610685], + [2.13134765625, 48.40003249610685], + [2.13134765625, 50.13466432216694], + [-1.4501953125, 50.13466432216694], + [-1.4501953125, 48.40003249610685], + ], + ], + }, + }, + { + id: 2, + type: 'Feature', + properties: {}, + geometry: { + type: 'Polygon', + coordinates: [ + [ + [5.3173828125, 47.368594345213374], + [9.29443359375, 47.368594345213374], + [9.29443359375, 49.36806633482156], + [5.3173828125, 49.36806633482156], + [5.3173828125, 47.368594345213374], + ], + ], + }, + }, + { + id: 3, + type: 'Feature', + properties: {}, + geometry: { + type: 'Polygon', + coordinates: [ + [ + [-3.3837890625, 43.61221676817573], + [1.51611328125, 43.61221676817573], + [1.51611328125, 46.694667307773116], + [-3.3837890625, 46.694667307773116], + [-3.3837890625, 43.61221676817573], + ], + ], + }, + }, + { + id: 4, + type: 'Feature', + properties: {}, + geometry: { + type: 'Polygon', + coordinates: [ + [ + [4.50439453125, 42.342305278572816], + [9.16259765625, 42.342305278572816], + [9.16259765625, 45.66012730272194], + [4.50439453125, 45.66012730272194], + [4.50439453125, 42.342305278572816], + ], + ], + }, + }, + ], + }; + + styleInterationSelected = new style.Style({ + fill: new style.Fill({ + color: 'rgba(0, 153, 255, 0.1)', + }), + stroke: new style.Stroke({ + color: 'rgba(0, 153, 255)', + width: 3, + }), + }); + + hoveredFeatureId; + + ngOnInit() {} + + changeFeatureHovered(event) { + const hit: OlFeature = this.map.instance.forEachFeatureAtPixel(event.pixel, f => f, { + layerFilter: inLayer(...this.aoiLayerVector.toArray()), + hitTolerance: 10, + }) as OlFeature; + + if (!hit && this.hoveredFeatureId) { + this.hoveredFeatureId = null; + } + if (hit && hit.getId() !== this.hoveredFeatureId) { + this.hoveredFeatureId = hit.getId(); + } + } +} + +function inLayer(...layers: LayerVectorComponent[]): (l: OlLayer.Layer) => boolean { + return (l: OlLayer.Layer) => layers.some(layer => layer.instance === l); +} diff --git a/src/app/cursor-position/cursor-position.component.ts b/src/app/cursor-position/cursor-position.component.ts new file mode 100644 index 00000000..b4a49d7b --- /dev/null +++ b/src/app/cursor-position/cursor-position.component.ts @@ -0,0 +1,76 @@ +import { Component, OnInit } from '@angular/core'; +import { proj } from 'openlayers'; + +@Component({ + selector: 'app-cursor-position', + template: ` + + + + + + + + + + + + + +
+
+

Cursor coordinates

+ Longitude: {{lonToString(lon)}} + Latitude: {{latToString(lat)}} +
+
+ `, + styles: [ + ` + :host { + display: flex; + } + + aol-map { + width: 70%; + } + + .info { + width: 28%; + padding: 1rem; + } + + .cursor-coordinates { + display: flex; + flex-direction: column; + } + `, + ], +}) +export class CursorPositionComponent implements OnInit { + constructor() {} + + lon = 0; + lat = 0; + + ngOnInit() {} + + dispatchCursor(event): void { + const coordinates = event.coordinate; + this.lon = proj.transform(coordinates, 'EPSG:3857', 'EPSG:4326')[0]; + this.lat = proj.transform(coordinates, 'EPSG:3857', 'EPSG:4326')[1]; + } + + latToString(lat: number) { + return toSexagesimal(lat, '', '-'); + } + + lonToString(lon: number) { + return toSexagesimal(lon, '', '-'); + } +} + +function toSexagesimal(value: number, positiveSuffix: string, negativeSuffix: string): string { + const modValue = ((value + 180) % 360) - 180; + return (modValue > 0 ? positiveSuffix : negativeSuffix) + Math.abs(modValue).toFixed(6); +} diff --git a/src/app/display-geojson-source/display-geojson-source.component.ts b/src/app/display-geojson-source/display-geojson-source.component.ts new file mode 100644 index 00000000..87e0796a --- /dev/null +++ b/src/app/display-geojson-source/display-geojson-source.component.ts @@ -0,0 +1,36 @@ +import { Component, OnInit } from '@angular/core'; + +@Component({ + selector: 'app-display-geojson-source', + template: ` + + + + + + + + + + + + + + + + + + + + + + + + `, +}) +export class DisplayGeojsonSourceComponent implements OnInit { + constructor() {} + + ngOnInit() {} +} diff --git a/src/app/display-geometry/display-geometry.component.ts b/src/app/display-geometry/display-geometry.component.ts new file mode 100644 index 00000000..b9319958 --- /dev/null +++ b/src/app/display-geometry/display-geometry.component.ts @@ -0,0 +1,112 @@ +import { Component, OnInit } from '@angular/core'; + +@Component({ + selector: 'app-display-geometry', + template: ` + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + `, +}) +export class DisplayGeometryComponent implements OnInit { + constructor() {} + + features = [ + { + type: 'Feature', + properties: {}, + geometry: { + type: 'Polygon', + coordinates: [ + [ + [-1.131591796875, 47.03269459852135], + [0.98876953125, 47.03269459852135], + [0.98876953125, 48.356249029540734], + [-1.131591796875, 48.356249029540734], + [-1.131591796875, 47.03269459852135], + ], + ], + }, + }, + { + type: 'Feature', + properties: {}, + geometry: { + type: 'Point', + coordinates: [2.8125, 49.61782831211117], + }, + }, + { + type: 'Feature', + properties: {}, + geometry: { + type: 'LineString', + coordinates: [ + [1.856689453125, 49.102645497788814], + [5.009765625, 48.95858066440977], + [6.1083984375, 47.96785877999251], + [6.85546875, 48.71271258145237], + [5.064697265625, 49.62494564650146], + ], + }, + }, + ]; + + ngOnInit() {} +} diff --git a/src/app/draw-polygon/draw-polygon.component.ts b/src/app/draw-polygon/draw-polygon.component.ts new file mode 100644 index 00000000..00868f8d --- /dev/null +++ b/src/app/draw-polygon/draw-polygon.component.ts @@ -0,0 +1,88 @@ +import { Component, OnInit } from '@angular/core'; +import { interaction, Feature, geom, proj } from 'openlayers'; + +@Component({ + selector: 'app-draw-polygon', + template: ` + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ +

Result

+
{{feature | json }}
+
+
+ `, + styles: [ + ` + :host { + display: flex; + } + + aol-map { + width: 70%; + } + + .info { + width: 28%; + padding: 1rem; + } + `, + ], +}) +export class DrawPolygonComponent implements OnInit { + constructor() {} + + isDrawing = false; + drawBoxGeometryFunction = interaction.Draw.createBox(); + feature; + + ngOnInit() {} + + drawMode() { + this.isDrawing = !this.isDrawing; + } + + endDraw(feature: Feature) { + const olGeomPolygon = geom.Polygon.fromExtent(feature.getGeometry().getExtent()); + olGeomPolygon.transform(new proj.Projection({ code: 'EPSG:3857' }), new proj.Projection({ code: 'EPSG:4326' })); + this.feature = { + type: 'Feature', + properties: {}, + geometry: { + type: 'Polygon', + coordinates: [olGeomPolygon.getCoordinates()[0]], + }, + }; + } +} diff --git a/src/app/example-list.ts b/src/app/example-list.ts new file mode 100644 index 00000000..939155a7 --- /dev/null +++ b/src/app/example-list.ts @@ -0,0 +1,81 @@ +export const examplesList = [ + { + title: 'Basic', + description: 'Basic example. Demonstrates zoom and opacity.', + routerLink: 'basic', + }, + { + title: 'Map position', + description: 'Map longitude, latitude and zoom.', + routerLink: 'map-position', + }, + { + title: 'Cursor position', + description: 'Example of a mouse position control, outside the map.', + routerLink: 'cursor-position', + openLayersLink: 'https://openlayers.org/en/latest/examples/mouse-position.html', + }, + { + title: 'Display geometry', + description: 'Example of geojson features : point, polygon, linestring.', + routerLink: 'display-geometry', + openLayersLink: 'https://openlayers.org/en/latest/examples/geojson.html', + }, + { + title: 'Display geometry from a geojson file', + description: 'Example of using aol-source-geojson', + routerLink: 'display-geojson-source', + openLayersLink: 'https://openlayers.org/en/latest/examples/vector-layer.html', + }, + { + title: 'Draw polygon', + description: 'Example of using aol-interaction-draw', + routerLink: 'draw-polygon', + openLayersLink: 'https://openlayers.org/en/latest/examples/draw-features.html', + }, + { + title: 'Modify polygon', + description: 'Example of using aol-interaction-modify', + routerLink: 'modify-polygon', + openLayersLink: 'https://openlayers.org/en/latest/examples/modify-features.html', + }, + { + title: 'Side by side', + description: 'Compare 2 maps side by side', + routerLink: 'side-by-side', + }, + { + title: 'Swipe', + description: 'Compare 2 layers tile with swipe', + routerLink: 'swipe', + openLayersLink: 'https://openlayers.org/en/latest/examples/layer-swipe.html', + }, + { + title: 'Overlay', + description: 'Example of using aol-overlay', + routerLink: 'overlay', + openLayersLink: 'https://openlayers.org/en/latest/examples/overlay.html', + }, + { + title: 'Change color when feature is selected or hovered', + description: 'Change aol-style on hover or on select', + routerLink: 'color-select-hover', + openLayersLink: 'https://openlayers.org/en/latest/examples/vector-layer.html', + }, + { + title: 'Marker', + description: 'Display marker with svg on specific point', + routerLink: 'marker', + openLayersLink: 'https://openlayers.org/en/latest/examples/icon-color.html', + }, + { + title: 'Cluster', + description: 'Example of using aol-source-cluster. This example shows how to do clustering on point features.', + routerLink: 'cluster', + openLayersLink: 'https://openlayers.org/en/latest/examples/cluster.html', + }, + { + title: 'Raster', + routerLink: 'raster', + }, +]; diff --git a/src/app/examples-item/examples-item.component.ts b/src/app/examples-item/examples-item.component.ts new file mode 100644 index 00000000..19e46433 --- /dev/null +++ b/src/app/examples-item/examples-item.component.ts @@ -0,0 +1,55 @@ +import { Component, OnInit } from '@angular/core'; +import { examplesList } from '../example-list'; +import { Router } from '@angular/router'; + +@Component({ + selector: 'app-examples-item', + template: ` +
+ {{exampleInfo.title}} + {{exampleInfo.description}} + +
+ + `, + styles: [ + ` + .example-info { + padding: 2rem 1rem; + display: flex; + flex-direction: column; + font-family: Roboto, Arial, sans-serif; + } + + .example-info .title { + font-family: Roboto, sans-serif; + margin-top: 0px; + color: rgba(0, 0, 0, 0.87); + font-size: 25px; + font-weight: 700; + padding-bottom: 0.5rem; + } + .example-info .description { + color: rgba(0, 0, 0, 0.6); + line-height: 24px; + padding-bottom: 0.5rem; + } + .example-info .open-layers-link a { + margin-bottom: 0px; + color: rgba(0, 0, 0, 0.6); + font-size: 12px; + } + `, + ], +}) +export class ExamplesItemComponent implements OnInit { + constructor(private router: Router) {} + exampleInfo; + ngOnInit() { + this.exampleInfo = examplesList.find(item => this.router.url.includes(item.routerLink)); + } +} diff --git a/src/app/examples-list/examples-list.component.ts b/src/app/examples-list/examples-list.component.ts new file mode 100644 index 00000000..f365eefe --- /dev/null +++ b/src/app/examples-list/examples-list.component.ts @@ -0,0 +1,100 @@ +import { Component, OnInit } from '@angular/core'; +import { examplesList } from '../example-list'; +import { FormBuilder, FormGroup } from '@angular/forms'; + +@Component({ + selector: 'app-examples-list', + template: ` + +
+
+ {{example.title}} + {{example.description}} + +
+
+ `, + styles: [ + ` + .search { + display: flex; + justify-content: center; + padding: 1rem; + } + .example-item { + display: flex; + flex-direction: column; + padding: 10px; + background-color: #f5f5f5; + height: 140px; + margin: 10px 0; + overflow: auto; + line-height: 1.42857143; + color: black; + font-family: Roboto, Arial, sans-serif; + font-weight: 400; + cursor: pointer; + } + + .example-item:hover { + background-color: #ddd; + } + + .wrapper { + display: grid; + grid-template-columns: repeat(3, 1fr); + grid-gap: 10px; + grid-auto-rows: minmax(100px, auto); + } + + .title { + margin-top: 0px; + color: rgba(0, 0, 0, 0.87); + font-size: 18px; + font-weight: 500; + padding-bottom: 0.5rem; + } + + .description { + color: rgba(0, 0, 0, 0.6); + line-height: 24px; + padding-bottom: 0.5rem; + } + + .open-layers-link a { + margin-bottom: 0px; + color: rgba(0, 0, 0, 0.6); + font-size: 12px; + } + `, + ], +}) +export class ExamplesListComponent implements OnInit { + constructor(private fb: FormBuilder) {} + form: FormGroup; + list = examplesList; + ngOnInit() { + this.form = this.fb.group({ + term: '', + }); + + this.form.get('term').valueChanges.subscribe(() => { + const termValue = this.form.get('term').value.toLowerCase(); + if (!termValue.trim()) { + this.list = examplesList; + } else { + this.list = this.list.filter( + item => + (item.title && item.title.toLowerCase().includes(termValue)) || + (item.description && item.description.toLowerCase().includes(termValue)) + ); + } + }); + } +} diff --git a/src/app/map-position/map-position.component.ts b/src/app/map-position/map-position.component.ts new file mode 100644 index 00000000..0e73b132 --- /dev/null +++ b/src/app/map-position/map-position.component.ts @@ -0,0 +1,115 @@ +import { Component, OnInit, ViewChild } from '@angular/core'; +import { proj } from 'openlayers'; +import { MapComponent, ViewComponent } from 'ngx-openlayers'; +import { FormBuilder, FormGroup } from '@angular/forms'; + +@Component({ + selector: 'app-map-position', + template: ` + + + + + + + + + + + + + +
+
+

Map coordinates

+ Longitude: {{currentLon}} + Latitude: {{currentLat}} + Zoom: {{currentZoom}} +
+
+

Update coordinates

+
+
+
+
+
+
+
+ `, + styles: [ + ` + :host { + display: flex; + } + + aol-map { + width: 70%; + } + + .info { + width: 28%; + padding: 1rem; + } + + .current-coordinates { + display: flex; + flex-direction: column; + } + + .update-coordinates form { + display: flex; + flex-direction: column; + } + + .row { + padding: 1rem; + } + + .row label { + min-width: 5rem; + display: inline-block; + float: left; + } + + .row input { + width: calc(50% - 5rem); + display: inline-block; + float: left; + } + `, + ], +}) +export class MapPositionComponent implements OnInit { + constructor(private fb: FormBuilder) {} + + @ViewChild('map') + map: MapComponent; + @ViewChild('view') + view: ViewComponent; + + displayProj = new proj.Projection({ code: 'EPSG:3857' }); + inputProj = new proj.Projection({ code: 'EPSG:4326' }); + + currentZoom = 0; + currentLon = 0; + currentLat = 0; + + form: FormGroup; + + ngOnInit() { + this.form = this.fb.group({ + x: 1.4886, + y: 43.5554, + zoom: 4, + }); + } + + displayCoordinates(): void { + this.currentZoom = this.view.instance.getZoom(); + [this.currentLon, this.currentLat] = proj.transform( + this.view.instance.getCenter(), + this.displayProj, + this.inputProj + ); + } +} diff --git a/src/app/marker/marker.component.ts b/src/app/marker/marker.component.ts new file mode 100644 index 00000000..049b3f29 --- /dev/null +++ b/src/app/marker/marker.component.ts @@ -0,0 +1,67 @@ +import { Component, OnInit } from '@angular/core'; + +// + +@Component({ + selector: 'app-display-marker', + template: ` + + + + + + + + + + + + + + + + + + + + + + + + + + + `, +}) +export class MarkerComponent implements OnInit { + constructor() {} + + feature = { + type: 'Feature', + properties: {}, + geometry: { + type: 'Polygon', + coordinates: [ + [ + [-2.3565673828124996, 46.92588289494367], + [-2.1148681640624996, 46.92588289494367], + [-2.1148681640624996, 47.04954010021555], + [-2.3565673828124996, 47.04954010021555], + [-2.3565673828124996, 46.92588289494367], + ], + ], + }, + }; + + marker = { + lon: -2.264184, + lat: 46.996207, + }; + + ngOnInit() {} +} diff --git a/src/app/modify-polygon/modify-polygon.component.ts b/src/app/modify-polygon/modify-polygon.component.ts new file mode 100644 index 00000000..8a1c1188 --- /dev/null +++ b/src/app/modify-polygon/modify-polygon.component.ts @@ -0,0 +1,93 @@ +import { Component, OnInit } from '@angular/core'; +import { Feature as OlFeature, format, proj } from 'openlayers'; +import { Feature } from 'geojson'; + +@Component({ + selector: 'app-modify-polygon', + template: ` + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

Result

+
{{feature | json }}
+
+ `, + styles: [ + ` + :host { + display: flex; + } + + aol-map { + width: 70%; + } + + .info { + width: 28%; + padding: 1rem; + } + `, + ], +}) +export class ModifyPolygonComponent implements OnInit { + constructor() {} + + format: format.GeoJSON = new format.GeoJSON(); + displayProj = new proj.Projection({ code: 'EPSG:3857' }); + inputProj = new proj.Projection({ code: 'EPSG:4326' }); + + feature: Feature = { + geometry: { + coordinates: [ + [ + [-1.7138671875, 43.35713822211053], + [4.515380859375, 43.35713822211053], + [4.515380859375, 47.76886840424207], + [-1.7138671875, 47.76886840424207], + [-1.7138671875, 43.35713822211053], + ], + ], + type: 'Polygon', + }, + properties: {}, + type: 'Feature', + }; + + ngOnInit() {} + + modifyEnd(feature: OlFeature) { + this.feature = this.format.writeFeatureObject(feature, { + dataProjection: this.inputProj, + featureProjection: this.displayProj, + }); + } +} diff --git a/src/app/overlay/overlay.component.ts b/src/app/overlay/overlay.component.ts new file mode 100644 index 00000000..4acacbba --- /dev/null +++ b/src/app/overlay/overlay.component.ts @@ -0,0 +1,97 @@ +import { Component, OnInit } from '@angular/core'; +import { Feature as OlFeature, format, geom } from 'openlayers'; + +@Component({ + selector: 'app-display-overlay', + template: ` + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ {{tooltip.text}} +
+
+
+
+ `, + styles: [ + ` + .tooltip { + margin-top: 35%; + right: 50%; + position: relative; + border-radius: 4px; + color: white; + padding: 4px 8px; + white-space: nowrap; + } + + .tooltip-static { + background-color: #000000; + color: white; + border: 1px solid white; + } + `, + ], +}) +export class OverlayComponent implements OnInit { + constructor() {} + + geoJsonFormat = new format.GeoJSON(); + + feature = { + type: 'Feature', + properties: {}, + geometry: { + type: 'Polygon', + coordinates: [ + [ + [-2.3565673828124996, 46.92588289494367], + [-2.1148681640624996, 46.92588289494367], + [-2.1148681640624996, 47.04954010021555], + [-2.3565673828124996, 47.04954010021555], + [-2.3565673828124996, 46.92588289494367], + ], + ], + }, + }; + + tooltip = { + lon: 0, + lat: 0, + text: 'Lorem ipsum dolor sit amet', + }; + + ngOnInit() { + const olFeature: OlFeature = this.geoJsonFormat.readFeature(this.feature); + const olGeomPolygon = geom.Polygon.fromExtent(olFeature.getGeometry().getExtent()); + [, this.tooltip.lat, this.tooltip.lon] = olGeomPolygon.getExtent(); + } +} diff --git a/src/app/raster/raster.component.ts b/src/app/raster/raster.component.ts new file mode 100644 index 00000000..fd6ef14b --- /dev/null +++ b/src/app/raster/raster.component.ts @@ -0,0 +1,160 @@ +import { Component, ViewChild } from '@angular/core'; +import { SourceRasterComponent } from 'ngx-openlayers'; + +interface RasterData { + brightness: number; + contrast: number; +} + +@Component({ + selector: 'app-raster', + template: ` + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ OSM
+ XYZ
+
+ +
+ Contrast : + + ({{ contrast }}) +
+
+ Brightness : + + ({{ brightness }}) +
+
+ `, + styles: [ + ` + :host { + display: flex; + } + + aol-map { + width: 70%; + } + + .controls { + width: 28%; + padding: 1rem; + } + + .control { + display: flex; + align-items: center; + justify-content: flex-start; + margin: 20px; + } + `, + ], +}) +export class RasterComponent { + threads = 4; + operationType = 'image'; + lib: any = { + brightness: brightness, + contrast: contrast, + }; + brightness = 0; + contrast = 0; + + selectLayer = 'osm'; + @ViewChild(SourceRasterComponent) + currentRasterSource; + + beforeOperations(event) { + const data: RasterData = event.data; + data.brightness = this.brightness; + data.contrast = this.contrast; + } + + operation(imageDatas: [ImageData], data: RasterData) { + let [imageData] = imageDatas; + imageData = brightness(imageData, data.brightness); + imageData = contrast(imageData, data.contrast); + return imageData; + } + + afterOperations() {} + + updateRaster() { + this.currentRasterSource.instance.changed(); + } +} + +/** + * @see https://github.com/canastro/image-filter-brightness/blob/master/src/transform.js + */ +function brightness(imageData: ImageData, adjustment: number) { + const pixels = imageData.data, + pixelsLength = pixels.length; + + for (let i = 0; i < pixelsLength; i += 4) { + pixels[i] += adjustment; + pixels[i + 1] += adjustment; + pixels[i + 2] += adjustment; + } + return imageData; +} + +/** + * @see https://github.com/canastro/image-filter-contrast/blob/master/src/transform.js + */ +function contrast(imageData: ImageData, adjustment: number) { + const pixels = imageData.data, + factor = (259 * (adjustment + 255)) / (255 * (259 - adjustment)), + pixelsLength = pixels.length; + + for (let i = 0; i < pixelsLength; i += 4) { + pixels[i] = factor * (pixels[i] - 128) + 128; + pixels[i + 1] = factor * (pixels[i + 1] - 128) + 128; + pixels[i + 2] = factor * (pixels[i + 2] - 128) + 128; + } + + return imageData; +} diff --git a/src/app/side-by-side/side-by-side.component.ts b/src/app/side-by-side/side-by-side.component.ts new file mode 100644 index 00000000..73ff770f --- /dev/null +++ b/src/app/side-by-side/side-by-side.component.ts @@ -0,0 +1,53 @@ +import { AfterViewInit, Component, OnInit, ViewChild } from '@angular/core'; +import { MapComponent, ViewComponent } from 'ngx-openlayers'; + +@Component({ + selector: 'app-side-by-side', + template: ` + + + + + + + + + + + + + + + + + + + + `, + styles: [ + ` + :host { + display: flex; + } + + aol-map { + width: 50%; + } + `, + ], +}) +export class SideBySideComponent implements OnInit, AfterViewInit { + constructor() {} + + @ViewChild('secondMap') + secondMap: MapComponent; + @ViewChild('view') + view: ViewComponent; + + ngOnInit() {} + + ngAfterViewInit() { + this.secondMap.instance.setView(this.view.instance); + } +} diff --git a/src/app/swipe/swipe.component.ts b/src/app/swipe/swipe.component.ts new file mode 100644 index 00000000..3c8da8f0 --- /dev/null +++ b/src/app/swipe/swipe.component.ts @@ -0,0 +1,141 @@ +import { Component, HostListener, OnInit, ViewChild } from '@angular/core'; +import { MapComponent } from 'ngx-openlayers'; + +@Component({ + selector: 'app-swipe', + template: ` + + + + + + + + + + + + + + + + + + + `, + styles: [ + ` + .swipe-button { + box-shadow: 0 3px 5px -1px rgba(0, 0, 0, 0.2), 0 6px 10px 0 rgba(0, 0, 0, 0.14), + 0 1px 18px 0 rgba(0, 0, 0, 0.12); + background-color: #0a2340; + color: white; + cursor: pointer; + left: calc(50% - 27px); + position: absolute; + top: 60%; + box-sizing: border-box; + border: none; + display: inline-block; + white-space: nowrap; + text-decoration: none; + vertical-align: baseline; + text-align: center; + margin: 0; + line-height: 36px; + border-radius: 2px; + min-width: 0; + width: 40px; + height: 40px; + } + `, + ], +}) +export class SwipeComponent implements OnInit { + constructor() {} + + @ViewChild('map') + map: MapComponent; + + public precomposeFunction: (event) => void; + public postcomposeFunction: (event) => void; + + swipeValue = 50; + swipeOffsetToCenter = 0; + positionPx = 0; + startX = 0; + + paddingSize = 16; + + ngOnInit() { + this.precomposeFunction = this.precompose(); + this.postcomposeFunction = this.postcompose(); + } + + @HostListener('window:resize', ['$event']) + onWindowResize(event) { + this.resetSwipeValues(); + } + + precompose() { + return event => { + const ctx = event.context; + const width = ctx.canvas.width * (this.swipeValue / 100); + + ctx.save(); + ctx.beginPath(); + ctx.rect(width, 0, ctx.canvas.width - width, ctx.canvas.height); + ctx.clip(); + }; + } + + postcompose() { + return event => { + const ctx = event.context; + ctx.restore(); + }; + } + + resetSwipeValues() { + this.startX = 0; + this.swipeOffsetToCenter = 0; + this.swipeValue = 50; + this.positionPx = 0; + } + + onPanStart(): void { + this.startX = this.swipeOffsetToCenter; + } + + onPan(event: any): void { + event.preventDefault(); + const swipePercentageMax = 98; + const swipePercentageMin = 2; + const maxPercentage = 0.48; + + this.swipeOffsetToCenter = this.startX + event.deltaX; + const screenSizePx = event.srcEvent.view.innerWidth - this.paddingSize; + this.positionPx = screenSizePx / 2 + this.swipeOffsetToCenter; + this.swipeValue = (this.positionPx / screenSizePx) * 100; + + const isDraggingButtonOutsideOnRight = this.swipeOffsetToCenter > maxPercentage * screenSizePx; + const isDraggingButtonOutsideOnLeft = this.swipeOffsetToCenter < -maxPercentage * screenSizePx; + if (isDraggingButtonOutsideOnRight) { + this.swipeOffsetToCenter = maxPercentage * screenSizePx; + this.swipeValue = swipePercentageMax; + } + if (isDraggingButtonOutsideOnLeft) { + this.swipeOffsetToCenter = -maxPercentage * screenSizePx; + this.swipeValue = swipePercentageMin; + } + this.map.instance.render(); + } +} diff --git a/example/src/assets/.gitkeep b/src/assets/.gitkeep similarity index 100% rename from example/src/assets/.gitkeep rename to src/assets/.gitkeep diff --git a/src/assets/marker.svg b/src/assets/marker.svg new file mode 100644 index 00000000..bd74cc0f --- /dev/null +++ b/src/assets/marker.svg @@ -0,0 +1,4 @@ + + + + diff --git a/src/browserslist b/src/browserslist new file mode 100644 index 00000000..8e09ab49 --- /dev/null +++ b/src/browserslist @@ -0,0 +1,9 @@ +# This file is currently used by autoprefixer to adjust CSS to support the below specified browsers +# For additional information regarding the format and rule options, please see: +# https://github.com/browserslist/browserslist#queries +# For IE 9-11 support, please uncomment the last line of the file and adjust as needed +> 0.5% +last 2 versions +Firefox ESR +not dead +# IE 9-11 \ No newline at end of file diff --git a/src/components/controls/index.ts b/src/components/controls/index.ts deleted file mode 100644 index d35c0a85..00000000 --- a/src/components/controls/index.ts +++ /dev/null @@ -1,11 +0,0 @@ -export * from './attribution.component'; -export * from './control.component'; -export * from './default.component'; -export * from './fullscreen.component'; -export * from './mouseposition.component'; -export * from './overviewmap.component'; -export * from './rotate.component'; -export * from './scaleline.component'; -export * from './zoom.component'; -export * from './zoomslider.component'; -export * from './zoomtoextent.component'; diff --git a/src/components/formats/index.ts b/src/components/formats/index.ts deleted file mode 100644 index b5c81176..00000000 --- a/src/components/formats/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from './format.component'; -export * from './mvt.component'; diff --git a/src/components/formats/mvt.component.ts b/src/components/formats/mvt.component.ts deleted file mode 100644 index d2d02b73..00000000 --- a/src/components/formats/mvt.component.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { Component, forwardRef, Input } from '@angular/core'; -import { format, geom } from 'openlayers'; -import { FormatComponent } from './format.component'; - -@Component({ - selector: 'aol-format-mvt', - template: '', - providers: [ - { provide: FormatComponent, useExisting: forwardRef(() => FormatMVTComponent) } - ] -}) -export class FormatMVTComponent extends FormatComponent { - instance: format.MVT; - - @Input() featureClass: (((geom: (geom.Geometry | { [k: string]: any })) => any) | - ((geom: geom.GeometryType, arg2: number[], arg3: (number[] | number[][]), arg4: { [k: string]: any }) => any)); - @Input() geometryName: string; - @Input() layerName: string; - @Input() layers: string[]; - - constructor() { - super(); - this.instance = new format.MVT(this); - } -} diff --git a/src/components/index.ts b/src/components/index.ts deleted file mode 100644 index a3016f15..00000000 --- a/src/components/index.ts +++ /dev/null @@ -1,19 +0,0 @@ -export * from './controls'; -export * from './formats'; -export * from './interactions'; -export * from './layers'; -export * from './sources'; -export * from './styles'; - -export * from './attribution.component'; -export * from './attributions.component'; -export * from './content.component'; -export * from './coordinate.component'; -export * from './feature.component'; -export * from './geometry.components'; -export * from './graticule.component'; -export * from './map.component'; -export * from './overlay.component'; -export * from './tilegrid.component'; -export * from './tilegridwmts.component'; -export * from './view.component'; diff --git a/src/components/interactions/draw.component.ts b/src/components/interactions/draw.component.ts deleted file mode 100644 index afce50a1..00000000 --- a/src/components/interactions/draw.component.ts +++ /dev/null @@ -1,50 +0,0 @@ -import { Component, Input, OnDestroy, OnInit, EventEmitter, Output } from '@angular/core'; -import { interaction } from 'openlayers'; -import { MapComponent } from '../map.component'; - -@Component({ - selector: 'aol-interaction-draw', - template: '' -}) -export class DrawInteractionComponent implements OnInit, OnDestroy { - instance: interaction.Draw; - - @Input() clickTolerance?: number; - @Input() features?: ol.Collection; - @Input() source?: ol.source.Vector; - @Input() snapTolerance?: number; - @Input() type: ol.geom.GeometryType; - @Input() maxPoints?: number; - @Input() minPoints?: number; - @Input() finishCondition?: ol.EventsConditionType; - @Input() style?: (ol.style.Style | ol.style.Style[] | ol.StyleFunction); - @Input() geometryFunction?: ol.DrawGeometryFunctionType; - @Input() geometryName?: string; - @Input() condition?: ol.EventsConditionType; - @Input() freehandCondition?: ol.EventsConditionType; - @Input() freehand?: boolean; - @Input() wrapX?: boolean; - - @Output() onChange = new EventEmitter(); - @Output() onChangeActive = new EventEmitter(); - @Output() onDrawEnd = new EventEmitter(); - @Output() onDrawStart = new EventEmitter(); - @Output() onPropertyChange = new EventEmitter(); - - constructor(private map: MapComponent) { - } - - ngOnInit() { - this.instance = new interaction.Draw(this); - this.instance.on('change', (event: ol.interaction.Draw.Event) => this.onChange.emit(event)); - this.instance.on('change:active', (event: ol.interaction.Draw.Event) => this.onChangeActive.emit(event)); - this.instance.on('drawend', (event: ol.interaction.Draw.Event) => this.onDrawEnd.emit(event)); - this.instance.on('drawstart', (event: ol.interaction.Draw.Event) => this.onDrawStart.emit(event)); - this.instance.on('propertychange', (event: ol.interaction.Draw.Event) => this.onPropertyChange.emit(event)); - this.map.instance.addInteraction(this.instance); - } - - ngOnDestroy() { - this.map.instance.removeInteraction(this.instance); - } -} diff --git a/src/components/interactions/index.ts b/src/components/interactions/index.ts deleted file mode 100644 index 6e5c81be..00000000 --- a/src/components/interactions/index.ts +++ /dev/null @@ -1,14 +0,0 @@ -export * from './default.component'; -export * from './doubleclickzoom.component'; -export * from './draganddrop.component'; -export * from './dragbox.component'; -export * from './dragpan.component'; -export * from './dragrotate.component'; -export * from './dragrotateandzoom.component'; -export * from './dragzoom.component'; -export * from './mousewheelzoom.component'; -export * from './pinchzoom.component'; -export * from './draw.component'; -export * from './select.component'; -export * from './translate.component'; -export * from './modify.component'; diff --git a/src/components/interactions/modify.component.ts b/src/components/interactions/modify.component.ts deleted file mode 100644 index b4fe91e6..00000000 --- a/src/components/interactions/modify.component.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { Component, OnDestroy, OnInit, Input, Output, EventEmitter } from '@angular/core'; -import { interaction, EventsConditionType, style, StyleFunction, Collection, Feature, source } from 'openlayers'; -import { MapComponent } from '../map.component'; - -@Component({ - selector: 'aol-interaction-modify', - template: '' -}) -export class ModifyInteractionComponent implements OnInit, OnDestroy { - instance: interaction.Modify; - - @Input() condition?: EventsConditionType; - @Input() deleteCondition?: EventsConditionType; - @Input() pixelTolerance?: number; - @Input() style?: (style.Style | style.Style[] | StyleFunction); - @Input() features: Collection; - @Input() wrapX?: boolean; - @Input() source?: source.Vector; - - @Output() onModifyEnd = new EventEmitter(); - @Output() onModifyStart = new EventEmitter(); - @Output() onChange = new EventEmitter(); - @Output() onChangeActive = new EventEmitter(); - @Output() onPropertyChange = new EventEmitter(); - - constructor(private map: MapComponent) { - } - - ngOnInit() { - this.instance = new interaction.Modify(this); - this.instance.on('change', (event: interaction.Modify.Event) => this.onChange.emit(event)); - this.instance.on('change:active', (event: interaction.Modify.Event) => this.onChangeActive.emit(event)); - this.instance.on('propertychange', (event: interaction.Modify.Event) => this.onPropertyChange.emit(event)); - this.instance.on('modifyend', (event: interaction.Modify.Event) => this.onModifyEnd.emit(event)); - this.instance.on('modifystart', (event: interaction.Modify.Event) => this.onModifyStart.emit(event)); - this.map.instance.addInteraction(this.instance); - } - - ngOnDestroy() { - this.map.instance.removeInteraction(this.instance); - } -} diff --git a/src/components/interactions/pinchzoom.component.js b/src/components/interactions/pinchzoom.component.js deleted file mode 100644 index 8f851752..00000000 --- a/src/components/interactions/pinchzoom.component.js +++ /dev/null @@ -1,36 +0,0 @@ -"use strict"; -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; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -var core_1 = require("@angular/core"); -var openlayers_1 = require("openlayers"); -var PinchZoomInteractionComponent = (function () { - function PinchZoomInteractionComponent(map) { - this.map = map; - } - PinchZoomInteractionComponent.prototype.ngOnInit = function () { - this.instance = new openlayers_1.interaction.PinchZoom(this); - this.map.instance.addInteraction(this.instance); - }; - PinchZoomInteractionComponent.prototype.ngOnDestroy = function () { - this.map.instance.removeInteraction(this.instance); - }; - return PinchZoomInteractionComponent; -}()); -__decorate([ - core_1.Input() -], PinchZoomInteractionComponent.prototype, "duration", void 0); -__decorate([ - core_1.Input() -], PinchZoomInteractionComponent.prototype, "constrainResolution", void 0); -PinchZoomInteractionComponent = __decorate([ - core_1.Component({ - selector: 'aol-interaction-pinchzoom', - template: '' - }) -], PinchZoomInteractionComponent); -exports.PinchZoomInteractionComponent = PinchZoomInteractionComponent; diff --git a/src/components/interactions/select.component.ts b/src/components/interactions/select.component.ts deleted file mode 100644 index a9d285c5..00000000 --- a/src/components/interactions/select.component.ts +++ /dev/null @@ -1,44 +0,0 @@ -import { Component, OnDestroy, OnInit, Input, Output, EventEmitter } from '@angular/core'; -import { interaction, EventsConditionType, layer, style, Collection, SelectFilterFunction, StyleFunction, Feature } from 'openlayers'; -import { MapComponent } from '../map.component'; - -@Component({ - selector: 'aol-interaction-select', - template: '' -}) -export class SelectInteractionComponent implements OnInit, OnDestroy { - instance: interaction.Select; - - - @Input() addCondition?: EventsConditionType; - @Input() condition?: EventsConditionType; - @Input() layers?: (layer.Layer[] | ((layer: layer.Layer) => boolean)); - @Input() style?: (style.Style | style.Style[] | StyleFunction); - @Input() removeCondition?: EventsConditionType; - @Input() toggleCondition?: EventsConditionType; - @Input() multi?: boolean; - @Input() features?: Collection; - @Input() filter?: SelectFilterFunction; - @Input() wrapX?: boolean; - - @Output() onChange = new EventEmitter(); - @Output() onSelect = new EventEmitter(); - @Output() onPropertyChange = new EventEmitter(); - - constructor(private map: MapComponent) { - } - - ngOnInit() { - this.instance = new interaction.Select(this); - - this.instance.on('change', (event: interaction.Select.Event) => this.onChange.emit(event)); - this.instance.on('select', (event: interaction.Select.Event) => this.onSelect.emit(event)); - this.instance.on('propertychange', (event: interaction.Select.Event) => this.onPropertyChange.emit(event)); - - this.map.instance.addInteraction(this.instance); - } - - ngOnDestroy() { - this.map.instance.removeInteraction(this.instance); - } -} diff --git a/src/components/layers/index.ts b/src/components/layers/index.ts deleted file mode 100644 index 86af3107..00000000 --- a/src/components/layers/index.ts +++ /dev/null @@ -1,6 +0,0 @@ -export * from './layer.component'; -export * from './layergroup.component'; -export * from './layerimage.component'; -export * from './layertile.component'; -export * from './layervector.component'; -export * from './layervectortile.component'; diff --git a/src/components/sources/cluster.component.ts b/src/components/sources/cluster.component.ts deleted file mode 100644 index 519be01a..00000000 --- a/src/components/sources/cluster.component.ts +++ /dev/null @@ -1,34 +0,0 @@ -import {Component, Host, Input, OnInit, forwardRef, ContentChild, AfterContentInit} from '@angular/core'; -import { source, Feature, geom } from 'openlayers'; -import { LayerVectorComponent } from '../layers'; -import { SourceComponent } from './source.component'; -import { SourceVectorComponent } from './vector.component'; - - -@Component({ - selector: 'aol-source-cluster', - template: ``, - providers: [ - { provide: SourceComponent, useExisting: forwardRef(() => SourceClusterComponent) } - ] -}) -export class SourceClusterComponent extends SourceComponent implements AfterContentInit { - instance: source.Cluster; - - @Input() distance: number; - @Input() geometryFunction?: ((feature: Feature) => geom.Point); - - @ContentChild(SourceVectorComponent) sourceVectorComponent: SourceVectorComponent; - source: source.Vector; - - constructor(@Host() layer: LayerVectorComponent) { - super(layer); - } - - ngAfterContentInit() { - this.source = this.sourceVectorComponent.instance; - - this.instance = new source.Cluster(this); - this.host.instance.setSource(this.instance); - } -} diff --git a/src/components/sources/geojson.component.ts b/src/components/sources/geojson.component.ts deleted file mode 100644 index dc779fd2..00000000 --- a/src/components/sources/geojson.component.ts +++ /dev/null @@ -1,32 +0,0 @@ -import { Component, Host, Input, OnInit, forwardRef } from '@angular/core'; -import { source, ProjectionLike, format } from 'openlayers'; -import { LayerVectorComponent } from '../layers'; -import { FormatComponent } from '../formats'; -import { SourceComponent } from './source.component'; - - -@Component({ - selector: 'aol-source-geojson', - template: ``, - providers: [ - { provide: SourceComponent, useExisting: forwardRef(() => SourceGeoJSONComponent) } - ] -}) -export class SourceGeoJSONComponent extends SourceComponent implements OnInit { - instance: source.Vector; - format: format.Feature; - @Input() defaultDataProjection: ProjectionLike; - @Input() featureProjection: ProjectionLike; - @Input() geometryName: string; - @Input() url: string; - - constructor( @Host() layer: LayerVectorComponent) { - super(layer); - } - - ngOnInit() { - this.format = new format.GeoJSON(this); - this.instance = new source.Vector(this); - this.host.instance.setSource(this.instance); - } -} diff --git a/src/components/sources/imagewms.component.ts b/src/components/sources/imagewms.component.ts deleted file mode 100644 index 6adcfc12..00000000 --- a/src/components/sources/imagewms.component.ts +++ /dev/null @@ -1,36 +0,0 @@ -import { Component, Host, Input, OnInit, forwardRef } from '@angular/core'; -import { AttributionLike, ImageLoadFunctionType, ProjectionLike, source } from 'openlayers'; -import { LayerImageComponent } from '../layers'; -import { SourceComponent } from './source.component'; - -@Component({ - selector: 'aol-source-imagewms', - template: ``, - providers: [ - { provide: SourceComponent, useExisting: forwardRef(() => SourceImageWMSComponent) } - ] -}) -export class SourceImageWMSComponent extends SourceComponent implements OnInit { - instance: source.ImageWMS; - - @Input() attributions: AttributionLike; - @Input() crossOrigin: string; - @Input() hidpi: boolean; - @Input() serverType: string; - @Input() imageLoadFunction?: ImageLoadFunctionType; - @Input() logo: (string | olx.LogoOptions); - @Input() params: Object; - @Input() projection: (ProjectionLike | string); - @Input() ratio: number; - @Input() resolutions: Array; - @Input() url: string; - - constructor(@Host() layer: LayerImageComponent) { - super(layer); - } - - ngOnInit() { - this.instance = new source.ImageWMS(this); - this.host.instance.setSource(this.instance); - } -} diff --git a/src/components/sources/index.ts b/src/components/sources/index.ts deleted file mode 100644 index 00b93a05..00000000 --- a/src/components/sources/index.ts +++ /dev/null @@ -1,15 +0,0 @@ -export * from './bingmaps.component'; -export * from './osm.component'; -export * from './source.component'; -export * from './vector.component'; -export * from './vectortile.component'; -export * from './xyz.component'; -export * from './tilewms.component'; -export * from './geojson.component'; -export * from './tilejson.component'; -export * from './tileutfgrid.component'; -export * from './tilewmts.component'; -export * from './imagewms.component'; -export * from './imagestatic.component'; -export * from './cluster.component'; -export * from './raster.component'; diff --git a/src/components/sources/osm.component.ts b/src/components/sources/osm.component.ts deleted file mode 100644 index d219fc31..00000000 --- a/src/components/sources/osm.component.ts +++ /dev/null @@ -1,40 +0,0 @@ -import {Component, Host, forwardRef, Input, AfterContentInit, Optional, OnInit} from '@angular/core'; -import { source, AttributionLike, TileLoadFunctionType } from 'openlayers'; -import { LayerTileComponent } from '../layers'; -import { SourceComponent } from './source.component'; -import { SourceXYZComponent } from './xyz.component'; -import {SourceRasterComponent} from './raster.component'; - -@Component({ - selector: 'aol-source-osm', - template: `
`, - providers: [ - { provide: SourceComponent, useExisting: forwardRef(() => SourceOsmComponent) } - ] -}) -export class SourceOsmComponent extends SourceXYZComponent implements AfterContentInit { - instance: source.OSM; - - @Input() attributions: AttributionLike; - @Input() cacheSize: number; - @Input() crossOrigin: string; - @Input() maxZoom: number; - @Input() opaque: boolean; - @Input() reprojectionErrorThreshold: number; - @Input() tileLoadFunction: TileLoadFunctionType; - @Input() url: string; - @Input() wrapX: boolean; - - constructor(@Host() @Optional() layer: LayerTileComponent, - @Host() @Optional() raster?: SourceRasterComponent) { - super(layer, raster); - } - - ngAfterContentInit() { - if (this.tileGridXYZ) { - this.tileGrid = this.tileGridXYZ.instance; - } - this.instance = new source.OSM(this); - this._register(this.instance); - } -} diff --git a/src/components/sources/tileutfgrid.component.ts b/src/components/sources/tileutfgrid.component.ts deleted file mode 100644 index 9b8cdb7c..00000000 --- a/src/components/sources/tileutfgrid.component.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { Component, Host, Input, OnInit, forwardRef } from '@angular/core'; -import { source } from 'openlayers'; -import { LayerTileComponent } from '../layers'; -import { SourceComponent } from './source.component'; - -@Component({ - selector: 'aol-source-tileutfgrid', - template: ``, - providers: [ - { provide: SourceComponent, useExisting: forwardRef(() => SourceTileUTFGridComponent) } - ] -}) -export class SourceTileUTFGridComponent extends SourceComponent implements OnInit { - instance: source.TileUTFGrid; - @Input() tileJSON: JSON; - - constructor(@Host() layer: LayerTileComponent) { - super(layer); - } - - ngOnInit() { - this.instance = new source.TileUTFGrid(this); - this.host.instance.setSource(this.instance); - } -} diff --git a/src/components/sources/tilewms.component.ts b/src/components/sources/tilewms.component.ts deleted file mode 100644 index f2aa0886..00000000 --- a/src/components/sources/tilewms.component.ts +++ /dev/null @@ -1,37 +0,0 @@ -import { Component, Host, Input, OnInit, forwardRef } from '@angular/core'; -import { source, TileLoadFunctionType, tilegrid } from 'openlayers'; -import { LayerTileComponent } from '../layers'; -import { SourceComponent } from './source.component'; - -@Component({ - selector: 'aol-source-tilewms', - template: ``, - providers: [ - { provide: SourceComponent, useExisting: forwardRef(() => SourceTileWMSComponent) } - ] -}) -export class SourceTileWMSComponent extends SourceComponent implements OnInit { - instance: source.TileWMS; - @Input() cacheSize: number; - @Input() crossOrigin: string; - @Input() gutter: number; - @Input() hidpi: boolean; - @Input() params: Object; - @Input() projection: string; - @Input() reprojectionErrorThreshold: number; - @Input() serverType: string; - @Input() tileGrid: tilegrid.TileGrid; - @Input() tileLoadFunction: TileLoadFunctionType; - @Input() url: string; - @Input() urls: string[]; - @Input() wrapX: boolean; - - constructor(@Host() layer: LayerTileComponent) { - super(layer); - } - - ngOnInit() { - this.instance = new source.TileWMS(this); - this.host.instance.setSource(this.instance); - } -} diff --git a/src/components/sources/tilewmts.component.ts b/src/components/sources/tilewmts.component.ts deleted file mode 100644 index b76ddbbc..00000000 --- a/src/components/sources/tilewmts.component.ts +++ /dev/null @@ -1,84 +0,0 @@ -import {Component, Host, Input, forwardRef, AfterContentInit, ContentChild, SimpleChanges} from '@angular/core'; -import { - TileLoadFunctionType, - tilegrid, - ProjectionLike, - source, - ImageTile, - TileCoord, - Tile -} from 'openlayers'; -import {LayerTileComponent} from '../layers'; -import {SourceComponent} from './source.component'; -import {TileGridWMTSComponent} from '../tilegridwmts.component'; - -@Component({ - selector: 'aol-source-tilewmts', - template: ``, - providers: [ - {provide: SourceComponent, useExisting: forwardRef(() => SourceTileWMTSComponent)} - ] -}) -export class SourceTileWMTSComponent extends SourceComponent implements AfterContentInit { - - instance: source.WMTS; - @Input() cacheSize?: number; - @Input() crossOrigin?: (string); - @Input() logo?: (string | olx.LogoOptions); - @Input() tileGrid: tilegrid.WMTS; - @Input() projection: ProjectionLike; - @Input() reprojectionErrorThreshold?: number; - @Input() requestEncoding?: (source.WMTSRequestEncoding | string); - @Input() layer: string; - @Input() style: string; - @Input() tileClass?: ((n: ImageTile, coords: TileCoord, state: Tile.State, s1: string, s2: string, type: TileLoadFunctionType) => any); - @Input() tilePixelRatio?: number; - @Input() version?: string; - @Input() format?: string; - @Input() matrixSet: string; - @Input() dimensions?: GlobalObject; - @Input() url?: string; - @Input() tileLoadFunction?: TileLoadFunctionType; - @Input() urls?: string[]; - @Input() wrapX?: boolean; - - @ContentChild(TileGridWMTSComponent) tileGridWMTS: TileGridWMTSComponent; - - constructor(@Host() layer: LayerTileComponent) { - super(layer); - } - - - ngOnChanges(changes: SimpleChanges) { - let properties: {[index: string]: any} = {}; - if (!this.instance) { - return; - } - for (let key in changes) { - if (changes.hasOwnProperty(key)) { - switch (key) { - case 'url': - this.url = changes[key].currentValue; - this.setLayerSource(); - break; - default: - break; - } - properties[key] = changes[key].currentValue; - } - } - this.instance.setProperties(properties, false); - } - - setLayerSource(): void { - this.instance = new source.WMTS(this); - this.host.instance.setSource(this.instance); - } - - ngAfterContentInit(): void { - if (this.tileGridWMTS) { - this.tileGrid = this.tileGridWMTS.instance; - this.setLayerSource(); - } - } -} diff --git a/src/components/style.components_old.ts b/src/components/style.components_old.ts deleted file mode 100644 index f620ab3b..00000000 --- a/src/components/style.components_old.ts +++ /dev/null @@ -1,90 +0,0 @@ -import { - Component, Directive, EventEmitter, Host, OnDestroy, OnChanges, AfterContentInit, - Input, Output, ContentChild, SimpleChanges -} from '@angular/core'; -import { style } from 'openlayers'; -import { FeatureComponent } from './feature.component'; - -@Directive({ - selector: 'aol-style-icon' -}) -export class StyleIconDirective implements OnChanges { - - // For usage info see: http://openlayers.org/en/latest/apidoc/ol.style.Icon.html - @Input() anchor: [number, number]; - @Input() anchorXUnits: style.IconAnchorUnits; - @Input() anchorYUnits: style.IconAnchorUnits; - @Input() anchorOrigin: style.IconOrigin; - @Input() color: [number, number, number, number]; - @Input() crossOrigin: style.IconOrigin; - @Input() img: string; - @Input() offset: [number, number]; - @Input() offsetOrigin: style.IconOrigin; - @Input() opacity: number; - @Input() scale: number; - @Input() snapToPixel: boolean; - @Input() rotateWithView: boolean; - @Input() rotation: number; - @Input() size: [number, number]; - @Input() imgSize: [number, number]; - @Input() src: string; - - @Output() onChanged = new EventEmitter(); - - constructor() { } - - ngOnChanges(changes: SimpleChanges) { - this.onChanged.emit(this.src); - } -} - -@Component({ - selector: 'aol-style', - template: `` -}) -export class StyleComponent implements OnDestroy, AfterContentInit { - private _host_: FeatureComponent; - private childSubscription$: any; - - @ContentChild(StyleIconDirective) iconStyleDirective: StyleIconDirective; - - constructor( @Host() feature: FeatureComponent) { - console.log('instancing aol-style'); - this._host_ = feature; - } - - ngAfterContentInit() { - this.update(); - this.childSubscription$ = this.iconStyleDirective.onChanged.subscribe((): void => { - this.update(); - }); - } - - update() { - this._host_.setStyle(new style.Style({ - image: new style.Icon({ - anchor: this.iconStyleDirective.anchor, - anchorOrigin: this.iconStyleDirective.anchorOrigin, - anchorXUnits: this.iconStyleDirective.anchorXUnits, - anchorYUnits: this.iconStyleDirective.anchorYUnits, - color: this.iconStyleDirective.color, - crossOrigin: this.iconStyleDirective.crossOrigin, - img: this.iconStyleDirective.img, - offset: this.iconStyleDirective.offset, - offsetOrigin: this.iconStyleDirective.offsetOrigin, - opacity: this.iconStyleDirective.opacity, - scale: this.iconStyleDirective.scale, - snapToPixel: this.iconStyleDirective.snapToPixel, - rotateWithView: this.iconStyleDirective.rotateWithView, - rotation: this.iconStyleDirective.rotation, - size: this.iconStyleDirective.size, - imgSize: this.iconStyleDirective.imgSize, - src: this.iconStyleDirective.src - }) - })); - } - - ngOnDestroy() { - this.childSubscription$.unsubscribe(); - } -} diff --git a/src/components/styles/index.ts b/src/components/styles/index.ts deleted file mode 100644 index 9678ddda..00000000 --- a/src/components/styles/index.ts +++ /dev/null @@ -1,6 +0,0 @@ -export * from './circle.component'; -export * from './fill.component'; -export * from './icon.component'; -export * from './stroke.component'; -export * from './style.component'; -export * from './text.component'; diff --git a/src/components/tilegridwmts.component.ts b/src/components/tilegridwmts.component.ts deleted file mode 100644 index ed4cab16..00000000 --- a/src/components/tilegridwmts.component.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { Component, Input, OnInit } from '@angular/core'; -import { tilegrid, Extent, Size, Coordinate } from 'openlayers'; -import { TileGridComponent } from './tilegrid.component'; - -@Component({ - selector: 'aol-tilegrid-wmts', - template: '' -}) -export class TileGridWMTSComponent extends TileGridComponent implements OnInit { - instance: tilegrid.WMTS; - - @Input() origin?: Coordinate; - @Input() origins?: Coordinate[]; - @Input() resolutions: number[]; - @Input() matrixIds: string[]; - @Input() sizes?: Size[]; - @Input() tileSizes?: ((number | Size)[]); - @Input() widths?: number[]; - - ngOnInit() { - this.instance = new tilegrid.WMTS(this); - } -} diff --git a/example/src/environments/environment.prod.ts b/src/environments/environment.prod.ts similarity index 61% rename from example/src/environments/environment.prod.ts rename to src/environments/environment.prod.ts index 3612073b..c9669790 100644 --- a/example/src/environments/environment.prod.ts +++ b/src/environments/environment.prod.ts @@ -1,3 +1,3 @@ export const environment = { - production: true + production: true, }; diff --git a/src/environments/environment.ts b/src/environments/environment.ts new file mode 100644 index 00000000..665463cc --- /dev/null +++ b/src/environments/environment.ts @@ -0,0 +1,15 @@ +// This file can be replaced during build by using the `fileReplacements` array. +// `ng build ---prod` replaces `environment.ts` with `environment.prod.ts`. +// The list of file replacements can be found in `angular.json`. + +export const environment = { + production: false, +}; + +/* + * In development mode, to ignore zone related error stack frames such as + * `zone.run`, `zoneDelegate.invokeTask` for easier debugging, you can + * import the following file, but please comment it out in production mode + * because it will have performance impact when throw error + */ +// import 'zone.js/dist/zone-error'; // Included with Angular CLI. diff --git a/src/favicon.ico b/src/favicon.ico new file mode 100644 index 00000000..8081c7ce Binary files /dev/null and b/src/favicon.ico differ diff --git a/example/src/index.html b/src/index.html similarity index 88% rename from example/src/index.html rename to src/index.html index 5eeef6ce..ffe4427c 100644 --- a/example/src/index.html +++ b/src/index.html @@ -2,7 +2,7 @@ - Example + DemoNgxOpenlayers diff --git a/src/index.ts b/src/index.ts deleted file mode 100644 index 1466f8aa..00000000 --- a/src/index.ts +++ /dev/null @@ -1,111 +0,0 @@ -import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { - MapComponent, ViewComponent, GraticuleComponent, - LayerGroupComponent, LayerTileComponent, LayerVectorComponent, LayerVectorTileComponent, LayerImageComponent, - SourceClusterComponent, SourceRasterComponent, - SourceBingmapsComponent, SourceOsmComponent, SourceVectorComponent, SourceVectorTileComponent, SourceXYZComponent, SourceTileUTFGridComponent, SourceTileWMSComponent, - SourceGeoJSONComponent, SourceTileWMTSComponent, SourceTileJSONComponent, SourceImageStaticComponent, SourceImageWMSComponent, FeatureComponent, - GeometryLinestringComponent, GeometryPointComponent, GeometryPolygonComponent, - CollectionCoordinatesComponent, CoordinateComponent, - StyleCircleComponent, StyleComponent, StyleFillComponent, StyleIconComponent, StyleStrokeComponent, StyleTextComponent, - ControlAttributionComponent, ControlFullScreenComponent, ControlMousePositionComponent, - ControlOverviewMapComponent, ControlRotateComponent, ControlScaleLineComponent, ControlZoomComponent, ControlZoomSliderComponent, - ControlZoomToExtentComponent, DefaultControlComponent, ControlComponent, - FormatMVTComponent, - TileGridComponent, TileGridWMTSComponent, - DefaultInteractionComponent, DragRotateInteractionComponent, DragRotateAndZoomInteractionComponent, - DoubleClickZoomInteractionComponent, DragAndDropInteractionComponent, DragBoxInteractionComponent, - DragPanInteractionComponent, DragZoomInteractionComponent, MouseWheelZoomInteractionComponent, - PinchZoomInteractionComponent, DrawInteractionComponent, SelectInteractionComponent, ModifyInteractionComponent, TranslateInteractionComponent, - OverlayComponent, - ContentComponent, - AttributionComponent, - AttributionsComponent -} from './components'; - -export * from './components'; - -const COMPONENTS = [ - MapComponent, - - ViewComponent, - GraticuleComponent, - - LayerGroupComponent, - LayerImageComponent, - LayerTileComponent, - LayerVectorComponent, - LayerVectorTileComponent, - - SourceClusterComponent, - SourceRasterComponent, - SourceOsmComponent, - SourceBingmapsComponent, - SourceVectorComponent, - SourceXYZComponent, - SourceVectorTileComponent, - SourceTileUTFGridComponent, - SourceTileWMSComponent, - SourceTileWMTSComponent, - SourceTileJSONComponent, - SourceGeoJSONComponent, - SourceImageStaticComponent, - SourceImageWMSComponent, - FeatureComponent, - GeometryLinestringComponent, - GeometryPointComponent, - GeometryPolygonComponent, - CoordinateComponent, - CollectionCoordinatesComponent, - - StyleComponent, - StyleCircleComponent, - StyleFillComponent, - StyleIconComponent, - StyleStrokeComponent, - StyleTextComponent, - - DefaultControlComponent, - ControlComponent, - ControlAttributionComponent, - ControlFullScreenComponent, - ControlMousePositionComponent, - ControlOverviewMapComponent, - ControlRotateComponent, - ControlScaleLineComponent, - ControlZoomComponent, - ControlZoomSliderComponent, - ControlZoomToExtentComponent, - - FormatMVTComponent, - TileGridComponent, - TileGridWMTSComponent, - - DefaultInteractionComponent, - DoubleClickZoomInteractionComponent, - DragAndDropInteractionComponent, - DragBoxInteractionComponent, - DragPanInteractionComponent, - DragRotateInteractionComponent, - DragRotateAndZoomInteractionComponent, - DragZoomInteractionComponent, - MouseWheelZoomInteractionComponent, - PinchZoomInteractionComponent, - DrawInteractionComponent, - SelectInteractionComponent, - ModifyInteractionComponent, - TranslateInteractionComponent, - - OverlayComponent, - ContentComponent, - AttributionComponent, - AttributionsComponent -]; - -@NgModule({ - declarations: COMPONENTS, - imports: [CommonModule], - exports: COMPONENTS -}) -export class AngularOpenlayersModule { } diff --git a/src/karma.conf.js b/src/karma.conf.js new file mode 100644 index 00000000..b6e00421 --- /dev/null +++ b/src/karma.conf.js @@ -0,0 +1,31 @@ +// Karma configuration file, see link for more information +// https://karma-runner.github.io/1.0/config/configuration-file.html + +module.exports = function (config) { + config.set({ + basePath: '', + frameworks: ['jasmine', '@angular-devkit/build-angular'], + plugins: [ + require('karma-jasmine'), + require('karma-chrome-launcher'), + require('karma-jasmine-html-reporter'), + require('karma-coverage-istanbul-reporter'), + require('@angular-devkit/build-angular/plugins/karma') + ], + client: { + clearContext: false // leave Jasmine Spec Runner output visible in browser + }, + coverageIstanbulReporter: { + dir: require('path').join(__dirname, '../coverage'), + reports: ['html', 'lcovonly'], + fixWebpackSourcePaths: true + }, + reporters: ['progress', 'kjhtml'], + port: 9876, + colors: true, + logLevel: config.LOG_INFO, + autoWatch: true, + browsers: ['Chrome'], + singleRun: false + }); +}; \ No newline at end of file diff --git a/example/src/main.ts b/src/main.ts similarity index 85% rename from example/src/main.ts rename to src/main.ts index 91ec6da5..5aa3bf02 100644 --- a/example/src/main.ts +++ b/src/main.ts @@ -8,5 +8,6 @@ if (environment.production) { enableProdMode(); } -platformBrowserDynamic().bootstrapModule(AppModule) +platformBrowserDynamic() + .bootstrapModule(AppModule) .catch(err => console.log(err)); diff --git a/example/src/polyfills.ts b/src/polyfills.ts similarity index 68% rename from example/src/polyfills.ts rename to src/polyfills.ts index d68672ff..fadc5f5e 100644 --- a/example/src/polyfills.ts +++ b/src/polyfills.ts @@ -40,26 +40,36 @@ /** IE10 and IE11 requires the following for the Reflect API. */ // import 'core-js/es6/reflect'; - /** Evergreen browsers require these. **/ // Used for reflect-metadata in JIT. If you use AOT (and only Angular decorators), you can remove. import 'core-js/es7/reflect'; - /** - * Required to support Web Animations `@angular/platform-browser/animations`. - * Needed for: All but Chrome, Firefox and Opera. http://caniuse.com/#feat=web-animation + * Web Animations `@angular/platform-browser/animations` + * Only required if AnimationBuilder is used within the application and using IE/Edge or Safari. + * Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0). **/ // import 'web-animations-js'; // Run `npm install --save web-animations-js`. +/** + * By default, zone.js will patch all possible macroTask and DomEvents + * user can disable parts of macroTask/DomEvents patch by setting following flags + */ + +// (window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame +// (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick +// (window as any).__zone_symbol__BLACK_LISTED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames +/* + * in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js + * with the following flag, it will bypass `zone.js` patch for IE/Edge + */ +// (window as any).__Zone_enable_cross_context_check = true; /*************************************************************************************************** * Zone JS is required by default for Angular itself. */ -import 'zone.js/dist/zone'; // Included with Angular CLI. - - +import 'zone.js/dist/zone'; // Included with Angular CLI. /*************************************************************************************************** * APPLICATION IMPORTS diff --git a/src/styles.css b/src/styles.css new file mode 100644 index 00000000..85f80da9 --- /dev/null +++ b/src/styles.css @@ -0,0 +1,10 @@ +/* You can add global styles to this file, and also import other style files */ +html, body { + height: 100%; + overflow: hidden; +} + +body { + font-family: "Roboto", serif; + margin: 0; +} diff --git a/src/test.ts b/src/test.ts new file mode 100644 index 00000000..da9049dc --- /dev/null +++ b/src/test.ts @@ -0,0 +1,14 @@ +// This file is required by karma.conf.js and loads recursively all the .spec and framework files + +import 'zone.js/dist/zone-testing'; +import { getTestBed } from '@angular/core/testing'; +import { BrowserDynamicTestingModule, platformBrowserDynamicTesting } from '@angular/platform-browser-dynamic/testing'; + +declare const require: any; + +// First, initialize the Angular testing environment. +getTestBed().initTestEnvironment(BrowserDynamicTestingModule, platformBrowserDynamicTesting()); +// Then we find all the tests. +const context = require.context('./', true, /\.spec\.ts$/); +// And load the modules. +context.keys().map(context); diff --git a/example/src/tsconfig.app.json b/src/tsconfig.app.json similarity index 82% rename from example/src/tsconfig.app.json rename to src/tsconfig.app.json index 39ba8dba..722c370d 100644 --- a/example/src/tsconfig.app.json +++ b/src/tsconfig.app.json @@ -2,12 +2,11 @@ "extends": "../tsconfig.json", "compilerOptions": { "outDir": "../out-tsc/app", - "baseUrl": "./", "module": "es2015", "types": [] }, "exclude": [ - "test.ts", + "src/test.ts", "**/*.spec.ts" ] } diff --git a/src/tsconfig.spec.json b/src/tsconfig.spec.json new file mode 100644 index 00000000..8f7cedec --- /dev/null +++ b/src/tsconfig.spec.json @@ -0,0 +1,19 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "outDir": "../out-tsc/spec", + "module": "commonjs", + "types": [ + "jasmine", + "node" + ] + }, + "files": [ + "test.ts", + "polyfills.ts" + ], + "include": [ + "**/*.spec.ts", + "**/*.d.ts" + ] +} diff --git a/src/tslint.json b/src/tslint.json new file mode 100644 index 00000000..52e2c1a5 --- /dev/null +++ b/src/tslint.json @@ -0,0 +1,17 @@ +{ + "extends": "../tslint.json", + "rules": { + "directive-selector": [ + true, + "attribute", + "app", + "camelCase" + ], + "component-selector": [ + true, + "element", + "app", + "kebab-case" + ] + } +} diff --git a/tsconfig.json b/tsconfig.json index 843d10ce..8ce094dd 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,25 +1,29 @@ { - "compilerOptions": { - "noImplicitAny": true, - "module": "commonjs", - "moduleResolution": "node", - "target": "es5", - "lib": ["es6", "dom", "es2015.iterable"], - "emitDecoratorMetadata": true, - "experimentalDecorators": true, - "sourceMap": true, - "declaration": true, - "outDir": "./dist" - }, - "files": [ - "src/index.ts" + "compileOnSave": false, + "compilerOptions": { + "baseUrl": "./", + "outDir": "./dist/out-tsc", + "sourceMap": true, + "declaration": false, + "moduleResolution": "node", + "emitDecoratorMetadata": true, + "experimentalDecorators": true, + "target": "es5", + "typeRoots": [ + "node_modules/@types", + "projects/ngx-openlayers/node_modules/@types" ], - "exclude": [ - "node_modules", - "dist" + "lib": [ + "es2017", + "dom" ], - "angularCompilerOptions": { - "genDir": "aot", - "debug": true + "paths": { + "ngx-openlayers": [ + "dist/ngx-openlayers" + ], + "openlayers": [ + "projects/ngx-openlayers/node_modules/openlayers" + ] } -} \ No newline at end of file + } +} diff --git a/tslint-prettier.json b/tslint-prettier.json new file mode 100644 index 00000000..12ebab25 --- /dev/null +++ b/tslint-prettier.json @@ -0,0 +1,7 @@ +{ + "extends": [ + "./tslint.json", + "tslint-config-prettier", + "tslint-plugin-prettier" + ] +} diff --git a/tslint.json b/tslint.json index 53dc44f1..8989088d 100644 --- a/tslint.json +++ b/tslint.json @@ -1,20 +1,33 @@ { "rulesDirectory": [ - "node_modules/codelyzer" + "node_modules/codelyzer", + "tslint-plugin-prettier" ], "rules": { + "prettier": true, + "arrow-return-shorthand": true, + "callable-types": true, "class-name": true, "comment-format": [ true, "check-space" ], "curly": true, + "deprecation": { + "severity": "warn" + }, "eofline": true, "forin": true, + "import-blacklist": [ + true, + "rxjs/Rx" + ], + "import-spacing": true, "indent": [ true, "spaces" ], + "interface-over-type-literal": true, "label-position": true, "max-line-length": [ true, @@ -23,8 +36,14 @@ "member-access": false, "member-ordering": [ true, - "static-before-instance", - "variables-before-functions" + { + "order": [ + "static-field", + "instance-field", + "static-method", + "instance-method" + ] + } ], "no-arg": true, "no-bitwise": true, @@ -38,14 +57,23 @@ ], "no-construct": true, "no-debugger": true, - "no-duplicate-variable": true, + "no-duplicate-super": true, "no-empty": false, + "no-empty-interface": true, "no-eval": true, - "no-inferrable-types": true, + "no-inferrable-types": [ + true, + "ignore-params" + ], + "no-misused-new": true, + "no-non-null-assertion": true, "no-shadowed-variable": true, "no-string-literal": false, + "no-string-throw": true, "no-switch-case-fall-through": true, "no-trailing-whitespace": true, + "no-unnecessary-initializer": true, + "no-unused-expression": true, "no-use-before-declare": true, "no-var-keyword": true, "object-literal-sort-keys": false, @@ -56,12 +84,14 @@ "check-else", "check-whitespace" ], + "prefer-const": true, "quotemark": [ true, "single" ], "radix": true, "semicolon": [ + true, "always" ], "triple-equals": [ @@ -78,6 +108,7 @@ "variable-declaration": "nospace" } ], + "unified-signatures": true, "variable-name": false, "whitespace": [ true, @@ -87,6 +118,7 @@ "check-separator", "check-type" ], + "no-output-on-prefix": false, "use-input-property-decorator": true, "use-output-property-decorator": true, "use-host-property-decorator": true, @@ -95,6 +127,7 @@ "use-life-cycle-interface": true, "use-pipe-transform-interface": true, "component-class-suffix": true, - "directive-class-suffix": true + "directive-class-suffix": true, + "no-unused-variable": [true, {"ignore-pattern": "^_"}] } }