├── .editorconfig
├── .github
└── workflows
│ └── main.yml
├── .gitignore
├── .npmignore
├── .travis.yml
├── LICENSE.md
├── README.MD
├── dist
├── components
│ ├── attribution.component.d.ts
│ ├── attribution.component.js
│ ├── attribution.component.js.map
│ ├── attribution.component.metadata.json
│ ├── attributions.component.d.ts
│ ├── attributions.component.js
│ ├── attributions.component.js.map
│ ├── attributions.component.metadata.json
│ ├── content.component.d.ts
│ ├── content.component.js
│ ├── content.component.js.map
│ ├── content.component.metadata.json
│ ├── control.components.d.ts
│ ├── control.components.js
│ ├── control.components.js.map
│ ├── control.components.metadata.json
│ ├── controls
│ │ ├── attribution.component.d.ts
│ │ ├── attribution.component.js
│ │ ├── attribution.component.js.map
│ │ ├── attribution.component.metadata.json
│ │ ├── control.component.d.ts
│ │ ├── control.component.js
│ │ ├── control.component.js.map
│ │ ├── control.component.metadata.json
│ │ ├── default.component.d.ts
│ │ ├── default.component.js
│ │ ├── default.component.js.map
│ │ ├── default.component.metadata.json
│ │ ├── fullscreen.component.d.ts
│ │ ├── fullscreen.component.js
│ │ ├── fullscreen.component.js.map
│ │ ├── fullscreen.component.metadata.json
│ │ ├── index.d.ts
│ │ ├── index.js
│ │ ├── index.js.map
│ │ ├── index.metadata.json
│ │ ├── mouseposition.component.d.ts
│ │ ├── mouseposition.component.js
│ │ ├── mouseposition.component.js.map
│ │ ├── mouseposition.component.metadata.json
│ │ ├── overviewmap.component.d.ts
│ │ ├── overviewmap.component.js
│ │ ├── overviewmap.component.js.map
│ │ ├── overviewmap.component.metadata.json
│ │ ├── rotate.component.d.ts
│ │ ├── rotate.component.js
│ │ ├── rotate.component.js.map
│ │ ├── rotate.component.metadata.json
│ │ ├── scaleline.component.d.ts
│ │ ├── scaleline.component.js
│ │ ├── scaleline.component.js.map
│ │ ├── scaleline.component.metadata.json
│ │ ├── zoom.component.d.ts
│ │ ├── zoom.component.js
│ │ ├── zoom.component.js.map
│ │ ├── zoom.component.metadata.json
│ │ ├── zoomslider.component.d.ts
│ │ ├── zoomslider.component.js
│ │ ├── zoomslider.component.js.map
│ │ ├── zoomslider.component.metadata.json
│ │ ├── zoomtoextent.component.d.ts
│ │ ├── zoomtoextent.component.js
│ │ ├── zoomtoextent.component.js.map
│ │ └── zoomtoextent.component.metadata.json
│ ├── coordinate.component.d.ts
│ ├── coordinate.component.js
│ ├── coordinate.component.js.map
│ ├── coordinate.component.metadata.json
│ ├── feature.component.d.ts
│ ├── feature.component.js
│ ├── feature.component.js.map
│ ├── feature.component.metadata.json
│ ├── format.component.d.ts
│ ├── format.component.js
│ ├── format.component.js.map
│ ├── format.component.metadata.json
│ ├── formats
│ │ ├── format.component.d.ts
│ │ ├── format.component.js
│ │ ├── format.component.js.map
│ │ ├── format.component.metadata.json
│ │ ├── index.d.ts
│ │ ├── index.js
│ │ ├── index.js.map
│ │ ├── index.metadata.json
│ │ ├── mvt.component.d.ts
│ │ ├── mvt.component.js
│ │ ├── mvt.component.js.map
│ │ └── mvt.component.metadata.json
│ ├── geometry.components.d.ts
│ ├── geometry.components.js
│ ├── geometry.components.js.map
│ ├── geometry.components.metadata.json
│ ├── index.d.ts
│ ├── index.js
│ ├── index.js.map
│ ├── index.metadata.json
│ ├── interactions
│ │ ├── default.component.d.ts
│ │ ├── default.component.js
│ │ ├── default.component.js.map
│ │ ├── default.component.metadata.json
│ │ ├── doubleclickzoom.component.d.ts
│ │ ├── doubleclickzoom.component.js
│ │ ├── doubleclickzoom.component.js.map
│ │ ├── doubleclickzoom.component.metadata.json
│ │ ├── draganddrop.component.d.ts
│ │ ├── draganddrop.component.js
│ │ ├── draganddrop.component.js.map
│ │ ├── draganddrop.component.metadata.json
│ │ ├── dragbox.component.d.ts
│ │ ├── dragbox.component.js
│ │ ├── dragbox.component.js.map
│ │ ├── dragbox.component.metadata.json
│ │ ├── dragpan.component.d.ts
│ │ ├── dragpan.component.js
│ │ ├── dragpan.component.js.map
│ │ ├── dragpan.component.metadata.json
│ │ ├── dragrotate.component.d.ts
│ │ ├── dragrotate.component.js
│ │ ├── dragrotate.component.js.map
│ │ ├── dragrotate.component.metadata.json
│ │ ├── dragrotateandzoom.component.d.ts
│ │ ├── dragrotateandzoom.component.js
│ │ ├── dragrotateandzoom.component.js.map
│ │ ├── dragrotateandzoom.component.metadata.json
│ │ ├── dragzoom.component.d.ts
│ │ ├── dragzoom.component.js
│ │ ├── dragzoom.component.js.map
│ │ ├── dragzoom.component.metadata.json
│ │ ├── draw.component.d.ts
│ │ ├── draw.component.js
│ │ ├── draw.component.js.map
│ │ ├── draw.component.metadata.json
│ │ ├── index.d.ts
│ │ ├── index.js
│ │ ├── index.js.map
│ │ ├── index.metadata.json
│ │ ├── mousewheelzoom.component.d.ts
│ │ ├── mousewheelzoom.component.js
│ │ ├── mousewheelzoom.component.js.map
│ │ ├── mousewheelzoom.component.metadata.json
│ │ ├── pinchzoom.component.d.ts
│ │ ├── pinchzoom.component.js
│ │ ├── pinchzoom.component.js.map
│ │ └── pinchzoom.component.metadata.json
│ ├── layer.components.d.ts
│ ├── layer.components.js
│ ├── layer.components.js.map
│ ├── layer.components.metadata.json
│ ├── layers
│ │ ├── index.d.ts
│ │ ├── index.js
│ │ ├── index.js.map
│ │ ├── index.metadata.json
│ │ ├── layer.component.d.ts
│ │ ├── layer.component.js
│ │ ├── layer.component.js.map
│ │ ├── layer.component.metadata.json
│ │ ├── layertile.component.d.ts
│ │ ├── layertile.component.js
│ │ ├── layertile.component.js.map
│ │ ├── layertile.component.metadata.json
│ │ ├── layervector.component.d.ts
│ │ ├── layervector.component.js
│ │ ├── layervector.component.js.map
│ │ ├── layervector.component.metadata.json
│ │ ├── layervectortile.component.d.ts
│ │ ├── layervectortile.component.js
│ │ ├── layervectortile.component.js.map
│ │ └── layervectortile.component.metadata.json
│ ├── map.component.d.ts
│ ├── map.component.js
│ ├── map.component.js.map
│ ├── map.component.metadata.json
│ ├── overlay.component.d.ts
│ ├── overlay.component.js
│ ├── overlay.component.js.map
│ ├── overlay.component.metadata.json
│ ├── source.components.d.ts
│ ├── source.components.js
│ ├── source.components.js.map
│ ├── source.components.metadata.json
│ ├── sources
│ │ ├── bingmaps.component.d.ts
│ │ ├── bingmaps.component.js
│ │ ├── bingmaps.component.js.map
│ │ ├── bingmaps.component.metadata.json
│ │ ├── geojson.component.d.ts
│ │ ├── geojson.component.js
│ │ ├── geojson.component.js.map
│ │ ├── geojson.component.metadata.json
│ │ ├── index.d.ts
│ │ ├── index.js
│ │ ├── index.js.map
│ │ ├── index.metadata.json
│ │ ├── osm.component.d.ts
│ │ ├── osm.component.js
│ │ ├── osm.component.js.map
│ │ ├── osm.component.metadata.json
│ │ ├── source.component.d.ts
│ │ ├── source.component.js
│ │ ├── source.component.js.map
│ │ ├── source.component.metadata.json
│ │ ├── tilewms.component.d.ts
│ │ ├── tilewms.component.js
│ │ ├── tilewms.component.js.map
│ │ ├── tilewms.component.metadata.json
│ │ ├── vector.component.d.ts
│ │ ├── vector.component.js
│ │ ├── vector.component.js.map
│ │ ├── vector.component.metadata.json
│ │ ├── vectortile.component.d.ts
│ │ ├── vectortile.component.js
│ │ ├── vectortile.component.js.map
│ │ ├── vectortile.component.metadata.json
│ │ ├── xyz.component.d.ts
│ │ ├── xyz.component.js
│ │ ├── xyz.component.js.map
│ │ └── xyz.component.metadata.json
│ ├── style.components.d.ts
│ ├── style.components.js
│ ├── style.components.js.map
│ ├── style.components.metadata.json
│ ├── styles
│ │ ├── circle.component.d.ts
│ │ ├── circle.component.js
│ │ ├── circle.component.js.map
│ │ ├── circle.component.metadata.json
│ │ ├── fill.component.d.ts
│ │ ├── fill.component.js
│ │ ├── fill.component.js.map
│ │ ├── fill.component.metadata.json
│ │ ├── icon.component.d.ts
│ │ ├── icon.component.js
│ │ ├── icon.component.js.map
│ │ ├── icon.component.metadata.json
│ │ ├── index.d.ts
│ │ ├── index.js
│ │ ├── index.js.map
│ │ ├── index.metadata.json
│ │ ├── stroke.component.d.ts
│ │ ├── stroke.component.js
│ │ ├── stroke.component.js.map
│ │ ├── stroke.component.metadata.json
│ │ ├── style.component.d.ts
│ │ ├── style.component.js
│ │ ├── style.component.js.map
│ │ ├── style.component.metadata.json
│ │ ├── text.component.d.ts
│ │ ├── text.component.js
│ │ ├── text.component.js.map
│ │ └── text.component.metadata.json
│ ├── tilegrid.component.d.ts
│ ├── tilegrid.component.js
│ ├── tilegrid.component.js.map
│ ├── tilegrid.component.metadata.json
│ ├── view.component.d.ts
│ ├── view.component.js
│ ├── view.component.js.map
│ └── view.component.metadata.json
├── index.d.ts
├── index.js
├── index.js.map
└── index.metadata.json
├── documentation
└── README.md
├── example
├── .angular-cli.json
├── .gitignore
├── package.json
├── src
│ ├── app
│ │ ├── app.component.css
│ │ ├── app.component.html
│ │ ├── app.component.ts
│ │ ├── app.module.ts
│ │ ├── app.routing.ts
│ │ ├── basic
│ │ │ ├── basic.component.html
│ │ │ └── basic.component.ts
│ │ ├── cluster
│ │ │ ├── cluster.component.html
│ │ │ └── cluster.component.ts
│ │ └── raster
│ │ │ ├── raster.component.css
│ │ │ ├── raster.component.html
│ │ │ └── raster.component.ts
│ ├── assets
│ │ ├── .gitkeep
│ │ └── marker.png
│ ├── environments
│ │ ├── environment.prod.ts
│ │ └── environment.ts
│ ├── index.html
│ ├── main.ts
│ ├── polyfills.ts
│ ├── styles.css
│ ├── tsconfig.app.json
│ └── typings.d.ts
└── tsconfig.json
├── package.json
├── src
├── components
│ ├── attribution.component.ts
│ ├── attributions.component.ts
│ ├── content.component.ts
│ ├── controls
│ │ ├── attribution.component.ts
│ │ ├── control.component.ts
│ │ ├── default.component.ts
│ │ ├── fullscreen.component.ts
│ │ ├── index.ts
│ │ ├── mouseposition.component.ts
│ │ ├── overviewmap.component.ts
│ │ ├── rotate.component.ts
│ │ ├── scaleline.component.ts
│ │ ├── zoom.component.ts
│ │ ├── zoomslider.component.ts
│ │ └── zoomtoextent.component.ts
│ ├── coordinate.component.ts
│ ├── feature.component.ts
│ ├── formats
│ │ ├── format.component.ts
│ │ ├── index.ts
│ │ └── mvt.component.ts
│ ├── geometry.components.ts
│ ├── graticule.component.ts
│ ├── index.ts
│ ├── interactions
│ │ ├── default.component.ts
│ │ ├── doubleclickzoom.component.ts
│ │ ├── draganddrop.component.ts
│ │ ├── dragbox.component.ts
│ │ ├── dragpan.component.ts
│ │ ├── dragrotate.component.ts
│ │ ├── dragrotateandzoom.component.ts
│ │ ├── dragzoom.component.ts
│ │ ├── draw.component.ts
│ │ ├── index.ts
│ │ ├── modify.component.ts
│ │ ├── mousewheelzoom.component.ts
│ │ ├── pinchzoom.component.js
│ │ ├── pinchzoom.component.ts
│ │ ├── select.component.ts
│ │ └── translate.component.ts
│ ├── layers
│ │ ├── index.ts
│ │ ├── layer.component.ts
│ │ ├── layergroup.component.ts
│ │ ├── layerimage.component.ts
│ │ ├── layertile.component.ts
│ │ ├── layervector.component.ts
│ │ └── layervectortile.component.ts
│ ├── map.component.ts
│ ├── overlay.component.ts
│ ├── sources
│ │ ├── bingmaps.component.ts
│ │ ├── cluster.component.ts
│ │ ├── geojson.component.ts
│ │ ├── imagestatic.component.ts
│ │ ├── imagewms.component.ts
│ │ ├── index.ts
│ │ ├── osm.component.ts
│ │ ├── raster.component.ts
│ │ ├── source.component.ts
│ │ ├── tilejson.component.ts
│ │ ├── tileutfgrid.component.ts
│ │ ├── tilewms.component.ts
│ │ ├── tilewmts.component.ts
│ │ ├── vector.component.ts
│ │ ├── vectortile.component.ts
│ │ └── xyz.component.ts
│ ├── style.components_old.ts
│ ├── styles
│ │ ├── circle.component.ts
│ │ ├── fill.component.ts
│ │ ├── icon.component.ts
│ │ ├── index.ts
│ │ ├── stroke.component.ts
│ │ ├── style.component.ts
│ │ └── text.component.ts
│ ├── tilegrid.component.ts
│ ├── tilegridwmts.component.ts
│ └── view.component.ts
└── index.ts
├── tsconfig.json
└── tslint.json
/.editorconfig:
--------------------------------------------------------------------------------
1 | # Editor configuration, see http://editorconfig.org
2 | root = true
3 |
4 | [*]
5 | charset = utf-8
6 | indent_style = space
7 | indent_size = 2
8 | end_of_line = lf
9 | insert_final_newline = true
10 | trim_trailing_whitespace = true
11 |
12 | [*.md]
13 | max_line_length = 0
14 | trim_trailing_whitespace = false
15 |
--------------------------------------------------------------------------------
/.github/workflows/main.yml:
--------------------------------------------------------------------------------
1 | on:
2 | push:
3 |
4 | jobs:
5 | hello:
6 | runs-on: ubuntu-latest
7 | steps:
8 | - run: echo hello
9 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Node
2 | node_modules/*
3 | npm-debug.log
4 |
5 | # compiled output
6 | /dist
7 |
8 | # JetBrains
9 | .idea
10 | .project
11 | .settings
12 | .idea/*
13 | *.iml
14 |
15 | # Visual Studio Code
16 | .vscode/
17 |
18 | # Windows
19 | Thumbs.db
20 | Desktop.ini
21 |
22 | # Mac
23 | .DS_Store
24 | **/.DS_Store
25 |
26 | # Angular
27 | /aot
28 |
--------------------------------------------------------------------------------
/.npmignore:
--------------------------------------------------------------------------------
1 | src
2 | example
3 | tsconfig.json
4 | tslint.json
5 | *.tgz
6 | node_modules/*
7 | npm-debug.log
8 |
9 | # editors files
10 | .idea
11 | .project
12 | .settings
13 | .idea/*
14 | *.iml
15 |
16 | # Windows
17 | Thumbs.db
18 | Desktop.ini
19 |
20 | # Mac
21 | .DS_Store
22 | **/.DS_Store
23 |
24 | # Angular
25 | /aot
26 |
--------------------------------------------------------------------------------
/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | sudo: false
3 | node_js:
4 | - '6'
5 |
6 | env:
7 | - NPM_CONFIG_LOGLEVEL='warn'
8 |
9 | jobs:
10 | include:
11 | - stage: build library
12 | before_script:
13 | - rm -rf lib
14 | script:
15 | - npm pack
16 | - mkdir -p lib
17 | - cp *.tgz lib/
18 | cache:
19 | directories:
20 | - lib
21 | - stage: build demo
22 | before_install:
23 | - cd example
24 | install:
25 | - npm i
26 | script:
27 | - npm un -S ngx-openlayers
28 | - cp -r ../lib .
29 | - npm i -S lib/*.tgz
30 | - npm run build
31 | cache:
32 | directories:
33 | - lib
34 | - stage: deploy library release
35 | script: ignore
36 | deploy:
37 | - provider: releases
38 | api_key: $GITHUB_OAUTH_TOKEN
39 | file_glob: true
40 | file: lib/*
41 | skip_cleanup: true
42 | on:
43 | tags: true
44 | - stage: deploy demo pages
45 | script: ignore
46 | deploy:
47 | - provider: pages
48 | local_dir: dist
49 | skip_cleanup: true
50 | github_token: $GITHUB_OAUTH_TOKEN
51 | on:
52 | tags: true
53 | - stage: publish library release
54 | deploy:
55 | provider: npm
56 | email: $NPM_EMAIL
57 | api_key: $NPM_TOKEN
58 | on:
59 | tags: true
60 | skip_cleanup: true
61 |
62 |
--------------------------------------------------------------------------------
/dist/components/attribution.component.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | import { ElementRef, OnInit } from '@angular/core';
3 | import { Attribution } from 'openlayers';
4 | export declare class AttributionComponent implements OnInit {
5 | private elementRef;
6 | instance: Attribution;
7 | html: string;
8 | constructor(elementRef: ElementRef);
9 | ngOnInit(): void;
10 | }
11 |
--------------------------------------------------------------------------------
/dist/components/attribution.component.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | Object.defineProperty(exports, "__esModule", { value: true });
3 | var core_1 = require("@angular/core");
4 | var openlayers_1 = require("openlayers");
5 | var AttributionComponent = (function () {
6 | function AttributionComponent(elementRef) {
7 | this.elementRef = elementRef;
8 | }
9 | AttributionComponent.prototype.ngOnInit = function () {
10 | this.html = this.elementRef.nativeElement.innerHTML;
11 | this.instance = new openlayers_1.Attribution(this);
12 | };
13 | return AttributionComponent;
14 | }());
15 | AttributionComponent.decorators = [
16 | { type: core_1.Component, args: [{
17 | selector: 'aol-attribution',
18 | template: ''
19 | },] },
20 | ];
21 | /** @nocollapse */
22 | AttributionComponent.ctorParameters = function () { return [
23 | { type: core_1.ElementRef, },
24 | ]; };
25 | exports.AttributionComponent = AttributionComponent;
26 | //# sourceMappingURL=attribution.component.js.map
--------------------------------------------------------------------------------
/dist/components/attribution.component.js.map:
--------------------------------------------------------------------------------
1 | {"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":""}
--------------------------------------------------------------------------------
/dist/components/attribution.component.metadata.json:
--------------------------------------------------------------------------------
1 | [{"__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"}]}}}}]
--------------------------------------------------------------------------------
/dist/components/attributions.component.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | import { AfterViewInit, QueryList } from '@angular/core';
3 | import { Attribution } from 'openlayers';
4 | import { SourceComponent } from './sources/source.component';
5 | import { AttributionComponent } from './attribution.component';
6 | export declare class AttributionsComponent implements AfterViewInit {
7 | private source;
8 | instance: Array;
9 | attributions: QueryList;
10 | constructor(source: SourceComponent);
11 | ngAfterViewInit(): void;
12 | }
13 |
--------------------------------------------------------------------------------
/dist/components/attributions.component.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | Object.defineProperty(exports, "__esModule", { value: true });
3 | var core_1 = require("@angular/core");
4 | var source_component_1 = require("./sources/source.component");
5 | var attribution_component_1 = require("./attribution.component");
6 | var AttributionsComponent = (function () {
7 | function AttributionsComponent(source) {
8 | this.source = source;
9 | }
10 | /* we can do this at the very end */
11 | AttributionsComponent.prototype.ngAfterViewInit = function () {
12 | if (this.attributions.length) {
13 | this.instance = this.attributions.map(function (cmp) { return cmp.instance; });
14 | // console.log('setting attributions:', this.instance);
15 | this.source.instance.setAttributions(this.instance);
16 | }
17 | };
18 | return AttributionsComponent;
19 | }());
20 | AttributionsComponent.decorators = [
21 | { type: core_1.Component, args: [{
22 | selector: 'aol-attributions',
23 | template: ''
24 | },] },
25 | ];
26 | /** @nocollapse */
27 | AttributionsComponent.ctorParameters = function () { return [
28 | { type: source_component_1.SourceComponent, decorators: [{ type: core_1.Host },] },
29 | ]; };
30 | AttributionsComponent.propDecorators = {
31 | 'attributions': [{ type: core_1.ContentChildren, args: [attribution_component_1.AttributionComponent,] },],
32 | };
33 | exports.AttributionsComponent = AttributionsComponent;
34 | //# sourceMappingURL=attributions.component.js.map
--------------------------------------------------------------------------------
/dist/components/attributions.component.js.map:
--------------------------------------------------------------------------------
1 | {"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":""}
--------------------------------------------------------------------------------
/dist/components/content.component.d.ts:
--------------------------------------------------------------------------------
1 | import { ElementRef } from '@angular/core';
2 | export declare class ContentComponent {
3 | elementRef: ElementRef;
4 | constructor(elementRef: ElementRef);
5 | }
6 |
--------------------------------------------------------------------------------
/dist/components/content.component.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | Object.defineProperty(exports, "__esModule", { value: true });
3 | var core_1 = require("@angular/core");
4 | var ContentComponent = (function () {
5 | function ContentComponent(elementRef) {
6 | this.elementRef = elementRef;
7 | }
8 | return ContentComponent;
9 | }());
10 | ContentComponent.decorators = [
11 | { type: core_1.Component, args: [{
12 | selector: 'aol-content',
13 | template: ''
14 | },] },
15 | ];
16 | /** @nocollapse */
17 | ContentComponent.ctorParameters = function () { return [
18 | { type: core_1.ElementRef, },
19 | ]; };
20 | exports.ContentComponent = ContentComponent;
21 | //# sourceMappingURL=content.component.js.map
--------------------------------------------------------------------------------
/dist/components/content.component.js.map:
--------------------------------------------------------------------------------
1 | {"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":""}
--------------------------------------------------------------------------------
/dist/components/content.component.metadata.json:
--------------------------------------------------------------------------------
1 | [{"__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"}]}]}}}}]
--------------------------------------------------------------------------------
/dist/components/controls/attribution.component.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | import { ElementRef, OnDestroy, OnInit } from '@angular/core';
3 | import { control } from 'openlayers';
4 | import { MapComponent } from '../map.component';
5 | export declare class ControlAttributionComponent implements OnInit, OnDestroy {
6 | private map;
7 | private element;
8 | componentType: string;
9 | instance: control.Attribution;
10 | target: Element;
11 | collapsible: boolean;
12 | constructor(map: MapComponent, element: ElementRef);
13 | ngOnInit(): void;
14 | ngOnDestroy(): void;
15 | }
16 |
--------------------------------------------------------------------------------
/dist/components/controls/attribution.component.js.map:
--------------------------------------------------------------------------------
1 | {"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":""}
--------------------------------------------------------------------------------
/dist/components/controls/attribution.component.metadata.json:
--------------------------------------------------------------------------------
1 | [{"__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"}]}}}}]
--------------------------------------------------------------------------------
/dist/components/controls/control.component.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | import { OnDestroy, OnInit } from '@angular/core';
3 | import { control } from 'openlayers';
4 | import { MapComponent } from '../map.component';
5 | import { ContentComponent } from '../content.component';
6 | export declare class ControlComponent implements OnInit, OnDestroy {
7 | private map;
8 | componentType: string;
9 | instance: control.Control;
10 | element: Element;
11 | content: ContentComponent;
12 | constructor(map: MapComponent);
13 | ngOnInit(): void;
14 | ngOnDestroy(): void;
15 | }
16 |
--------------------------------------------------------------------------------
/dist/components/controls/control.component.js.map:
--------------------------------------------------------------------------------
1 | {"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":""}
--------------------------------------------------------------------------------
/dist/components/controls/control.component.metadata.json:
--------------------------------------------------------------------------------
1 | [{"__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"}]}}}}]
--------------------------------------------------------------------------------
/dist/components/controls/default.component.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | import { OnDestroy, OnInit } from '@angular/core';
3 | import { control, Collection } from 'openlayers';
4 | import { MapComponent } from '../map.component';
5 | export declare class DefaultControlComponent implements OnInit, OnDestroy {
6 | private map;
7 | instance: Collection;
8 | attribution: boolean;
9 | attributionOptions: olx.control.AttributionOptions;
10 | rotate: boolean;
11 | rotateOptions: olx.control.RotateOptions;
12 | zoom: boolean;
13 | zoomOptions: olx.control.ZoomOptions;
14 | constructor(map: MapComponent);
15 | ngOnInit(): void;
16 | ngOnDestroy(): void;
17 | }
18 |
--------------------------------------------------------------------------------
/dist/components/controls/default.component.js.map:
--------------------------------------------------------------------------------
1 | {"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":""}
--------------------------------------------------------------------------------
/dist/components/controls/fullscreen.component.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | import { OnDestroy, OnInit } from '@angular/core';
3 | import { control } from 'openlayers';
4 | import { MapComponent } from '../map.component';
5 | export declare class ControlFullScreenComponent implements OnInit, OnDestroy {
6 | private map;
7 | instance: control.FullScreen;
8 | constructor(map: MapComponent);
9 | ngOnInit(): void;
10 | ngOnDestroy(): void;
11 | }
12 |
--------------------------------------------------------------------------------
/dist/components/controls/fullscreen.component.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | Object.defineProperty(exports, "__esModule", { value: true });
3 | var core_1 = require("@angular/core");
4 | var openlayers_1 = require("openlayers");
5 | var map_component_1 = require("../map.component");
6 | var ControlFullScreenComponent = (function () {
7 | function ControlFullScreenComponent(map) {
8 | this.map = map;
9 | // console.log('instancing aol-control-fullscreen');
10 | }
11 | ControlFullScreenComponent.prototype.ngOnInit = function () {
12 | this.instance = new openlayers_1.control.FullScreen(this);
13 | this.map.instance.addControl(this.instance);
14 | };
15 | ControlFullScreenComponent.prototype.ngOnDestroy = function () {
16 | // console.log('removing aol-control-fullscreen');
17 | this.map.instance.removeControl(this.instance);
18 | };
19 | return ControlFullScreenComponent;
20 | }());
21 | ControlFullScreenComponent.decorators = [
22 | { type: core_1.Component, args: [{
23 | selector: 'aol-control-fullscreen',
24 | template: ""
25 | },] },
26 | ];
27 | /** @nocollapse */
28 | ControlFullScreenComponent.ctorParameters = function () { return [
29 | { type: map_component_1.MapComponent, },
30 | ]; };
31 | exports.ControlFullScreenComponent = ControlFullScreenComponent;
32 | //# sourceMappingURL=fullscreen.component.js.map
--------------------------------------------------------------------------------
/dist/components/controls/fullscreen.component.js.map:
--------------------------------------------------------------------------------
1 | {"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":""}
--------------------------------------------------------------------------------
/dist/components/controls/fullscreen.component.metadata.json:
--------------------------------------------------------------------------------
1 | [{"__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"}]}}}}]
--------------------------------------------------------------------------------
/dist/components/controls/index.d.ts:
--------------------------------------------------------------------------------
1 | export * from './attribution.component';
2 | export * from './control.component';
3 | export * from './default.component';
4 | export * from './fullscreen.component';
5 | export * from './mouseposition.component';
6 | export * from './overviewmap.component';
7 | export * from './rotate.component';
8 | export * from './scaleline.component';
9 | export * from './zoom.component';
10 | export * from './zoomslider.component';
11 | export * from './zoomtoextent.component';
12 |
--------------------------------------------------------------------------------
/dist/components/controls/index.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | function __export(m) {
3 | for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
4 | }
5 | Object.defineProperty(exports, "__esModule", { value: true });
6 | __export(require("./attribution.component"));
7 | __export(require("./control.component"));
8 | __export(require("./default.component"));
9 | __export(require("./fullscreen.component"));
10 | __export(require("./mouseposition.component"));
11 | __export(require("./overviewmap.component"));
12 | __export(require("./rotate.component"));
13 | __export(require("./scaleline.component"));
14 | __export(require("./zoom.component"));
15 | __export(require("./zoomslider.component"));
16 | __export(require("./zoomtoextent.component"));
17 | //# sourceMappingURL=index.js.map
--------------------------------------------------------------------------------
/dist/components/controls/index.js.map:
--------------------------------------------------------------------------------
1 | {"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":""}
--------------------------------------------------------------------------------
/dist/components/controls/index.metadata.json:
--------------------------------------------------------------------------------
1 | [{"__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"}]}]
--------------------------------------------------------------------------------
/dist/components/controls/mouseposition.component.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | import { ElementRef, OnDestroy, OnInit } from '@angular/core';
3 | import { control, CoordinateFormatType, ProjectionLike } from 'openlayers';
4 | import { MapComponent } from '../map.component';
5 | export declare class ControlMousePositionComponent implements OnInit, OnDestroy {
6 | private map;
7 | private element;
8 | instance: control.MousePosition;
9 | coordinateFormat: CoordinateFormatType;
10 | projection: ProjectionLike;
11 | target: Element;
12 | constructor(map: MapComponent, element: ElementRef);
13 | ngOnInit(): void;
14 | ngOnDestroy(): void;
15 | }
16 |
--------------------------------------------------------------------------------
/dist/components/controls/mouseposition.component.js.map:
--------------------------------------------------------------------------------
1 | {"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":""}
--------------------------------------------------------------------------------
/dist/components/controls/overviewmap.component.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | import { OnDestroy, OnInit } from '@angular/core';
3 | import { control, View, layer } from 'openlayers';
4 | import { MapComponent } from '../map.component';
5 | export declare class ControlOverviewMapComponent implements OnInit, OnDestroy {
6 | private map;
7 | instance: control.OverviewMap;
8 | collapsed: boolean;
9 | collapseLabel: string;
10 | collapsible: boolean;
11 | label: string;
12 | layers: layer.Layer[];
13 | target: Element;
14 | tipLabel: string;
15 | view: View;
16 | constructor(map: MapComponent);
17 | ngOnInit(): void;
18 | ngOnDestroy(): void;
19 | }
20 |
--------------------------------------------------------------------------------
/dist/components/controls/overviewmap.component.js.map:
--------------------------------------------------------------------------------
1 | {"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":""}
--------------------------------------------------------------------------------
/dist/components/controls/rotate.component.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | import { OnDestroy, OnInit } from '@angular/core';
3 | import { control } from 'openlayers';
4 | import { MapComponent } from '../map.component';
5 | export declare class ControlRotateComponent implements OnInit, OnDestroy {
6 | private map;
7 | instance: control.Rotate;
8 | constructor(map: MapComponent);
9 | ngOnInit(): void;
10 | ngOnDestroy(): void;
11 | }
12 |
--------------------------------------------------------------------------------
/dist/components/controls/rotate.component.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | Object.defineProperty(exports, "__esModule", { value: true });
3 | var core_1 = require("@angular/core");
4 | var openlayers_1 = require("openlayers");
5 | var map_component_1 = require("../map.component");
6 | var ControlRotateComponent = (function () {
7 | function ControlRotateComponent(map) {
8 | this.map = map;
9 | // console.log('instancing aol-control-rotate');
10 | }
11 | ControlRotateComponent.prototype.ngOnInit = function () {
12 | this.instance = new openlayers_1.control.Rotate(this);
13 | this.map.instance.addControl(this.instance);
14 | };
15 | ControlRotateComponent.prototype.ngOnDestroy = function () {
16 | // console.log('removing aol-control-rotate');
17 | this.map.instance.removeControl(this.instance);
18 | };
19 | return ControlRotateComponent;
20 | }());
21 | ControlRotateComponent.decorators = [
22 | { type: core_1.Component, args: [{
23 | selector: 'aol-control-rotate',
24 | template: ""
25 | },] },
26 | ];
27 | /** @nocollapse */
28 | ControlRotateComponent.ctorParameters = function () { return [
29 | { type: map_component_1.MapComponent, },
30 | ]; };
31 | exports.ControlRotateComponent = ControlRotateComponent;
32 | //# sourceMappingURL=rotate.component.js.map
--------------------------------------------------------------------------------
/dist/components/controls/rotate.component.js.map:
--------------------------------------------------------------------------------
1 | {"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":""}
--------------------------------------------------------------------------------
/dist/components/controls/rotate.component.metadata.json:
--------------------------------------------------------------------------------
1 | [{"__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"}]}}}}]
--------------------------------------------------------------------------------
/dist/components/controls/scaleline.component.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | import { OnDestroy, OnInit } from '@angular/core';
3 | import { control } from 'openlayers';
4 | import { MapComponent } from '../map.component';
5 | export declare class ControlScaleLineComponent implements OnInit, OnDestroy {
6 | private map;
7 | instance: control.ScaleLine;
8 | constructor(map: MapComponent);
9 | ngOnInit(): void;
10 | ngOnDestroy(): void;
11 | }
12 |
--------------------------------------------------------------------------------
/dist/components/controls/scaleline.component.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | Object.defineProperty(exports, "__esModule", { value: true });
3 | var core_1 = require("@angular/core");
4 | var openlayers_1 = require("openlayers");
5 | var map_component_1 = require("../map.component");
6 | var ControlScaleLineComponent = (function () {
7 | function ControlScaleLineComponent(map) {
8 | this.map = map;
9 | // console.log('instancing aol-control-scaleline');
10 | }
11 | ControlScaleLineComponent.prototype.ngOnInit = function () {
12 | this.instance = new openlayers_1.control.ScaleLine(this);
13 | this.map.instance.addControl(this.instance);
14 | };
15 | ControlScaleLineComponent.prototype.ngOnDestroy = function () {
16 | // console.log('removing aol-control-scaleline');
17 | this.map.instance.removeControl(this.instance);
18 | };
19 | return ControlScaleLineComponent;
20 | }());
21 | ControlScaleLineComponent.decorators = [
22 | { type: core_1.Component, args: [{
23 | selector: 'aol-control-scaleline',
24 | template: ""
25 | },] },
26 | ];
27 | /** @nocollapse */
28 | ControlScaleLineComponent.ctorParameters = function () { return [
29 | { type: map_component_1.MapComponent, },
30 | ]; };
31 | exports.ControlScaleLineComponent = ControlScaleLineComponent;
32 | //# sourceMappingURL=scaleline.component.js.map
--------------------------------------------------------------------------------
/dist/components/controls/scaleline.component.js.map:
--------------------------------------------------------------------------------
1 | {"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":""}
--------------------------------------------------------------------------------
/dist/components/controls/scaleline.component.metadata.json:
--------------------------------------------------------------------------------
1 | [{"__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"}]}}}}]
--------------------------------------------------------------------------------
/dist/components/controls/zoom.component.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | import { OnDestroy, OnInit } from '@angular/core';
3 | import { control } from 'openlayers';
4 | import { MapComponent } from '../map.component';
5 | export declare class ControlZoomComponent implements OnInit, OnDestroy {
6 | private map;
7 | instance: control.Zoom;
8 | duration: number;
9 | zoomInLabel: (string | Node);
10 | zoomOutLabel: (string | Node);
11 | zoomInTipLabel: string;
12 | zoomOutTipLabel: string;
13 | delta: number;
14 | constructor(map: MapComponent);
15 | ngOnInit(): void;
16 | ngOnDestroy(): void;
17 | }
18 |
--------------------------------------------------------------------------------
/dist/components/controls/zoom.component.js.map:
--------------------------------------------------------------------------------
1 | {"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":""}
--------------------------------------------------------------------------------
/dist/components/controls/zoomslider.component.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | import { OnDestroy, OnInit } from '@angular/core';
3 | import { control } from 'openlayers';
4 | import { MapComponent } from '../map.component';
5 | export declare class ControlZoomSliderComponent implements OnInit, OnDestroy {
6 | private map;
7 | instance: control.ZoomSlider;
8 | constructor(map: MapComponent);
9 | ngOnInit(): void;
10 | ngOnDestroy(): void;
11 | }
12 |
--------------------------------------------------------------------------------
/dist/components/controls/zoomslider.component.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | Object.defineProperty(exports, "__esModule", { value: true });
3 | var core_1 = require("@angular/core");
4 | var openlayers_1 = require("openlayers");
5 | var map_component_1 = require("../map.component");
6 | var ControlZoomSliderComponent = (function () {
7 | function ControlZoomSliderComponent(map) {
8 | this.map = map;
9 | // console.log('instancing aol-control-zoomslider');
10 | }
11 | ControlZoomSliderComponent.prototype.ngOnInit = function () {
12 | this.instance = new openlayers_1.control.ZoomSlider(this);
13 | this.map.instance.addControl(this.instance);
14 | };
15 | ControlZoomSliderComponent.prototype.ngOnDestroy = function () {
16 | // console.log('removing aol-control-zoomslider');
17 | this.map.instance.removeControl(this.instance);
18 | };
19 | return ControlZoomSliderComponent;
20 | }());
21 | ControlZoomSliderComponent.decorators = [
22 | { type: core_1.Component, args: [{
23 | selector: 'aol-control-zoomslider',
24 | template: ""
25 | },] },
26 | ];
27 | /** @nocollapse */
28 | ControlZoomSliderComponent.ctorParameters = function () { return [
29 | { type: map_component_1.MapComponent, },
30 | ]; };
31 | exports.ControlZoomSliderComponent = ControlZoomSliderComponent;
32 | //# sourceMappingURL=zoomslider.component.js.map
--------------------------------------------------------------------------------
/dist/components/controls/zoomslider.component.js.map:
--------------------------------------------------------------------------------
1 | {"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":""}
--------------------------------------------------------------------------------
/dist/components/controls/zoomslider.component.metadata.json:
--------------------------------------------------------------------------------
1 | [{"__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"}]}}}}]
--------------------------------------------------------------------------------
/dist/components/controls/zoomtoextent.component.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | import { OnDestroy, OnInit } from '@angular/core';
3 | import { control, Extent } from 'openlayers';
4 | import { MapComponent } from '../map.component';
5 | export declare class ControlZoomToExtentComponent implements OnInit, OnDestroy {
6 | private map;
7 | instance: control.ZoomToExtent;
8 | className: string;
9 | label: (string | Node);
10 | tipLabel: string;
11 | extent: Extent;
12 | constructor(map: MapComponent);
13 | ngOnInit(): void;
14 | ngOnDestroy(): void;
15 | }
16 |
--------------------------------------------------------------------------------
/dist/components/controls/zoomtoextent.component.js.map:
--------------------------------------------------------------------------------
1 | {"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":""}
--------------------------------------------------------------------------------
/dist/components/coordinate.component.d.ts:
--------------------------------------------------------------------------------
1 | import { OnChanges, SimpleChanges } from '@angular/core';
2 | import { MapComponent } from './map.component';
3 | import { GeometryPointComponent, GeometryLinestringComponent, GeometryPolygonComponent } from './geometry.components';
4 | import { ViewComponent } from './view.component';
5 | import { OverlayComponent } from './overlay.component';
6 | export declare class CoordinateComponent implements OnChanges {
7 | private map;
8 | private host;
9 | x: number;
10 | y: number;
11 | srid: string;
12 | constructor(map: MapComponent, viewHost: ViewComponent, geometryPointHost: GeometryPointComponent, overlayHost: OverlayComponent);
13 | ngOnChanges(changes: SimpleChanges): void;
14 | }
15 | export declare class CollectionCoordinatesComponent implements OnChanges {
16 | private map;
17 | private host;
18 | coordinates: [number, number][];
19 | srid: string;
20 | constructor(map: MapComponent, geometryLinestring: GeometryLinestringComponent, geometryPolygon: GeometryPolygonComponent);
21 | ngOnChanges(changes: SimpleChanges): void;
22 | }
23 |
--------------------------------------------------------------------------------
/dist/components/feature.component.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | import { OnInit, OnDestroy, OnChanges, SimpleChanges } from '@angular/core';
3 | import { Feature } from 'openlayers';
4 | import { SourceVectorComponent } from './sources';
5 | export declare class FeatureComponent implements OnInit, OnDestroy, OnChanges {
6 | private host;
7 | componentType: string;
8 | instance: Feature;
9 | id: string | number | undefined;
10 | constructor(host: SourceVectorComponent);
11 | ngOnInit(): void;
12 | ngOnDestroy(): void;
13 | ngOnChanges(changes: SimpleChanges): void;
14 | }
15 |
--------------------------------------------------------------------------------
/dist/components/feature.component.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | Object.defineProperty(exports, "__esModule", { value: true });
3 | var core_1 = require("@angular/core");
4 | var openlayers_1 = require("openlayers");
5 | var sources_1 = require("./sources");
6 | var FeatureComponent = (function () {
7 | function FeatureComponent(host) {
8 | this.host = host;
9 | this.componentType = 'feature';
10 | }
11 | FeatureComponent.prototype.ngOnInit = function () {
12 | this.instance = new openlayers_1.Feature();
13 | if (this.id !== undefined) {
14 | this.instance.setId(this.id);
15 | }
16 | this.host.instance.addFeature(this.instance);
17 | };
18 | FeatureComponent.prototype.ngOnDestroy = function () {
19 | this.host.instance.removeFeature(this.instance);
20 | };
21 | FeatureComponent.prototype.ngOnChanges = function (changes) {
22 | if (this.instance) {
23 | this.instance.setId(this.id);
24 | }
25 | };
26 | return FeatureComponent;
27 | }());
28 | FeatureComponent.decorators = [
29 | { type: core_1.Component, args: [{
30 | selector: 'aol-feature',
31 | template: ""
32 | },] },
33 | ];
34 | /** @nocollapse */
35 | FeatureComponent.ctorParameters = function () { return [
36 | { type: sources_1.SourceVectorComponent, },
37 | ]; };
38 | FeatureComponent.propDecorators = {
39 | 'id': [{ type: core_1.Input },],
40 | };
41 | exports.FeatureComponent = FeatureComponent;
42 | //# sourceMappingURL=feature.component.js.map
--------------------------------------------------------------------------------
/dist/components/feature.component.js.map:
--------------------------------------------------------------------------------
1 | {"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":""}
--------------------------------------------------------------------------------
/dist/components/feature.component.metadata.json:
--------------------------------------------------------------------------------
1 | [{"__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"}]}}}}]
--------------------------------------------------------------------------------
/dist/components/format.component.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | import { format, geom } from 'openlayers';
3 | export declare class FormatComponent {
4 | instance: format.Feature;
5 | componentType: string;
6 | }
7 | export declare class FormatMVTComponent extends FormatComponent {
8 | instance: format.MVT;
9 | featureClass: (((geom: (geom.Geometry | {
10 | [k: string]: any;
11 | })) => any) | ((geom: geom.GeometryType, arg2: number[], arg3: (number[] | number[][]), arg4: {
12 | [k: string]: any;
13 | }) => any));
14 | geometryName: string;
15 | layerName: string;
16 | layers: string[];
17 | constructor();
18 | }
19 |
--------------------------------------------------------------------------------
/dist/components/format.component.js.map:
--------------------------------------------------------------------------------
1 | {"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"}
--------------------------------------------------------------------------------
/dist/components/formats/format.component.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | import { format } from 'openlayers';
3 | export declare class FormatComponent {
4 | instance: format.Feature;
5 | componentType: string;
6 | }
7 |
--------------------------------------------------------------------------------
/dist/components/formats/format.component.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | Object.defineProperty(exports, "__esModule", { value: true });
3 | var FormatComponent = (function () {
4 | function FormatComponent() {
5 | this.componentType = 'format';
6 | }
7 | return FormatComponent;
8 | }());
9 | exports.FormatComponent = FormatComponent;
10 | //# sourceMappingURL=format.component.js.map
--------------------------------------------------------------------------------
/dist/components/formats/format.component.js.map:
--------------------------------------------------------------------------------
1 | {"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":""}
--------------------------------------------------------------------------------
/dist/components/formats/format.component.metadata.json:
--------------------------------------------------------------------------------
1 | [{"__symbolic":"module","version":3,"metadata":{"FormatComponent":{"__symbolic":"class"}}},{"__symbolic":"module","version":1,"metadata":{"FormatComponent":{"__symbolic":"class"}}}]
--------------------------------------------------------------------------------
/dist/components/formats/index.d.ts:
--------------------------------------------------------------------------------
1 | export * from './format.component';
2 | export * from './mvt.component';
3 |
--------------------------------------------------------------------------------
/dist/components/formats/index.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | function __export(m) {
3 | for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
4 | }
5 | Object.defineProperty(exports, "__esModule", { value: true });
6 | __export(require("./format.component"));
7 | __export(require("./mvt.component"));
8 | //# sourceMappingURL=index.js.map
--------------------------------------------------------------------------------
/dist/components/formats/index.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/components/formats/index.ts"],"names":[],"mappings":";;;;;AAAA,wCAAmC;AACnC,qCAAgC","file":"index.js","sourceRoot":""}
--------------------------------------------------------------------------------
/dist/components/formats/index.metadata.json:
--------------------------------------------------------------------------------
1 | [{"__symbolic":"module","version":3,"metadata":{},"exports":[{"from":"./format.component"},{"from":"./mvt.component"}]},{"__symbolic":"module","version":1,"metadata":{},"exports":[{"from":"./format.component"},{"from":"./mvt.component"}]}]
--------------------------------------------------------------------------------
/dist/components/formats/mvt.component.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | import { format, geom } from 'openlayers';
3 | import { FormatComponent } from './format.component';
4 | export declare class FormatMVTComponent extends FormatComponent {
5 | instance: format.MVT;
6 | featureClass: (((geom: (geom.Geometry | {
7 | [k: string]: any;
8 | })) => any) | ((geom: geom.GeometryType, arg2: number[], arg3: (number[] | number[][]), arg4: {
9 | [k: string]: any;
10 | }) => any));
11 | geometryName: string;
12 | layerName: string;
13 | layers: string[];
14 | constructor();
15 | }
16 |
--------------------------------------------------------------------------------
/dist/components/formats/mvt.component.js.map:
--------------------------------------------------------------------------------
1 | {"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":""}
--------------------------------------------------------------------------------
/dist/components/geometry.components.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | import { OnInit, OnDestroy } from '@angular/core';
3 | import { geom } from 'openlayers';
4 | import { FeatureComponent } from './feature.component';
5 | export declare class GeometryLinestringComponent implements OnInit, OnDestroy {
6 | private host;
7 | componentType: string;
8 | instance: geom.LineString;
9 | constructor(host: FeatureComponent);
10 | ngOnInit(): void;
11 | ngOnDestroy(): void;
12 | }
13 | export declare class GeometryPointComponent implements OnInit, OnDestroy {
14 | private host;
15 | componentType: string;
16 | instance: geom.Point;
17 | constructor(host: FeatureComponent);
18 | ngOnInit(): void;
19 | ngOnDestroy(): void;
20 | }
21 | export declare class GeometryPolygonComponent implements OnInit, OnDestroy {
22 | private host;
23 | componentType: string;
24 | instance: geom.Polygon;
25 | constructor(host: FeatureComponent);
26 | ngOnInit(): void;
27 | ngOnDestroy(): void;
28 | }
29 |
--------------------------------------------------------------------------------
/dist/components/index.d.ts:
--------------------------------------------------------------------------------
1 | export * from './controls';
2 | export * from './formats';
3 | export * from './interactions';
4 | export * from './layers';
5 | export * from './sources';
6 | export * from './styles';
7 | export * from './attribution.component';
8 | export * from './attributions.component';
9 | export * from './content.component';
10 | export * from './coordinate.component';
11 | export * from './feature.component';
12 | export * from './geometry.components';
13 | export * from './graticule.component';
14 | export * from './map.component';
15 | export * from './overlay.component';
16 | export * from './tilegrid.component';
17 | export * from './tilegridwmts.component';
18 | export * from './view.component';
19 |
--------------------------------------------------------------------------------
/dist/components/index.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | function __export(m) {
3 | for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
4 | }
5 | Object.defineProperty(exports, "__esModule", { value: true });
6 | __export(require("./controls"));
7 | __export(require("./formats"));
8 | __export(require("./interactions"));
9 | __export(require("./layers"));
10 | __export(require("./sources"));
11 | __export(require("./styles"));
12 | __export(require("./attribution.component"));
13 | __export(require("./attributions.component"));
14 | __export(require("./content.component"));
15 | __export(require("./coordinate.component"));
16 | __export(require("./feature.component"));
17 | __export(require("./geometry.components"));
18 | __export(require("./graticule.component"));
19 | __export(require("./map.component"));
20 | __export(require("./overlay.component"));
21 | __export(require("./tilegrid.component"));
22 | __export(require("./tilegridwmts.component"));
23 | __export(require("./view.component"));
24 | //# sourceMappingURL=index.js.map
--------------------------------------------------------------------------------
/dist/components/index.js.map:
--------------------------------------------------------------------------------
1 | {"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":""}
--------------------------------------------------------------------------------
/dist/components/index.metadata.json:
--------------------------------------------------------------------------------
1 | [{"__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"}]}]
--------------------------------------------------------------------------------
/dist/components/interactions/default.component.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | import { OnDestroy, OnInit } from '@angular/core';
3 | import { interaction, Collection } from 'openlayers';
4 | import { MapComponent } from '../map.component';
5 | export declare class DefaultInteractionComponent implements OnInit, OnDestroy {
6 | private map;
7 | instance: Collection;
8 | constructor(map: MapComponent);
9 | ngOnInit(): void;
10 | ngOnDestroy(): void;
11 | }
12 |
--------------------------------------------------------------------------------
/dist/components/interactions/default.component.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | Object.defineProperty(exports, "__esModule", { value: true });
3 | var core_1 = require("@angular/core");
4 | var openlayers_1 = require("openlayers");
5 | var map_component_1 = require("../map.component");
6 | var DefaultInteractionComponent = (function () {
7 | function DefaultInteractionComponent(map) {
8 | this.map = map;
9 | }
10 | DefaultInteractionComponent.prototype.ngOnInit = function () {
11 | var _this = this;
12 | this.instance = openlayers_1.interaction.defaults();
13 | this.instance.forEach(function (interaction) { return _this.map.instance.addInteraction(interaction); });
14 | };
15 | DefaultInteractionComponent.prototype.ngOnDestroy = function () {
16 | var _this = this;
17 | this.instance.forEach(function (interaction) { return _this.map.instance.removeInteraction(interaction); });
18 | };
19 | return DefaultInteractionComponent;
20 | }());
21 | DefaultInteractionComponent.decorators = [
22 | { type: core_1.Component, args: [{
23 | selector: 'aol-interaction-default',
24 | template: ''
25 | },] },
26 | ];
27 | /** @nocollapse */
28 | DefaultInteractionComponent.ctorParameters = function () { return [
29 | { type: map_component_1.MapComponent, },
30 | ]; };
31 | exports.DefaultInteractionComponent = DefaultInteractionComponent;
32 | //# sourceMappingURL=default.component.js.map
--------------------------------------------------------------------------------
/dist/components/interactions/default.component.js.map:
--------------------------------------------------------------------------------
1 | {"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":""}
--------------------------------------------------------------------------------
/dist/components/interactions/default.component.metadata.json:
--------------------------------------------------------------------------------
1 | [{"__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"}]}}}}]
--------------------------------------------------------------------------------
/dist/components/interactions/doubleclickzoom.component.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | import { OnDestroy, OnInit } from '@angular/core';
3 | import { interaction } from 'openlayers';
4 | import { MapComponent } from '../map.component';
5 | export declare class DoubleClickZoomInteractionComponent implements OnInit, OnDestroy {
6 | private map;
7 | instance: interaction.DoubleClickZoom;
8 | duration: number;
9 | delta: number;
10 | constructor(map: MapComponent);
11 | ngOnInit(): void;
12 | ngOnDestroy(): void;
13 | }
14 |
--------------------------------------------------------------------------------
/dist/components/interactions/doubleclickzoom.component.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | Object.defineProperty(exports, "__esModule", { value: true });
3 | var core_1 = require("@angular/core");
4 | var openlayers_1 = require("openlayers");
5 | var map_component_1 = require("../map.component");
6 | var DoubleClickZoomInteractionComponent = (function () {
7 | function DoubleClickZoomInteractionComponent(map) {
8 | this.map = map;
9 | }
10 | DoubleClickZoomInteractionComponent.prototype.ngOnInit = function () {
11 | this.instance = new openlayers_1.interaction.DoubleClickZoom(this);
12 | this.map.instance.addInteraction(this.instance);
13 | };
14 | DoubleClickZoomInteractionComponent.prototype.ngOnDestroy = function () {
15 | this.map.instance.removeInteraction(this.instance);
16 | };
17 | return DoubleClickZoomInteractionComponent;
18 | }());
19 | DoubleClickZoomInteractionComponent.decorators = [
20 | { type: core_1.Component, args: [{
21 | selector: 'aol-interaction-doubleclickzoom',
22 | template: ''
23 | },] },
24 | ];
25 | /** @nocollapse */
26 | DoubleClickZoomInteractionComponent.ctorParameters = function () { return [
27 | { type: map_component_1.MapComponent, },
28 | ]; };
29 | DoubleClickZoomInteractionComponent.propDecorators = {
30 | 'duration': [{ type: core_1.Input },],
31 | 'delta': [{ type: core_1.Input },],
32 | };
33 | exports.DoubleClickZoomInteractionComponent = DoubleClickZoomInteractionComponent;
34 | //# sourceMappingURL=doubleclickzoom.component.js.map
--------------------------------------------------------------------------------
/dist/components/interactions/doubleclickzoom.component.js.map:
--------------------------------------------------------------------------------
1 | {"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":""}
--------------------------------------------------------------------------------
/dist/components/interactions/draganddrop.component.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | import { OnDestroy, OnInit } from '@angular/core';
3 | import { interaction, format, ProjectionLike } from 'openlayers';
4 | import { MapComponent } from '../map.component';
5 | export declare class DragAndDropInteractionComponent implements OnInit, OnDestroy {
6 | private map;
7 | instance: interaction.DragAndDrop;
8 | formatConstructors: ((n: format.Feature) => any)[];
9 | projection: ProjectionLike;
10 | target: Element;
11 | constructor(map: MapComponent);
12 | ngOnInit(): void;
13 | ngOnDestroy(): void;
14 | }
15 |
--------------------------------------------------------------------------------
/dist/components/interactions/draganddrop.component.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | Object.defineProperty(exports, "__esModule", { value: true });
3 | var core_1 = require("@angular/core");
4 | var openlayers_1 = require("openlayers");
5 | var map_component_1 = require("../map.component");
6 | var DragAndDropInteractionComponent = (function () {
7 | function DragAndDropInteractionComponent(map) {
8 | this.map = map;
9 | }
10 | DragAndDropInteractionComponent.prototype.ngOnInit = function () {
11 | this.instance = new openlayers_1.interaction.DragAndDrop(this);
12 | this.map.instance.addInteraction(this.instance);
13 | };
14 | DragAndDropInteractionComponent.prototype.ngOnDestroy = function () {
15 | this.map.instance.removeInteraction(this.instance);
16 | };
17 | return DragAndDropInteractionComponent;
18 | }());
19 | DragAndDropInteractionComponent.decorators = [
20 | { type: core_1.Component, args: [{
21 | selector: 'aol-interaction-draganddrop',
22 | template: ''
23 | },] },
24 | ];
25 | /** @nocollapse */
26 | DragAndDropInteractionComponent.ctorParameters = function () { return [
27 | { type: map_component_1.MapComponent, },
28 | ]; };
29 | DragAndDropInteractionComponent.propDecorators = {
30 | 'formatConstructors': [{ type: core_1.Input },],
31 | 'projection': [{ type: core_1.Input },],
32 | 'target': [{ type: core_1.Input },],
33 | };
34 | exports.DragAndDropInteractionComponent = DragAndDropInteractionComponent;
35 | //# sourceMappingURL=draganddrop.component.js.map
--------------------------------------------------------------------------------
/dist/components/interactions/draganddrop.component.js.map:
--------------------------------------------------------------------------------
1 | {"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":""}
--------------------------------------------------------------------------------
/dist/components/interactions/dragbox.component.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | import { OnDestroy, OnInit } from '@angular/core';
3 | import { interaction, EventsConditionType, DragBoxEndConditionType } from 'openlayers';
4 | import { MapComponent } from '../map.component';
5 | export declare class DragBoxInteractionComponent implements OnInit, OnDestroy {
6 | private map;
7 | instance: interaction.DragBox;
8 | className: string;
9 | condition: EventsConditionType;
10 | boxEndCondition: DragBoxEndConditionType;
11 | constructor(map: MapComponent);
12 | ngOnInit(): void;
13 | ngOnDestroy(): void;
14 | }
15 |
--------------------------------------------------------------------------------
/dist/components/interactions/dragbox.component.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | Object.defineProperty(exports, "__esModule", { value: true });
3 | var core_1 = require("@angular/core");
4 | var openlayers_1 = require("openlayers");
5 | var map_component_1 = require("../map.component");
6 | var DragBoxInteractionComponent = (function () {
7 | function DragBoxInteractionComponent(map) {
8 | this.map = map;
9 | }
10 | DragBoxInteractionComponent.prototype.ngOnInit = function () {
11 | this.instance = new openlayers_1.interaction.DragBox(this);
12 | this.map.instance.addInteraction(this.instance);
13 | };
14 | DragBoxInteractionComponent.prototype.ngOnDestroy = function () {
15 | this.map.instance.removeInteraction(this.instance);
16 | };
17 | return DragBoxInteractionComponent;
18 | }());
19 | DragBoxInteractionComponent.decorators = [
20 | { type: core_1.Component, args: [{
21 | selector: 'aol-interaction-dragbox',
22 | template: ''
23 | },] },
24 | ];
25 | /** @nocollapse */
26 | DragBoxInteractionComponent.ctorParameters = function () { return [
27 | { type: map_component_1.MapComponent, },
28 | ]; };
29 | DragBoxInteractionComponent.propDecorators = {
30 | 'className': [{ type: core_1.Input },],
31 | 'condition': [{ type: core_1.Input },],
32 | 'boxEndCondition': [{ type: core_1.Input },],
33 | };
34 | exports.DragBoxInteractionComponent = DragBoxInteractionComponent;
35 | //# sourceMappingURL=dragbox.component.js.map
--------------------------------------------------------------------------------
/dist/components/interactions/dragbox.component.js.map:
--------------------------------------------------------------------------------
1 | {"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":""}
--------------------------------------------------------------------------------
/dist/components/interactions/dragpan.component.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | import { OnDestroy, OnInit } from '@angular/core';
3 | import { interaction, EventsConditionType, Kinetic } from 'openlayers';
4 | import { MapComponent } from '../map.component';
5 | export declare class DragPanInteractionComponent implements OnInit, OnDestroy {
6 | private map;
7 | instance: interaction.DragPan;
8 | condition: EventsConditionType;
9 | kinetic: Kinetic;
10 | constructor(map: MapComponent);
11 | ngOnInit(): void;
12 | ngOnDestroy(): void;
13 | }
14 |
--------------------------------------------------------------------------------
/dist/components/interactions/dragpan.component.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | Object.defineProperty(exports, "__esModule", { value: true });
3 | var core_1 = require("@angular/core");
4 | var openlayers_1 = require("openlayers");
5 | var map_component_1 = require("../map.component");
6 | var DragPanInteractionComponent = (function () {
7 | function DragPanInteractionComponent(map) {
8 | this.map = map;
9 | }
10 | DragPanInteractionComponent.prototype.ngOnInit = function () {
11 | this.instance = new openlayers_1.interaction.DragPan(this);
12 | this.map.instance.addInteraction(this.instance);
13 | };
14 | DragPanInteractionComponent.prototype.ngOnDestroy = function () {
15 | this.map.instance.removeInteraction(this.instance);
16 | };
17 | return DragPanInteractionComponent;
18 | }());
19 | DragPanInteractionComponent.decorators = [
20 | { type: core_1.Component, args: [{
21 | selector: 'aol-interaction-dragpan',
22 | template: ''
23 | },] },
24 | ];
25 | /** @nocollapse */
26 | DragPanInteractionComponent.ctorParameters = function () { return [
27 | { type: map_component_1.MapComponent, },
28 | ]; };
29 | DragPanInteractionComponent.propDecorators = {
30 | 'condition': [{ type: core_1.Input },],
31 | 'kinetic': [{ type: core_1.Input },],
32 | };
33 | exports.DragPanInteractionComponent = DragPanInteractionComponent;
34 | //# sourceMappingURL=dragpan.component.js.map
--------------------------------------------------------------------------------
/dist/components/interactions/dragpan.component.js.map:
--------------------------------------------------------------------------------
1 | {"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":""}
--------------------------------------------------------------------------------
/dist/components/interactions/dragrotate.component.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | import { OnDestroy, OnInit } from '@angular/core';
3 | import { interaction, EventsConditionType } from 'openlayers';
4 | import { MapComponent } from '../map.component';
5 | export declare class DragRotateInteractionComponent implements OnInit, OnDestroy {
6 | private map;
7 | instance: interaction.DragRotate;
8 | condition: EventsConditionType;
9 | duration: number;
10 | constructor(map: MapComponent);
11 | ngOnInit(): void;
12 | ngOnDestroy(): void;
13 | }
14 |
--------------------------------------------------------------------------------
/dist/components/interactions/dragrotate.component.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | Object.defineProperty(exports, "__esModule", { value: true });
3 | var core_1 = require("@angular/core");
4 | var openlayers_1 = require("openlayers");
5 | var map_component_1 = require("../map.component");
6 | var DragRotateInteractionComponent = (function () {
7 | function DragRotateInteractionComponent(map) {
8 | this.map = map;
9 | }
10 | DragRotateInteractionComponent.prototype.ngOnInit = function () {
11 | this.instance = new openlayers_1.interaction.DragRotate(this);
12 | this.map.instance.addInteraction(this.instance);
13 | };
14 | DragRotateInteractionComponent.prototype.ngOnDestroy = function () {
15 | this.map.instance.removeInteraction(this.instance);
16 | };
17 | return DragRotateInteractionComponent;
18 | }());
19 | DragRotateInteractionComponent.decorators = [
20 | { type: core_1.Component, args: [{
21 | selector: 'aol-interaction-dragrotate',
22 | template: ''
23 | },] },
24 | ];
25 | /** @nocollapse */
26 | DragRotateInteractionComponent.ctorParameters = function () { return [
27 | { type: map_component_1.MapComponent, },
28 | ]; };
29 | DragRotateInteractionComponent.propDecorators = {
30 | 'condition': [{ type: core_1.Input },],
31 | 'duration': [{ type: core_1.Input },],
32 | };
33 | exports.DragRotateInteractionComponent = DragRotateInteractionComponent;
34 | //# sourceMappingURL=dragrotate.component.js.map
--------------------------------------------------------------------------------
/dist/components/interactions/dragrotate.component.js.map:
--------------------------------------------------------------------------------
1 | {"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":""}
--------------------------------------------------------------------------------
/dist/components/interactions/dragrotateandzoom.component.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | import { OnDestroy, OnInit } from '@angular/core';
3 | import { interaction, EventsConditionType } from 'openlayers';
4 | import { MapComponent } from '../map.component';
5 | export declare class DragRotateAndZoomInteractionComponent implements OnInit, OnDestroy {
6 | private map;
7 | instance: interaction.DragRotate;
8 | condition: EventsConditionType;
9 | duration: number;
10 | constructor(map: MapComponent);
11 | ngOnInit(): void;
12 | ngOnDestroy(): void;
13 | }
14 |
--------------------------------------------------------------------------------
/dist/components/interactions/dragrotateandzoom.component.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | Object.defineProperty(exports, "__esModule", { value: true });
3 | var core_1 = require("@angular/core");
4 | var openlayers_1 = require("openlayers");
5 | var map_component_1 = require("../map.component");
6 | var DragRotateAndZoomInteractionComponent = (function () {
7 | function DragRotateAndZoomInteractionComponent(map) {
8 | this.map = map;
9 | }
10 | DragRotateAndZoomInteractionComponent.prototype.ngOnInit = function () {
11 | this.instance = new openlayers_1.interaction.DragRotateAndZoom(this);
12 | this.map.instance.addInteraction(this.instance);
13 | };
14 | DragRotateAndZoomInteractionComponent.prototype.ngOnDestroy = function () {
15 | this.map.instance.removeInteraction(this.instance);
16 | };
17 | return DragRotateAndZoomInteractionComponent;
18 | }());
19 | DragRotateAndZoomInteractionComponent.decorators = [
20 | { type: core_1.Component, args: [{
21 | selector: 'aol-interaction-dragrotateandzoom',
22 | template: ''
23 | },] },
24 | ];
25 | /** @nocollapse */
26 | DragRotateAndZoomInteractionComponent.ctorParameters = function () { return [
27 | { type: map_component_1.MapComponent, },
28 | ]; };
29 | DragRotateAndZoomInteractionComponent.propDecorators = {
30 | 'condition': [{ type: core_1.Input },],
31 | 'duration': [{ type: core_1.Input },],
32 | };
33 | exports.DragRotateAndZoomInteractionComponent = DragRotateAndZoomInteractionComponent;
34 | //# sourceMappingURL=dragrotateandzoom.component.js.map
--------------------------------------------------------------------------------
/dist/components/interactions/dragrotateandzoom.component.js.map:
--------------------------------------------------------------------------------
1 | {"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":""}
--------------------------------------------------------------------------------
/dist/components/interactions/dragzoom.component.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | import { OnDestroy, OnInit } from '@angular/core';
3 | import { interaction, EventsConditionType } from 'openlayers';
4 | import { MapComponent } from '../map.component';
5 | export declare class DragZoomInteractionComponent implements OnInit, OnDestroy {
6 | private map;
7 | instance: interaction.DragZoom;
8 | className: string;
9 | condition: EventsConditionType;
10 | duration: number;
11 | out: boolean;
12 | constructor(map: MapComponent);
13 | ngOnInit(): void;
14 | ngOnDestroy(): void;
15 | }
16 |
--------------------------------------------------------------------------------
/dist/components/interactions/dragzoom.component.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | Object.defineProperty(exports, "__esModule", { value: true });
3 | var core_1 = require("@angular/core");
4 | var openlayers_1 = require("openlayers");
5 | var map_component_1 = require("../map.component");
6 | var DragZoomInteractionComponent = (function () {
7 | function DragZoomInteractionComponent(map) {
8 | this.map = map;
9 | }
10 | DragZoomInteractionComponent.prototype.ngOnInit = function () {
11 | this.instance = new openlayers_1.interaction.DragZoom(this);
12 | this.map.instance.addInteraction(this.instance);
13 | };
14 | DragZoomInteractionComponent.prototype.ngOnDestroy = function () {
15 | this.map.instance.removeInteraction(this.instance);
16 | };
17 | return DragZoomInteractionComponent;
18 | }());
19 | DragZoomInteractionComponent.decorators = [
20 | { type: core_1.Component, args: [{
21 | selector: 'aol-interaction-dragzoom',
22 | template: ''
23 | },] },
24 | ];
25 | /** @nocollapse */
26 | DragZoomInteractionComponent.ctorParameters = function () { return [
27 | { type: map_component_1.MapComponent, },
28 | ]; };
29 | DragZoomInteractionComponent.propDecorators = {
30 | 'className': [{ type: core_1.Input },],
31 | 'condition': [{ type: core_1.Input },],
32 | 'duration': [{ type: core_1.Input },],
33 | 'out': [{ type: core_1.Input },],
34 | };
35 | exports.DragZoomInteractionComponent = DragZoomInteractionComponent;
36 | //# sourceMappingURL=dragzoom.component.js.map
--------------------------------------------------------------------------------
/dist/components/interactions/dragzoom.component.js.map:
--------------------------------------------------------------------------------
1 | {"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":""}
--------------------------------------------------------------------------------
/dist/components/interactions/draw.component.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | import { OnDestroy, OnInit, EventEmitter } from '@angular/core';
3 | import { interaction } from 'openlayers';
4 | import { MapComponent } from '../map.component';
5 | export declare class DrawInteractionComponent implements OnInit, OnDestroy {
6 | private map;
7 | instance: interaction.Draw;
8 | clickTolerance?: number;
9 | features?: ol.Collection;
10 | source?: ol.source.Vector;
11 | snapTolerance?: number;
12 | type: ol.geom.GeometryType;
13 | maxPoints?: number;
14 | minPoints?: number;
15 | finishCondition?: ol.EventsConditionType;
16 | style?: (ol.style.Style | ol.style.Style[] | ol.StyleFunction);
17 | geometryFunction?: ol.DrawGeometryFunctionType;
18 | geometryName?: string;
19 | condition?: ol.EventsConditionType;
20 | freehandCondition?: ol.EventsConditionType;
21 | freehand?: boolean;
22 | wrapX?: boolean;
23 | onChange: EventEmitter;
24 | onChangeActive: EventEmitter;
25 | onDrawEnd: EventEmitter;
26 | onDrawStart: EventEmitter;
27 | onPropertyChange: EventEmitter;
28 | constructor(map: MapComponent);
29 | ngOnInit(): void;
30 | ngOnDestroy(): void;
31 | }
32 |
--------------------------------------------------------------------------------
/dist/components/interactions/index.d.ts:
--------------------------------------------------------------------------------
1 | export * from './default.component';
2 | export * from './doubleclickzoom.component';
3 | export * from './draganddrop.component';
4 | export * from './dragbox.component';
5 | export * from './dragpan.component';
6 | export * from './dragrotate.component';
7 | export * from './dragrotateandzoom.component';
8 | export * from './dragzoom.component';
9 | export * from './mousewheelzoom.component';
10 | export * from './pinchzoom.component';
11 | export * from './draw.component';
12 | export * from './select.component';
13 | export * from './translate.component';
14 | export * from './modify.component';
15 |
--------------------------------------------------------------------------------
/dist/components/interactions/index.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | function __export(m) {
3 | for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
4 | }
5 | Object.defineProperty(exports, "__esModule", { value: true });
6 | __export(require("./default.component"));
7 | __export(require("./doubleclickzoom.component"));
8 | __export(require("./draganddrop.component"));
9 | __export(require("./dragbox.component"));
10 | __export(require("./dragpan.component"));
11 | __export(require("./dragrotate.component"));
12 | __export(require("./dragrotateandzoom.component"));
13 | __export(require("./dragzoom.component"));
14 | __export(require("./mousewheelzoom.component"));
15 | __export(require("./pinchzoom.component"));
16 | __export(require("./draw.component"));
17 | __export(require("./select.component"));
18 | __export(require("./translate.component"));
19 | __export(require("./modify.component"));
20 | //# sourceMappingURL=index.js.map
--------------------------------------------------------------------------------
/dist/components/interactions/index.js.map:
--------------------------------------------------------------------------------
1 | {"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":""}
--------------------------------------------------------------------------------
/dist/components/interactions/index.metadata.json:
--------------------------------------------------------------------------------
1 | [{"__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"}]}]
--------------------------------------------------------------------------------
/dist/components/interactions/mousewheelzoom.component.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | import { OnDestroy, OnInit } from '@angular/core';
3 | import { interaction } from 'openlayers';
4 | import { MapComponent } from '../map.component';
5 | export declare class MouseWheelZoomInteractionComponent implements OnInit, OnDestroy {
6 | private map;
7 | instance: interaction.MouseWheelZoom;
8 | duration: number;
9 | timeout: number;
10 | useAnchor: boolean;
11 | constructor(map: MapComponent);
12 | ngOnInit(): void;
13 | ngOnDestroy(): void;
14 | }
15 |
--------------------------------------------------------------------------------
/dist/components/interactions/mousewheelzoom.component.js.map:
--------------------------------------------------------------------------------
1 | {"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":""}
--------------------------------------------------------------------------------
/dist/components/interactions/pinchzoom.component.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | import { OnDestroy, OnInit } from '@angular/core';
3 | import { interaction } from 'openlayers';
4 | import { MapComponent } from '../map.component';
5 | export declare class PinchZoomInteractionComponent implements OnInit, OnDestroy {
6 | private map;
7 | instance: interaction.PinchZoom;
8 | duration: number;
9 | constrainResolution: boolean;
10 | constructor(map: MapComponent);
11 | ngOnInit(): void;
12 | ngOnDestroy(): void;
13 | }
14 |
--------------------------------------------------------------------------------
/dist/components/interactions/pinchzoom.component.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | Object.defineProperty(exports, "__esModule", { value: true });
3 | var core_1 = require("@angular/core");
4 | var openlayers_1 = require("openlayers");
5 | var map_component_1 = require("../map.component");
6 | var PinchZoomInteractionComponent = (function () {
7 | function PinchZoomInteractionComponent(map) {
8 | this.map = map;
9 | }
10 | PinchZoomInteractionComponent.prototype.ngOnInit = function () {
11 | this.instance = new openlayers_1.interaction.PinchZoom(this);
12 | this.map.instance.addInteraction(this.instance);
13 | };
14 | PinchZoomInteractionComponent.prototype.ngOnDestroy = function () {
15 | this.map.instance.removeInteraction(this.instance);
16 | };
17 | return PinchZoomInteractionComponent;
18 | }());
19 | PinchZoomInteractionComponent.decorators = [
20 | { type: core_1.Component, args: [{
21 | selector: 'aol-interaction-pinchzoom',
22 | template: ''
23 | },] },
24 | ];
25 | /** @nocollapse */
26 | PinchZoomInteractionComponent.ctorParameters = function () { return [
27 | { type: map_component_1.MapComponent, },
28 | ]; };
29 | PinchZoomInteractionComponent.propDecorators = {
30 | 'duration': [{ type: core_1.Input },],
31 | 'constrainResolution': [{ type: core_1.Input },],
32 | };
33 | exports.PinchZoomInteractionComponent = PinchZoomInteractionComponent;
34 | //# sourceMappingURL=pinchzoom.component.js.map
--------------------------------------------------------------------------------
/dist/components/interactions/pinchzoom.component.js.map:
--------------------------------------------------------------------------------
1 | {"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":""}
--------------------------------------------------------------------------------
/dist/components/layers/index.d.ts:
--------------------------------------------------------------------------------
1 | export * from './layer.component';
2 | export * from './layergroup.component';
3 | export * from './layerimage.component';
4 | export * from './layertile.component';
5 | export * from './layervector.component';
6 | export * from './layervectortile.component';
7 |
--------------------------------------------------------------------------------
/dist/components/layers/index.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | function __export(m) {
3 | for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
4 | }
5 | Object.defineProperty(exports, "__esModule", { value: true });
6 | __export(require("./layer.component"));
7 | __export(require("./layergroup.component"));
8 | __export(require("./layerimage.component"));
9 | __export(require("./layertile.component"));
10 | __export(require("./layervector.component"));
11 | __export(require("./layervectortile.component"));
12 | //# sourceMappingURL=index.js.map
--------------------------------------------------------------------------------
/dist/components/layers/index.js.map:
--------------------------------------------------------------------------------
1 | {"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":""}
--------------------------------------------------------------------------------
/dist/components/layers/index.metadata.json:
--------------------------------------------------------------------------------
1 | [{"__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"}]}]
--------------------------------------------------------------------------------
/dist/components/layers/layer.component.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | import { OnDestroy, OnInit, OnChanges, SimpleChanges } from '@angular/core';
3 | import { Extent } from 'openlayers';
4 | import { MapComponent } from '../map.component';
5 | import { LayerGroupComponent } from './layergroup.component';
6 | export declare abstract class LayerComponent implements OnInit, OnChanges, OnDestroy {
7 | protected host: LayerGroupComponent | MapComponent;
8 | instance: any;
9 | componentType: string;
10 | opacity: number;
11 | visible: boolean;
12 | extent: Extent;
13 | zIndex: number;
14 | minResolution: number;
15 | maxResolution: number;
16 | constructor(host: LayerGroupComponent | MapComponent);
17 | ngOnInit(): void;
18 | ngOnDestroy(): void;
19 | ngOnChanges(changes: SimpleChanges): void;
20 | }
21 |
--------------------------------------------------------------------------------
/dist/components/layers/layer.component.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | Object.defineProperty(exports, "__esModule", { value: true });
3 | var core_1 = require("@angular/core");
4 | var LayerComponent = (function () {
5 | function LayerComponent(host) {
6 | this.host = host;
7 | this.componentType = 'layer';
8 | }
9 | LayerComponent.prototype.ngOnInit = function () {
10 | this.host.instance.getLayers().push(this.instance);
11 | };
12 | LayerComponent.prototype.ngOnDestroy = function () {
13 | this.host.instance.getLayers().remove(this.instance);
14 | };
15 | LayerComponent.prototype.ngOnChanges = function (changes) {
16 | var properties = {};
17 | if (!this.instance) {
18 | return;
19 | }
20 | for (var key in changes) {
21 | if (changes.hasOwnProperty(key)) {
22 | properties[key] = changes[key].currentValue;
23 | }
24 | }
25 | // console.log('changes detected in aol-layer, setting new properties: ', properties);
26 | this.instance.setProperties(properties, false);
27 | };
28 | return LayerComponent;
29 | }());
30 | LayerComponent.propDecorators = {
31 | 'opacity': [{ type: core_1.Input },],
32 | 'visible': [{ type: core_1.Input },],
33 | 'extent': [{ type: core_1.Input },],
34 | 'zIndex': [{ type: core_1.Input },],
35 | 'minResolution': [{ type: core_1.Input },],
36 | 'maxResolution': [{ type: core_1.Input },],
37 | };
38 | exports.LayerComponent = LayerComponent;
39 | //# sourceMappingURL=layer.component.js.map
--------------------------------------------------------------------------------
/dist/components/layers/layer.component.js.map:
--------------------------------------------------------------------------------
1 | {"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":""}
--------------------------------------------------------------------------------
/dist/components/layers/layertile.component.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | import { OnDestroy, OnInit } from '@angular/core';
3 | import { source } from 'openlayers';
4 | import { MapComponent } from '../map.component';
5 | import { LayerComponent } from './layer.component';
6 | import { LayerGroupComponent } from './layergroup.component';
7 | export declare class LayerTileComponent extends LayerComponent implements OnInit, OnDestroy {
8 | source: source.Tile;
9 | preload: number;
10 | useInterimTilesOnError: boolean;
11 | constructor(map: MapComponent, group?: LayerGroupComponent);
12 | ngOnInit(): void;
13 | }
14 |
--------------------------------------------------------------------------------
/dist/components/layers/layertile.component.js.map:
--------------------------------------------------------------------------------
1 | {"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":""}
--------------------------------------------------------------------------------
/dist/components/layers/layervector.component.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | import { OnDestroy, OnInit } from '@angular/core';
3 | import { source } from 'openlayers';
4 | import { MapComponent } from '../map.component';
5 | import { LayerComponent } from './layer.component';
6 | import { LayerGroupComponent } from './layergroup.component';
7 | export declare class LayerVectorComponent extends LayerComponent implements OnInit, OnDestroy {
8 | source: source.Vector;
9 | renderBuffer: number;
10 | constructor(map: MapComponent, group?: LayerGroupComponent);
11 | ngOnInit(): void;
12 | }
13 |
--------------------------------------------------------------------------------
/dist/components/layers/layervector.component.js.map:
--------------------------------------------------------------------------------
1 | {"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":""}
--------------------------------------------------------------------------------
/dist/components/layers/layervectortile.component.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | import { OnInit } from '@angular/core';
3 | import { layer, style, StyleFunction } from 'openlayers';
4 | import { MapComponent } from '../map.component';
5 | import { LayerComponent } from './layer.component';
6 | import { LayerGroupComponent } from './layergroup.component';
7 | export declare class LayerVectorTileComponent extends LayerComponent implements OnInit {
8 | renderBuffer: number;
9 | renderMode: layer.VectorTileRenderType | string;
10 | renderOrder: (feature1: ol.Feature, feature2: ol.Feature) => number;
11 | style: (style.Style | style.Style[] | StyleFunction);
12 | updateWhileAnimating: boolean;
13 | updateWhileInteracting: boolean;
14 | visible: boolean;
15 | constructor(map: MapComponent, group?: LayerGroupComponent);
16 | ngOnInit(): void;
17 | }
18 |
--------------------------------------------------------------------------------
/dist/components/layers/layervectortile.component.js.map:
--------------------------------------------------------------------------------
1 | {"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":""}
--------------------------------------------------------------------------------
/dist/components/map.component.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | import { OnInit, ElementRef, EventEmitter, AfterViewInit, SimpleChanges, OnChanges } from '@angular/core';
3 | import { Map, MapBrowserEvent, MapEvent, render, ObjectEvent, control, interaction } from 'openlayers';
4 | export declare class MapComponent implements OnInit, AfterViewInit, OnChanges {
5 | private host;
6 | instance: Map;
7 | componentType: string;
8 | width: string;
9 | height: string;
10 | pixelRatio: number;
11 | keyboardEventTarget: Element | string;
12 | loadTilesWhileAnimating: boolean;
13 | loadTilesWhileInteracting: boolean;
14 | logo: string | boolean;
15 | renderer: 'canvas' | 'webgl';
16 | onClick: EventEmitter;
17 | onDblClick: EventEmitter;
18 | onMoveEnd: EventEmitter;
19 | onPointerDrag: EventEmitter;
20 | onPointerMove: EventEmitter;
21 | onPostCompose: EventEmitter;
22 | onPostRender: EventEmitter;
23 | onPreCompose: EventEmitter;
24 | onPropertyChange: EventEmitter;
25 | onSingleClick: EventEmitter;
26 | controls: control.Control[];
27 | interactions: interaction.Interaction[];
28 | constructor(host: ElementRef);
29 | ngOnInit(): void;
30 | ngOnChanges(changes: SimpleChanges): void;
31 | ngAfterViewInit(): void;
32 | }
33 |
--------------------------------------------------------------------------------
/dist/components/overlay.component.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | import { OnDestroy, OnInit } from '@angular/core';
3 | import { MapComponent } from './map.component';
4 | import { Overlay, OverlayPositioning } from 'openlayers';
5 | import { ContentComponent } from './content.component';
6 | export declare class OverlayComponent implements OnInit, OnDestroy {
7 | private map;
8 | componentType: string;
9 | instance: Overlay;
10 | element: Element;
11 | content: ContentComponent;
12 | id: number | string;
13 | offset: number[];
14 | positioning: OverlayPositioning | string;
15 | stopEvent: boolean;
16 | insertFirst: boolean;
17 | autoPan: boolean;
18 | autoPanAnimation: olx.animation.PanOptions;
19 | autoPanMargin: number;
20 | constructor(map: MapComponent);
21 | ngOnInit(): void;
22 | ngOnDestroy(): void;
23 | }
24 |
--------------------------------------------------------------------------------
/dist/components/overlay.component.js.map:
--------------------------------------------------------------------------------
1 | {"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":""}
--------------------------------------------------------------------------------
/dist/components/sources/bingmaps.component.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | import { OnInit } from '@angular/core';
3 | import { source, TileLoadFunctionType } from 'openlayers';
4 | import { LayerTileComponent } from '../layers';
5 | import { SourceComponent } from './source.component';
6 | export declare class SourceBingmapsComponent extends SourceComponent implements OnInit {
7 | instance: source.BingMaps;
8 | cacheSize: number;
9 | hidpi: boolean;
10 | culture: string;
11 | key: string;
12 | imagerySet: 'Road' | 'Aerial' | 'AerialWithLabels' | 'collinsBart' | 'ordnanceSurvey';
13 | maxZoom: number;
14 | reprojectionErrorThreshold: number;
15 | tileLoadFunction: TileLoadFunctionType;
16 | wrapX: boolean;
17 | constructor(layer: LayerTileComponent);
18 | ngOnInit(): void;
19 | }
20 |
--------------------------------------------------------------------------------
/dist/components/sources/bingmaps.component.js.map:
--------------------------------------------------------------------------------
1 | {"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":""}
--------------------------------------------------------------------------------
/dist/components/sources/geojson.component.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | import { OnInit } from '@angular/core';
3 | import { source, ProjectionLike, format } from 'openlayers';
4 | import { LayerVectorComponent } from '../layers';
5 | import { SourceComponent } from './source.component';
6 | export declare class SourceGeoJSONComponent extends SourceComponent implements OnInit {
7 | instance: source.Vector;
8 | format: format.Feature;
9 | defaultDataProjection: ProjectionLike;
10 | featureProjection: ProjectionLike;
11 | geometryName: string;
12 | url: string;
13 | constructor(layer: LayerVectorComponent);
14 | ngOnInit(): void;
15 | }
16 |
--------------------------------------------------------------------------------
/dist/components/sources/geojson.component.js.map:
--------------------------------------------------------------------------------
1 | {"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":""}
--------------------------------------------------------------------------------
/dist/components/sources/index.d.ts:
--------------------------------------------------------------------------------
1 | export * from './bingmaps.component';
2 | export * from './osm.component';
3 | export * from './source.component';
4 | export * from './vector.component';
5 | export * from './vectortile.component';
6 | export * from './xyz.component';
7 | export * from './tilewms.component';
8 | export * from './geojson.component';
9 | export * from './tilewmts.component';
10 | export * from './imagewms.component';
11 |
--------------------------------------------------------------------------------
/dist/components/sources/index.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | function __export(m) {
3 | for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
4 | }
5 | Object.defineProperty(exports, "__esModule", { value: true });
6 | __export(require("./bingmaps.component"));
7 | __export(require("./osm.component"));
8 | __export(require("./source.component"));
9 | __export(require("./vector.component"));
10 | __export(require("./vectortile.component"));
11 | __export(require("./xyz.component"));
12 | __export(require("./tilewms.component"));
13 | __export(require("./geojson.component"));
14 | __export(require("./tilewmts.component"));
15 | __export(require("./imagewms.component"));
16 | //# sourceMappingURL=index.js.map
--------------------------------------------------------------------------------
/dist/components/sources/index.js.map:
--------------------------------------------------------------------------------
1 | {"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":""}
--------------------------------------------------------------------------------
/dist/components/sources/index.metadata.json:
--------------------------------------------------------------------------------
1 | [{"__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"}]}]
--------------------------------------------------------------------------------
/dist/components/sources/osm.component.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | import { AfterContentInit } from '@angular/core';
3 | import { source, AttributionLike, TileLoadFunctionType } from 'openlayers';
4 | import { LayerTileComponent } from '../layers';
5 | import { SourceXYZComponent } from './xyz.component';
6 | export declare class SourceOsmComponent extends SourceXYZComponent implements AfterContentInit {
7 | instance: source.OSM;
8 | attributions: AttributionLike;
9 | cacheSize: number;
10 | crossOrigin: string;
11 | maxZoom: number;
12 | opaque: boolean;
13 | reprojectionErrorThreshold: number;
14 | tileLoadFunction: TileLoadFunctionType;
15 | url: string;
16 | wrapX: boolean;
17 | constructor(layer: LayerTileComponent);
18 | ngAfterContentInit(): void;
19 | }
20 |
--------------------------------------------------------------------------------
/dist/components/sources/osm.component.js.map:
--------------------------------------------------------------------------------
1 | {"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,CAAC,QAAQ,CAAC,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC9C,CAAC;IAyBH,yBAAC;AAAD,CAhDA,AAgDC,CAhDuC,kCAAkB;AAwBnD,6BAAU,GAA0B;IAC3C,EAAE,IAAI,EAAE,gBAAS,EAAE,IAAI,EAAE,CAAC;gBACxB,QAAQ,EAAE,gBAAgB;gBAC1B,QAAQ,EAAE,sCAAoC;gBAC9C,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;IAC9F,EAAC,IAAI,EAAE,2BAAkB,EAAE,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,WAAI,EAAE,EAAG,EAAC;CACzD,EAF6F,CAE7F,CAAC;AACK,iCAAc,GAA2C;IAChE,cAAc,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IAClC,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,QAAQ,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IAC5B,4BAA4B,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IAChD,kBAAkB,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IACtC,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IACzB,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;CAC1B,CAAC;AA/CW,gDAAkB","file":"osm.component.js","sourceRoot":""}
--------------------------------------------------------------------------------
/dist/components/sources/source.component.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | import { OnDestroy, OnInit } from '@angular/core';
3 | import { source } from 'openlayers';
4 | import { LayerComponent } from '../layers';
5 | import AttributionLike = ol.AttributionLike;
6 | export declare class SourceComponent implements OnInit, OnDestroy {
7 | protected host: LayerComponent;
8 | instance: source.Source;
9 | componentType: string;
10 | attributions: AttributionLike;
11 | constructor(host: LayerComponent);
12 | ngOnInit(): void;
13 | ngOnDestroy(): void;
14 | }
15 |
--------------------------------------------------------------------------------
/dist/components/sources/source.component.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | Object.defineProperty(exports, "__esModule", { value: true });
3 | var core_1 = require("@angular/core");
4 | var layers_1 = require("../layers");
5 | var SourceComponent = (function () {
6 | function SourceComponent(host) {
7 | this.host = host;
8 | this.componentType = 'source';
9 | }
10 | SourceComponent.prototype.ngOnInit = function () {
11 | this.host.instance.setSource(this.instance);
12 | };
13 | SourceComponent.prototype.ngOnDestroy = function () {
14 | this.host.instance.setSource(null);
15 | };
16 | return SourceComponent;
17 | }());
18 | /** @nocollapse */
19 | SourceComponent.ctorParameters = function () { return [
20 | { type: layers_1.LayerComponent, decorators: [{ type: core_1.Host },] },
21 | ]; };
22 | SourceComponent.propDecorators = {
23 | 'attributions': [{ type: core_1.Input },],
24 | };
25 | exports.SourceComponent = SourceComponent;
26 | //# sourceMappingURL=source.component.js.map
--------------------------------------------------------------------------------
/dist/components/sources/source.component.js.map:
--------------------------------------------------------------------------------
1 | {"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":""}
--------------------------------------------------------------------------------
/dist/components/sources/source.component.metadata.json:
--------------------------------------------------------------------------------
1 | [{"__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"}]}}}}]
--------------------------------------------------------------------------------
/dist/components/sources/tilewms.component.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | import { OnInit } from '@angular/core';
3 | import { source, TileLoadFunctionType, tilegrid } from 'openlayers';
4 | import { LayerTileComponent } from '../layers';
5 | import { SourceComponent } from './source.component';
6 | export declare class SourceTileWMSComponent extends SourceComponent implements OnInit {
7 | instance: source.TileWMS;
8 | cacheSize: number;
9 | crossOrigin: string;
10 | gutter: number;
11 | hidpi: boolean;
12 | params: Object;
13 | projection: string;
14 | reprojectionErrorThreshold: number;
15 | serverType: string;
16 | tileGrid: tilegrid.TileGrid;
17 | tileLoadFunction: TileLoadFunctionType;
18 | url: string;
19 | urls: string[];
20 | wrapX: boolean;
21 | constructor(layer: LayerTileComponent);
22 | ngOnInit(): void;
23 | }
24 |
--------------------------------------------------------------------------------
/dist/components/sources/vector.component.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | import { OnInit } from '@angular/core';
3 | import { source } from 'openlayers';
4 | import { LayerVectorComponent } from '../layers';
5 | import { SourceComponent } from './source.component';
6 | export declare class SourceVectorComponent extends SourceComponent implements OnInit {
7 | instance: source.Vector;
8 | overlaps: boolean;
9 | useSpatialIndex: boolean;
10 | wrapX: boolean;
11 | url: string;
12 | format: ol.format.Feature;
13 | strategy: ol.LoadingStrategy;
14 | constructor(layer: LayerVectorComponent);
15 | ngOnInit(): void;
16 | }
17 |
--------------------------------------------------------------------------------
/dist/components/sources/vector.component.js.map:
--------------------------------------------------------------------------------
1 | {"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":""}
--------------------------------------------------------------------------------
/dist/components/sources/vectortile.component.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | import { AfterContentInit } from '@angular/core';
3 | import { source, ProjectionLike, TileUrlFunctionType, format, tilegrid } from 'openlayers';
4 | import { LayerVectorTileComponent } from '../layers';
5 | import { FormatComponent } from '../formats';
6 | import { TileGridComponent } from '../tilegrid.component';
7 | import { SourceComponent } from './source.component';
8 | export declare class SourceVectorTileComponent extends SourceComponent implements AfterContentInit {
9 | instance: source.VectorTile;
10 | cacheSize: number;
11 | overlaps: boolean;
12 | projection: ProjectionLike;
13 | tilePixelRatio: number;
14 | tileUrlFunction: TileUrlFunctionType;
15 | url: string;
16 | urls: string[];
17 | wrapX: boolean;
18 | formatComponent: FormatComponent;
19 | format: format.Feature;
20 | tileGridComponent: TileGridComponent;
21 | tileGrid: tilegrid.TileGrid;
22 | constructor(layer: LayerVectorTileComponent);
23 | ngAfterContentInit(): void;
24 | }
25 |
--------------------------------------------------------------------------------
/dist/components/sources/xyz.component.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | import { AfterContentInit, OnChanges, SimpleChanges } from '@angular/core';
3 | import { source, Size, TileUrlFunctionType, TileLoadFunctionType, tilegrid } from 'openlayers';
4 | import { LayerTileComponent } from '../layers';
5 | import { SourceComponent } from './source.component';
6 | import { TileGridComponent } from '../tilegrid.component';
7 | export declare class SourceXYZComponent extends SourceComponent implements AfterContentInit, OnChanges {
8 | instance: source.XYZ;
9 | cacheSize: number;
10 | crossOrigin: string;
11 | opaque: boolean;
12 | projection: string;
13 | reprojectionErrorThreshold: number;
14 | minZoom: number;
15 | maxZoom: number;
16 | tileGrid: tilegrid.TileGrid;
17 | tileLoadFunction?: TileLoadFunctionType;
18 | tilePixelRatio: number;
19 | tileSize: number | Size;
20 | tileUrlFunction: TileUrlFunctionType;
21 | url: string;
22 | urls: string[];
23 | wrapX: boolean;
24 | tileGridXYZ: TileGridComponent;
25 | constructor(layer: LayerTileComponent);
26 | ngAfterContentInit(): void;
27 | ngOnChanges(changes: SimpleChanges): void;
28 | }
29 |
--------------------------------------------------------------------------------
/dist/components/styles/circle.component.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | import { AfterContentInit, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
3 | import { style } from 'openlayers';
4 | import { StyleComponent } from './style.component';
5 | export declare class StyleCircleComponent implements AfterContentInit, OnChanges, OnDestroy {
6 | private host;
7 | componentType: string;
8 | instance: style.Circle;
9 | fill: style.Fill;
10 | radius: number;
11 | snapToPixel: boolean;
12 | stroke: style.Stroke;
13 | atlasManager: style.AtlasManager;
14 | constructor(host: StyleComponent);
15 | /**
16 | * WORK-AROUND: since the re-rendering is not triggered on style change
17 | * we trigger a radius change.
18 | * see openlayers #6233 and #5775
19 | */
20 | update(): void;
21 | ngAfterContentInit(): void;
22 | ngOnChanges(changes: SimpleChanges): void;
23 | ngOnDestroy(): void;
24 | }
25 |
--------------------------------------------------------------------------------
/dist/components/styles/fill.component.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | import { OnInit, OnChanges, SimpleChanges } from '@angular/core';
3 | import { style, Color, ColorLike } from 'openlayers';
4 | import { StyleComponent } from './style.component';
5 | import { StyleCircleComponent } from './circle.component';
6 | import { StyleTextComponent } from './text.component';
7 | export declare class StyleFillComponent implements OnInit, OnChanges {
8 | private host;
9 | instance: style.Fill;
10 | color: Color | ColorLike;
11 | constructor(styleHost: StyleComponent, styleCircleHost: StyleCircleComponent, styleTextHost: StyleTextComponent);
12 | ngOnInit(): void;
13 | ngOnChanges(changes: SimpleChanges): void;
14 | }
15 |
--------------------------------------------------------------------------------
/dist/components/styles/icon.component.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | import { OnInit, OnChanges, SimpleChanges } from '@angular/core';
3 | import { style } from 'openlayers';
4 | import { StyleComponent } from './style.component';
5 | export declare class StyleIconComponent implements OnInit, OnChanges {
6 | private host;
7 | instance: style.Icon;
8 | anchor: [number, number];
9 | anchorXUnits: style.IconAnchorUnits;
10 | anchorYUnits: style.IconAnchorUnits;
11 | anchorOrigin: style.IconOrigin;
12 | color: [number, number, number, number];
13 | crossOrigin: style.IconOrigin;
14 | img: string;
15 | offset: [number, number];
16 | offsetOrigin: style.IconOrigin;
17 | opacity: number;
18 | scale: number;
19 | snapToPixel: boolean;
20 | rotateWithView: boolean;
21 | rotation: number;
22 | size: [number, number];
23 | imgSize: [number, number];
24 | src: string;
25 | constructor(host: StyleComponent);
26 | ngOnInit(): void;
27 | ngOnChanges(changes: SimpleChanges): void;
28 | }
29 |
--------------------------------------------------------------------------------
/dist/components/styles/index.d.ts:
--------------------------------------------------------------------------------
1 | export * from './circle.component';
2 | export * from './fill.component';
3 | export * from './icon.component';
4 | export * from './stroke.component';
5 | export * from './style.component';
6 | export * from './text.component';
7 |
--------------------------------------------------------------------------------
/dist/components/styles/index.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | function __export(m) {
3 | for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
4 | }
5 | Object.defineProperty(exports, "__esModule", { value: true });
6 | __export(require("./circle.component"));
7 | __export(require("./fill.component"));
8 | __export(require("./icon.component"));
9 | __export(require("./stroke.component"));
10 | __export(require("./style.component"));
11 | __export(require("./text.component"));
12 | //# sourceMappingURL=index.js.map
--------------------------------------------------------------------------------
/dist/components/styles/index.js.map:
--------------------------------------------------------------------------------
1 | {"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":""}
--------------------------------------------------------------------------------
/dist/components/styles/index.metadata.json:
--------------------------------------------------------------------------------
1 | [{"__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"}]}]
--------------------------------------------------------------------------------
/dist/components/styles/stroke.component.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | import { OnInit, OnChanges, SimpleChanges } from '@angular/core';
3 | import { style, Color } from 'openlayers';
4 | import { StyleComponent } from './style.component';
5 | import { StyleCircleComponent } from './circle.component';
6 | import { StyleTextComponent } from './text.component';
7 | export declare class StyleStrokeComponent implements OnInit, OnChanges {
8 | instance: style.Stroke;
9 | private host;
10 | color: Color | undefined;
11 | lineCap: string | undefined;
12 | lineDash: number[] | undefined;
13 | lineJoin: string | undefined;
14 | miterLimit: number | undefined;
15 | width: number | undefined;
16 | constructor(styleHost: StyleComponent, styleCircleHost: StyleCircleComponent, styleTextHost: StyleTextComponent);
17 | ngOnInit(): void;
18 | ngOnChanges(changes: SimpleChanges): void;
19 | }
20 |
--------------------------------------------------------------------------------
/dist/components/styles/style.component.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | import { OnInit } from '@angular/core';
3 | import { style, StyleGeometryFunction, geom } from 'openlayers';
4 | import { FeatureComponent } from '../feature.component';
5 | import { LayerVectorComponent } from '../layers';
6 | export declare class StyleComponent implements OnInit {
7 | private host;
8 | instance: style.Style;
9 | componentType: string;
10 | geometry: string | geom.Geometry | StyleGeometryFunction;
11 | fill: style.Fill;
12 | image: style.Image;
13 | stroke: style.Stroke;
14 | text: style.Text;
15 | zIndex: number;
16 | constructor(featureHost: FeatureComponent, layerHost: LayerVectorComponent);
17 | update(): void;
18 | ngOnInit(): void;
19 | }
20 |
--------------------------------------------------------------------------------
/dist/components/styles/style.component.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../../src/components/styles/style.component.ts"],"names":[],"mappings":";;AAAA,sCAAmE;AACnE,yCAAgE;AAChE,0DAAwD;AACxD,oCAAiD;AAGjD;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;IAoBH,qBAAC;AAAD,CApDA,AAoDC;AAnBM,yBAAU,GAA0B;IAC3C,EAAE,IAAI,EAAE,gBAAS,EAAE,IAAI,EAAE,CAAC;gBACxB,QAAQ,EAAE,WAAW;gBACrB,QAAQ,EAAE,2BAA2B;aACtC,EAAG,EAAE;CACL,CAAC;AACF,kBAAkB;AACX,6BAAc,GAAmE,cAAM,OAAA;IAC9F,EAAC,IAAI,EAAE,oCAAgB,EAAE,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,eAAQ,EAAE,EAAG,EAAC;IAC5D,EAAC,IAAI,EAAE,6BAAoB,EAAE,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,eAAQ,EAAE,EAAG,EAAC;CAC/D,EAH6F,CAG7F,CAAC;AACK,6BAAc,GAA2C;IAChE,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IAC9B,MAAM,EAAE,CAAC,EAAE,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":""}
--------------------------------------------------------------------------------
/dist/components/styles/text.component.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | import { OnInit, OnChanges, SimpleChanges } from '@angular/core';
3 | import { style } from 'openlayers';
4 | import { StyleComponent } from './style.component';
5 | export declare class StyleTextComponent implements OnInit, OnChanges {
6 | private host;
7 | instance: style.Text;
8 | componentType: string;
9 | font: string | undefined;
10 | offsetX: number | undefined;
11 | offsetY: number | undefined;
12 | scale: number | undefined;
13 | rotateWithView: boolean | undefined;
14 | rotation: number | undefined;
15 | text: string | undefined;
16 | textAlign: string | undefined;
17 | textBaseLine: string | undefined;
18 | constructor(host: StyleComponent);
19 | ngOnInit(): void;
20 | ngOnChanges(changes: SimpleChanges): void;
21 | }
22 |
--------------------------------------------------------------------------------
/dist/components/tilegrid.component.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | import { OnChanges, OnInit, SimpleChanges } from '@angular/core';
3 | import { tilegrid, Extent, Size, Coordinate } from 'openlayers';
4 | export declare class TileGridComponent implements OnInit, OnChanges {
5 | instance: tilegrid.TileGrid;
6 | extent: Extent;
7 | maxZoom: number;
8 | minZoom: number;
9 | tileSize: number | Size;
10 | origin?: Coordinate;
11 | resolutions: number[];
12 | ngOnInit(): void;
13 | ngOnChanges(changes: SimpleChanges): void;
14 | }
15 |
--------------------------------------------------------------------------------
/dist/components/tilegrid.component.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../../src/components/tilegrid.component.ts"],"names":[],"mappings":";;AAAA,sCAAmF;AACnF,yCAAgE;AAGhE;IAAA;IA0CA,CAAC;IAhCC,oCAAQ,GAAR;QACE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;YACtB,IAAI,CAAC,QAAQ,GAAG,qBAAQ,CAAC,SAAS,CAAC,IAAI,CAAC,CAAA;QAC1C,CAAC;QAAC,IAAI,CAAC,CAAC;YACN,IAAI,CAAC,QAAQ,GAAG,IAAI,qBAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QAC9C,CAAC;IACH,CAAC;IAED,uCAAW,GAAX,UAAY,OAAsB;QAChC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;YACtB,IAAI,CAAC,QAAQ,GAAG,qBAAQ,CAAC,SAAS,CAAC,IAAI,CAAC,CAAA;QAC1C,CAAC;QAAC,IAAI,CAAC,CAAC;YACN,IAAI,CAAC,QAAQ,GAAG,IAAI,qBAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QAC9C,CAAC;IACH,CAAC;IAkBH,wBAAC;AAAD,CA1CA,AA0CC;AAjBM,4BAAU,GAA0B;IAC3C,EAAE,IAAI,EAAE,gBAAS,EAAE,IAAI,EAAE,CAAC;gBACxB,QAAQ,EAAE,cAAc;gBACxB,QAAQ,EAAE,EAAE;aACb,EAAG,EAAE;CACL,CAAC;AACF,kBAAkB;AACX,gCAAc,GAAmE,cAAM,OAAA,EAC7F,EAD6F,CAC7F,CAAC;AACK,gCAAc,GAA2C;IAChE,QAAQ,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IAC5B,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IAC7B,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IAC7B,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;IAC9B,QAAQ,EAAE,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":""}
--------------------------------------------------------------------------------
/dist/components/view.component.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | import { OnInit, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
3 | import { View, Extent, Coordinate } from 'openlayers';
4 | import { MapComponent } from './map.component';
5 | export declare class ViewComponent implements OnInit, OnChanges, OnDestroy {
6 | private host;
7 | instance: View;
8 | componentType: string;
9 | constrainRotation: boolean | number;
10 | enableRotation: boolean;
11 | extent: Extent;
12 | maxResolution: number;
13 | minResolution: number;
14 | maxZoom: number;
15 | minZoom: number;
16 | resolution: number;
17 | resolutions: number[];
18 | rotation: number;
19 | zoom: number;
20 | zoomFactor: number;
21 | center: Coordinate;
22 | projection: string;
23 | constructor(host: MapComponent);
24 | ngOnInit(): void;
25 | ngOnChanges(changes: SimpleChanges): void;
26 | ngOnDestroy(): void;
27 | }
28 |
--------------------------------------------------------------------------------
/dist/index.d.ts:
--------------------------------------------------------------------------------
1 | export * from './components';
2 | export declare class AngularOpenlayersModule {
3 | }
4 |
--------------------------------------------------------------------------------
/dist/index.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;AAAA,sCAAyC;AACzC,0CAA+C;AAC/C,2CAqBsB;AAEtB,kCAA6B;AAE7B,IAAM,UAAA,GAAa;IACjB,yBAAY;IAEZ,0BAAa;IACb,+BAAkB;IAElB,gCAAmB;IACnB,gCAAmB;IACnB,+BAAkB;IAClB,iCAAoB;IACpB,qCAAwB;IAExB,+BAAkB;IAClB,oCAAuB;IACvB,kCAAqB;IACrB,+BAAkB;IAClB,sCAAyB;IACzB,mCAAsB;IACtB,oCAAuB;IACvB,mCAAsB;IACtB,oCAAuB;IACvB,6BAAgB;IAChB,wCAA2B;IAC3B,mCAAsB;IACtB,qCAAwB;IACxB,gCAAmB;IACnB,2CAA8B;IAE9B,2BAAc;IACd,iCAAoB;IACpB,+BAAkB;IAClB,+BAAkB;IAClB,iCAAoB;IACpB,+BAAkB;IAElB,oCAAuB;IACvB,6BAAgB;IAChB,wCAA2B;IAC3B,uCAA0B;IAC1B,0CAA6B;IAC7B,wCAA2B;IAC3B,mCAAsB;IACtB,sCAAyB;IACzB,iCAAoB;IACpB,uCAA0B;IAC1B,yCAA4B;IAE5B,+BAAkB;IAClB,8BAAiB;IACjB,kCAAqB;IAErB,wCAA2B;IAC3B,gDAAmC;IACnC,4CAA+B;IAC/B,wCAA2B;IAC3B,wCAA2B;IAC3B,2CAA8B;IAC9B,kDAAqC;IACrC,yCAA4B;IAC5B,+CAAkC;IAClC,0CAA6B;IAC7B,qCAAwB;IACxB,uCAA0B;IAC1B,uCAA0B;IAC1B,0CAA6B;IAE7B,6BAAgB;IAChB,6BAAgB;IAChB,iCAAoB;IACpB,kCAAqB;CACtB,CAAC;AAGF;IAAA;IAUA,CAAC;IAAD,8BAAC;AAAD,CAVA,AAUC;AAV6C,kCAAU,GAA0B;IAClF,EAAE,IAAI,EAAE,eAAQ,EAAE,IAAI,EAAE,CAAC;gBACvB,YAAY,EAAE,UAAU;gBACxB,OAAO,EAAE,CAAC,qBAAY,CAAC;gBACvB,OAAO,EAAE,UAAU;aACpB,EAAG,EAAE;CACL,CAAC;AACF,kBAAkB;AACX,sCAAc,GAAmE,cAAM,OAAA,EAC7F,EAD6F,CAC7F,CAAC;AATW,0DAAuB","file":"index.js","sourceRoot":""}
--------------------------------------------------------------------------------
/example/.gitignore:
--------------------------------------------------------------------------------
1 | # See http://help.github.com/ignore-files/ for more about ignoring files.
2 |
3 | # compiled output
4 | /dist
5 | /tmp
6 | /out-tsc
7 |
8 | # dependencies
9 | /node_modules
10 |
11 | # IDEs and editors
12 | /.idea
13 | .project
14 | .classpath
15 | .c9/
16 | *.launch
17 | .settings/
18 | *.sublime-workspace
19 |
20 | # IDE - VSCode
21 | .vscode/*
22 | !.vscode/settings.json
23 | !.vscode/tasks.json
24 | !.vscode/launch.json
25 | !.vscode/extensions.json
26 |
27 | # misc
28 | /.sass-cache
29 | /connect.lock
30 | /coverage
31 | /libpeerconnection.log
32 | npm-debug.log
33 | testem.log
34 | /typings
35 |
36 | # e2e
37 | /e2e/*.js
38 | /e2e/*.map
39 |
40 | # System Files
41 | .DS_Store
42 | Thumbs.db
43 |
--------------------------------------------------------------------------------
/example/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "example",
3 | "version": "0.0.0",
4 | "license": "MIT",
5 | "scripts": {
6 | "ng": "ng",
7 | "start": "ng serve",
8 | "build": "ng build",
9 | "test": "ng test",
10 | "lint": "ng lint",
11 | "e2e": "ng e2e"
12 | },
13 | "private": true,
14 | "dependencies": {
15 | "@angular/animations": "^5.0.0",
16 | "@angular/common": "^5.0.0",
17 | "@angular/compiler": "^5.0.0",
18 | "@angular/core": "^5.0.0",
19 | "@angular/forms": "^5.0.0",
20 | "@angular/http": "^5.0.0",
21 | "@angular/platform-browser": "^5.0.0",
22 | "@angular/platform-browser-dynamic": "^5.0.0",
23 | "@angular/router": "^5.0.0",
24 | "core-js": "^2.4.1",
25 | "ngx-openlayers": "^0.8.21",
26 | "rxjs": "^5.5.2",
27 | "zone.js": "^0.8.14"
28 | },
29 | "devDependencies": {
30 | "@angular/cli": "1.6.8",
31 | "@angular/compiler-cli": "^5.0.0",
32 | "@angular/language-service": "^5.0.0",
33 | "typescript": "~2.4.2"
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/example/src/app/app.component.css:
--------------------------------------------------------------------------------
1 | nav {
2 | display: flex;
3 | }
4 |
5 | nav a {
6 | display: flex;
7 | color: black;
8 | border: 1px black solid;
9 | text-decoration: none;
10 | padding: 5px 10px;
11 | margin: 5px;
12 | border-radius: 5px;
13 | }
14 |
15 | nav a.active {
16 | background: lightblue;
17 | }
18 |
--------------------------------------------------------------------------------
/example/src/app/app.component.html:
--------------------------------------------------------------------------------
1 | ngx-openlayer demo
2 |
3 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/example/src/app/app.component.ts:
--------------------------------------------------------------------------------
1 | import {Component} from '@angular/core';
2 |
3 | @Component({
4 | selector: 'app-root',
5 | templateUrl: './app.component.html',
6 | styleUrls: ['./app.component.css'],
7 | })
8 | export class AppComponent {}
9 |
--------------------------------------------------------------------------------
/example/src/app/app.module.ts:
--------------------------------------------------------------------------------
1 | import {BrowserModule} from '@angular/platform-browser';
2 | import {NgModule} from '@angular/core';
3 | import {FormsModule} from '@angular/forms';
4 | import {AngularOpenlayersModule} from 'ngx-openlayers';
5 |
6 | import {AppComponent} from './app.component';
7 | import {AppRoutingModule} from './app.routing';
8 | import {ClusterComponent} from './cluster/cluster.component';
9 | import {BasicComponent} from './basic/basic.component';
10 | import {RasterComponent} from './raster/raster.component';
11 |
12 | @NgModule({
13 | declarations: [
14 | AppComponent,
15 | BasicComponent,
16 | ClusterComponent,
17 | RasterComponent
18 | ],
19 | imports: [
20 | BrowserModule,
21 | FormsModule,
22 | AppRoutingModule,
23 | AngularOpenlayersModule
24 | ],
25 | providers: [],
26 | bootstrap: [AppComponent]
27 | })
28 | export class AppModule { }
29 |
--------------------------------------------------------------------------------
/example/src/app/app.routing.ts:
--------------------------------------------------------------------------------
1 | import { NgModule } from '@angular/core';
2 | import { Routes, RouterModule } from '@angular/router';
3 | import { ClusterComponent } from './cluster/cluster.component';
4 | import { BasicComponent } from './basic/basic.component';
5 | import { RasterComponent } from './raster/raster.component';
6 |
7 | const routes: Routes = [
8 | { path: '', redirectTo: '/basic', pathMatch: 'full' },
9 | { path: 'basic', component: BasicComponent },
10 | { path: 'cluster', component: ClusterComponent },
11 | { path: 'raster', component: RasterComponent },
12 | { path: '**', redirectTo: '/basic' }
13 | ];
14 |
15 | @NgModule({
16 | imports: [RouterModule.forRoot(routes)],
17 | exports: [RouterModule]
18 | })
19 | export class AppRoutingModule { }
20 |
--------------------------------------------------------------------------------
/example/src/app/basic/basic.component.ts:
--------------------------------------------------------------------------------
1 | import {Component} from '@angular/core';
2 |
3 | @Component({
4 | selector: 'app-root',
5 | templateUrl: './basic.component.html'
6 | })
7 | export class BasicComponent {
8 | public zoom = 15;
9 | public opacity = 1.0;
10 | public width = 5;
11 |
12 | increaseZoom() {
13 | this.zoom = Math.min(this.zoom + 1, 18);
14 | console.log('zoom: ', this.zoom);
15 | }
16 |
17 | decreaseZoom() {
18 | this.zoom = Math.max(this.zoom - 1, 1);
19 | console.log('zoom: ', this.zoom);
20 | }
21 |
22 | increaseOpacity() {
23 | this.opacity = Math.min(this.opacity + 0.1, 1);
24 | console.log('opacity: ', this.opacity);
25 | }
26 |
27 | decreaseOpacity() {
28 | this.opacity = Math.max(this.opacity - 0.1, 0);
29 | console.log('opacity: ', this.opacity);
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/example/src/app/cluster/cluster.component.ts:
--------------------------------------------------------------------------------
1 | import { Component, OnInit } from '@angular/core';
2 |
3 | @Component({
4 | selector: 'app-root',
5 | templateUrl: './cluster.component.html'
6 | })
7 | export class ClusterComponent implements OnInit {
8 | distance = 60;
9 | points: Array<{ x: number; y: number; }> = [];
10 |
11 | ngOnInit() {
12 | // Generate random points
13 | const nbPoints = 2000;
14 | for (let i = 0; i < nbPoints; ++i) {
15 | this.points.push({
16 | x : this.getRandomInRange(1.47, 1.51, 4),
17 | y: this.getRandomInRange(43.545, 43.565, 4)
18 | });
19 | }
20 | }
21 |
22 | getRandomInRange(from, to, fixed) {
23 | return (Math.random() * (to - from) + from).toFixed(fixed) * 1;
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/example/src/app/raster/raster.component.css:
--------------------------------------------------------------------------------
1 | .control {
2 | display: flex;
3 | align-items: center;
4 | justify-content: flex-start;
5 | margin: 20px;
6 | }
7 |
--------------------------------------------------------------------------------
/example/src/assets/.gitkeep:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/quentinlampin/ngx-openlayers/960f36bfa4dd7a08a084dc2253fa4ec4661206fa/example/src/assets/.gitkeep
--------------------------------------------------------------------------------
/example/src/assets/marker.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/quentinlampin/ngx-openlayers/960f36bfa4dd7a08a084dc2253fa4ec4661206fa/example/src/assets/marker.png
--------------------------------------------------------------------------------
/example/src/environments/environment.prod.ts:
--------------------------------------------------------------------------------
1 | export const environment = {
2 | production: true
3 | };
4 |
--------------------------------------------------------------------------------
/example/src/environments/environment.ts:
--------------------------------------------------------------------------------
1 | // The file contents for the current environment will overwrite these during build.
2 | // The build system defaults to the dev environment which uses `environment.ts`, but if you do
3 | // `ng build --env=prod` then `environment.prod.ts` will be used instead.
4 | // The list of which env maps to which file can be found in `.angular-cli.json`.
5 |
6 | export const environment = {
7 | production: false
8 | };
9 |
--------------------------------------------------------------------------------
/example/src/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Example
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/example/src/main.ts:
--------------------------------------------------------------------------------
1 | import { enableProdMode } from '@angular/core';
2 | import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
3 |
4 | import { AppModule } from './app/app.module';
5 | import { environment } from './environments/environment';
6 |
7 | if (environment.production) {
8 | enableProdMode();
9 | }
10 |
11 | platformBrowserDynamic().bootstrapModule(AppModule)
12 | .catch(err => console.log(err));
13 |
--------------------------------------------------------------------------------
/example/src/styles.css:
--------------------------------------------------------------------------------
1 | /* You can add global styles to this file, and also import other style files */
2 |
--------------------------------------------------------------------------------
/example/src/tsconfig.app.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../tsconfig.json",
3 | "compilerOptions": {
4 | "outDir": "../out-tsc/app",
5 | "baseUrl": "./",
6 | "module": "es2015",
7 | "types": []
8 | },
9 | "exclude": [
10 | "test.ts",
11 | "**/*.spec.ts"
12 | ]
13 | }
14 |
--------------------------------------------------------------------------------
/example/src/typings.d.ts:
--------------------------------------------------------------------------------
1 | /* SystemJS module definition */
2 | declare var module: NodeModule;
3 | interface NodeModule {
4 | id: string;
5 | }
6 |
--------------------------------------------------------------------------------
/example/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compileOnSave": false,
3 | "compilerOptions": {
4 | "outDir": "./dist/out-tsc",
5 | "sourceMap": true,
6 | "declaration": false,
7 | "moduleResolution": "node",
8 | "emitDecoratorMetadata": true,
9 | "experimentalDecorators": true,
10 | "target": "es5",
11 | "typeRoots": [
12 | "node_modules/@types"
13 | ],
14 | "lib": [
15 | "es2017",
16 | "dom"
17 | ]
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/src/components/attribution.component.ts:
--------------------------------------------------------------------------------
1 | import { Component, ElementRef, OnInit } from '@angular/core';
2 | import { Attribution } from 'openlayers';
3 |
4 | @Component({
5 | selector: 'aol-attribution',
6 | template: ''
7 | })
8 | export class AttributionComponent implements OnInit {
9 | instance: Attribution;
10 | html: string;
11 |
12 | constructor(
13 | private elementRef: ElementRef
14 | ) {
15 | }
16 |
17 | ngOnInit() {
18 | this.html = this.elementRef.nativeElement.innerHTML;
19 | this.instance = new Attribution(this);
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/src/components/attributions.component.ts:
--------------------------------------------------------------------------------
1 | import { AfterViewInit, Component, ContentChildren, Host, QueryList } from '@angular/core';
2 | import { Attribution } from 'openlayers';
3 | import { SourceComponent } from './sources/source.component';
4 | import { AttributionComponent } from './attribution.component';
5 |
6 | @Component({
7 | selector: 'aol-attributions',
8 | template: ''
9 | })
10 | export class AttributionsComponent implements AfterViewInit {
11 | instance: Array;
12 |
13 | @ContentChildren(AttributionComponent) attributions: QueryList;
14 |
15 | constructor(@Host() private source: SourceComponent) {
16 | }
17 |
18 | /* we can do this at the very end */
19 | ngAfterViewInit() {
20 | if (this.attributions.length) {
21 | this.instance = this.attributions.map(cmp => cmp.instance);
22 | // console.log('setting attributions:', this.instance);
23 | this.source.instance.setAttributions(this.instance);
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/src/components/content.component.ts:
--------------------------------------------------------------------------------
1 | import { Component, ElementRef } from '@angular/core';
2 |
3 | @Component({
4 | selector: 'aol-content',
5 | template: ''
6 | })
7 | export class ContentComponent {
8 |
9 | constructor(
10 | public elementRef: ElementRef
11 | ) {
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/src/components/controls/attribution.component.ts:
--------------------------------------------------------------------------------
1 | import { Component, ElementRef, Input, OnDestroy, OnInit } from '@angular/core';
2 | import { control } from 'openlayers';
3 | import { MapComponent } from '../map.component';
4 |
5 | @Component({
6 | selector: 'aol-control-attribution',
7 | template: ``
8 | })
9 | export class ControlAttributionComponent implements OnInit, OnDestroy {
10 | public componentType: string = 'control';
11 | instance: control.Attribution;
12 | target: Element;
13 | @Input() collapsible: boolean;
14 |
15 | constructor(
16 | private map: MapComponent,
17 | private element: ElementRef
18 | ) {
19 | }
20 |
21 | ngOnInit() {
22 | this.target = this.element.nativeElement;
23 | // console.log('ol.control.Attribution init: ', this);
24 | this.instance = new control.Attribution(this);
25 | this.map.instance.addControl(this.instance);
26 | }
27 |
28 | ngOnDestroy() {
29 | // console.log('removing aol-control-attribution');
30 | this.map.instance.removeControl(this.instance);
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/src/components/controls/control.component.ts:
--------------------------------------------------------------------------------
1 | import { Component, ContentChild, OnDestroy, OnInit } from '@angular/core';
2 | import { control } from 'openlayers';
3 | import { MapComponent } from '../map.component';
4 | import { ContentComponent } from '../content.component';
5 |
6 | @Component({
7 | selector: 'aol-control',
8 | template: ``
9 | })
10 | export class ControlComponent implements OnInit, OnDestroy {
11 | public componentType: string = 'control';
12 | instance: control.Control;
13 | element: Element;
14 | @ContentChild(ContentComponent) content: ContentComponent;
15 |
16 | constructor(
17 | private map: MapComponent
18 | ) {
19 | }
20 |
21 | ngOnInit() {
22 | if (this.content) {
23 | this.element = this.content.elementRef.nativeElement;
24 | this.instance = new control.Control(this);
25 | this.map.instance.addControl(this.instance);
26 | }
27 | }
28 |
29 | ngOnDestroy() {
30 | if (this.instance) {
31 | this.map.instance.removeControl(this.instance);
32 | }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/src/components/controls/default.component.ts:
--------------------------------------------------------------------------------
1 | import { Component, OnDestroy, OnInit, Input } from '@angular/core';
2 | import { control, Collection } from 'openlayers';
3 | import { MapComponent } from '../map.component';
4 |
5 | @Component({
6 | selector: 'aol-control-defaults',
7 | template: ''
8 | })
9 | export class DefaultControlComponent implements OnInit, OnDestroy {
10 | instance: Collection;
11 | @Input() attribution: boolean;
12 | @Input() attributionOptions: olx.control.AttributionOptions;
13 | @Input() rotate: boolean;
14 | @Input() rotateOptions: olx.control.RotateOptions;
15 | @Input() zoom: boolean;
16 | @Input() zoomOptions: olx.control.ZoomOptions;
17 |
18 | constructor(private map: MapComponent) {
19 | }
20 |
21 | ngOnInit() {
22 | // console.log('ol.control.defaults init: ', this);
23 | this.instance = control.defaults(this);
24 | this.instance.forEach((control) => this.map.instance.addControl(control));
25 | }
26 |
27 | ngOnDestroy() {
28 | // console.log('removing aol-control-defaults');
29 | this.instance.forEach((control) => this.map.instance.removeControl(control));
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/src/components/controls/fullscreen.component.ts:
--------------------------------------------------------------------------------
1 | import { Component, OnDestroy, OnInit } from '@angular/core';
2 | import { control } from 'openlayers';
3 | import { MapComponent } from '../map.component';
4 |
5 | @Component({
6 | selector: 'aol-control-fullscreen',
7 | template: ``
8 | })
9 | export class ControlFullScreenComponent implements OnInit, OnDestroy {
10 | instance: control.FullScreen;
11 |
12 | constructor(private map: MapComponent) {
13 | // console.log('instancing aol-control-fullscreen');
14 | }
15 |
16 | ngOnInit() {
17 | this.instance = new control.FullScreen(this);
18 | this.map.instance.addControl(this.instance);
19 | }
20 |
21 | ngOnDestroy() {
22 | // console.log('removing aol-control-fullscreen');
23 | this.map.instance.removeControl(this.instance);
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/src/components/controls/index.ts:
--------------------------------------------------------------------------------
1 | export * from './attribution.component';
2 | export * from './control.component';
3 | export * from './default.component';
4 | export * from './fullscreen.component';
5 | export * from './mouseposition.component';
6 | export * from './overviewmap.component';
7 | export * from './rotate.component';
8 | export * from './scaleline.component';
9 | export * from './zoom.component';
10 | export * from './zoomslider.component';
11 | export * from './zoomtoextent.component';
12 |
--------------------------------------------------------------------------------
/src/components/controls/mouseposition.component.ts:
--------------------------------------------------------------------------------
1 | import { Component, ElementRef, Input, OnDestroy, OnInit } from '@angular/core';
2 | import { control, CoordinateFormatType, ProjectionLike } from 'openlayers';
3 | import { MapComponent } from '../map.component';
4 |
5 | @Component({
6 | selector: 'aol-control-mouseposition',
7 | template: ``
8 | })
9 | export class ControlMousePositionComponent implements OnInit, OnDestroy {
10 | instance: control.MousePosition;
11 | @Input() coordinateFormat: CoordinateFormatType;
12 | @Input() projection: ProjectionLike;
13 | target: Element;
14 |
15 | constructor(
16 | private map: MapComponent,
17 | private element: ElementRef
18 | ) {
19 | }
20 |
21 | ngOnInit() {
22 | this.target = this.element.nativeElement;
23 | // console.log('ol.control.MousePosition init: ', this);
24 | this.instance = new control.MousePosition(this);
25 | this.map.instance.addControl(this.instance);
26 | }
27 |
28 | ngOnDestroy() {
29 | // console.log('removing aol-control-mouseposition');
30 | this.map.instance.removeControl(this.instance);
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/src/components/controls/overviewmap.component.ts:
--------------------------------------------------------------------------------
1 | import { Component, Input, OnDestroy, OnInit } from '@angular/core';
2 | import { control, View, layer } from 'openlayers';
3 | import { MapComponent } from '../map.component';
4 |
5 | @Component({
6 | selector: 'aol-control-overviewmap',
7 | template: ``
8 | })
9 | export class ControlOverviewMapComponent implements OnInit, OnDestroy {
10 | instance: control.OverviewMap;
11 | @Input() collapsed: boolean;
12 | @Input() collapseLabel: string;
13 | @Input() collapsible: boolean;
14 | @Input() label: string;
15 | @Input() layers: layer.Layer[];
16 | @Input() target: Element;
17 | @Input() tipLabel: string;
18 | @Input() view: View;
19 |
20 | constructor(private map: MapComponent) {
21 | // console.log('instancing aol-control-overviewmap');
22 | }
23 |
24 | ngOnInit() {
25 | this.instance = new control.OverviewMap(this);
26 | this.map.instance.addControl(this.instance);
27 | }
28 |
29 | ngOnDestroy() {
30 | // console.log('removing aol-control-overviewmap');
31 | this.map.instance.removeControl(this.instance);
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/src/components/controls/rotate.component.ts:
--------------------------------------------------------------------------------
1 | import { Component, OnDestroy, OnInit } from '@angular/core';
2 | import { control } from 'openlayers';
3 | import { MapComponent } from '../map.component';
4 |
5 | @Component({
6 | selector: 'aol-control-rotate',
7 | template: ``
8 | })
9 | export class ControlRotateComponent implements OnInit, OnDestroy {
10 | instance: control.Rotate;
11 |
12 | constructor(private map: MapComponent) {
13 | // console.log('instancing aol-control-rotate');
14 | }
15 |
16 | ngOnInit() {
17 | this.instance = new control.Rotate(this);
18 | this.map.instance.addControl(this.instance);
19 | }
20 |
21 | ngOnDestroy() {
22 | // console.log('removing aol-control-rotate');
23 | this.map.instance.removeControl(this.instance);
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/src/components/controls/scaleline.component.ts:
--------------------------------------------------------------------------------
1 | import { Component, Input, OnDestroy, OnInit } from '@angular/core';
2 | import { control } from 'openlayers';
3 | import { MapComponent } from '../map.component';
4 |
5 | @Component({
6 | selector: 'aol-control-scaleline',
7 | template: ``
8 | })
9 | export class ControlScaleLineComponent implements OnInit, OnDestroy {
10 | instance: control.ScaleLine;
11 | @Input() units: string;
12 |
13 | constructor(private map: MapComponent) {
14 | // console.log('instancing aol-control-scaleline');
15 | }
16 |
17 | ngOnInit() {
18 | this.instance = new control.ScaleLine(this);
19 | this.map.instance.addControl(this.instance);
20 | }
21 |
22 | ngOnDestroy() {
23 | // console.log('removing aol-control-scaleline');
24 | this.map.instance.removeControl(this.instance);
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/src/components/controls/zoom.component.ts:
--------------------------------------------------------------------------------
1 | import { Component, Input, OnDestroy, OnInit } from '@angular/core';
2 | import { control } from 'openlayers';
3 | import { MapComponent } from '../map.component';
4 |
5 | @Component({
6 | selector: 'aol-control-zoom',
7 | template: ``
8 | })
9 | export class ControlZoomComponent implements OnInit, OnDestroy {
10 | instance: control.Zoom;
11 |
12 | @Input() duration: number;
13 | @Input() zoomInLabel: (string | Node);
14 | @Input() zoomOutLabel: (string | Node);
15 | @Input() zoomInTipLabel: string;
16 | @Input() zoomOutTipLabel: string;
17 | @Input() delta: number;
18 |
19 | constructor(private map: MapComponent) {
20 | // console.log('instancing aol-control-zoom');
21 | }
22 |
23 | ngOnInit() {
24 | this.instance = new control.Zoom(this);
25 | this.map.instance.addControl(this.instance);
26 | }
27 |
28 | ngOnDestroy() {
29 | // console.log('removing aol-control-zoom');
30 | this.map.instance.removeControl(this.instance);
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/src/components/controls/zoomslider.component.ts:
--------------------------------------------------------------------------------
1 | import { Component, OnDestroy, OnInit } from '@angular/core';
2 | import { control } from 'openlayers';
3 | import { MapComponent } from '../map.component';
4 |
5 | @Component({
6 | selector: 'aol-control-zoomslider',
7 | template: ``
8 | })
9 | export class ControlZoomSliderComponent implements OnInit, OnDestroy {
10 | instance: control.ZoomSlider;
11 |
12 | constructor(private map: MapComponent) {
13 | // console.log('instancing aol-control-zoomslider');
14 | }
15 |
16 | ngOnInit() {
17 | this.instance = new control.ZoomSlider(this);
18 | this.map.instance.addControl(this.instance);
19 | }
20 |
21 | ngOnDestroy() {
22 | // console.log('removing aol-control-zoomslider');
23 | this.map.instance.removeControl(this.instance);
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/src/components/controls/zoomtoextent.component.ts:
--------------------------------------------------------------------------------
1 | import { Component, Input, OnDestroy, OnInit } from '@angular/core';
2 | import { control, Extent } from 'openlayers';
3 | import { MapComponent } from '../map.component';
4 |
5 | @Component({
6 | selector: 'aol-control-zoomtoextent',
7 | template: ``
8 | })
9 | export class ControlZoomToExtentComponent implements OnInit, OnDestroy {
10 | instance: control.ZoomToExtent;
11 |
12 | @Input() className: string;
13 | @Input() label: (string | Node);
14 | @Input() tipLabel: string;
15 | @Input() extent: Extent;
16 |
17 | constructor(private map: MapComponent) {
18 | // console.log('instancing aol-control-zoomtoextent');
19 | }
20 |
21 | ngOnInit() {
22 | this.instance = new control.ZoomToExtent(this);
23 | this.map.instance.addControl(this.instance);
24 | }
25 |
26 | ngOnDestroy() {
27 | // console.log('removing aol-control-zoomtoextent');
28 | this.map.instance.removeControl(this.instance);
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/src/components/feature.component.ts:
--------------------------------------------------------------------------------
1 | import { Component, OnInit, OnDestroy, OnChanges, Input, SimpleChanges } from '@angular/core';
2 | import { Feature } from 'openlayers';
3 | import { SourceVectorComponent } from './sources';
4 |
5 | @Component({
6 | selector: 'aol-feature',
7 | template: ``
8 | })
9 | export class FeatureComponent implements OnInit, OnDestroy, OnChanges {
10 | public componentType = 'feature';
11 | public instance: Feature;
12 |
13 | @Input() id: string|number|undefined;
14 |
15 | constructor(private host: SourceVectorComponent) {
16 | }
17 |
18 | ngOnInit() {
19 | this.instance = new Feature();
20 | if (this.id !== undefined) {
21 | this.instance.setId(this.id);
22 | }
23 | this.host.instance.addFeature(this.instance);
24 | }
25 |
26 | ngOnDestroy() {
27 | this.host.instance.removeFeature(this.instance);
28 | }
29 |
30 | ngOnChanges(changes: SimpleChanges) {
31 | if (this.instance) {
32 | this.instance.setId(this.id);
33 | }
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/src/components/formats/format.component.ts:
--------------------------------------------------------------------------------
1 | import { format } from 'openlayers';
2 |
3 | export class FormatComponent {
4 | public instance: format.Feature;
5 | public componentType = 'format';
6 | }
7 |
--------------------------------------------------------------------------------
/src/components/formats/index.ts:
--------------------------------------------------------------------------------
1 | export * from './format.component';
2 | export * from './mvt.component';
3 |
--------------------------------------------------------------------------------
/src/components/formats/mvt.component.ts:
--------------------------------------------------------------------------------
1 | import { Component, forwardRef, Input } from '@angular/core';
2 | import { format, geom } from 'openlayers';
3 | import { FormatComponent } from './format.component';
4 |
5 | @Component({
6 | selector: 'aol-format-mvt',
7 | template: '',
8 | providers: [
9 | { provide: FormatComponent, useExisting: forwardRef(() => FormatMVTComponent) }
10 | ]
11 | })
12 | export class FormatMVTComponent extends FormatComponent {
13 | instance: format.MVT;
14 |
15 | @Input() featureClass: (((geom: (geom.Geometry | { [k: string]: any })) => any) |
16 | ((geom: geom.GeometryType, arg2: number[], arg3: (number[] | number[][]), arg4: { [k: string]: any }) => any));
17 | @Input() geometryName: string;
18 | @Input() layerName: string;
19 | @Input() layers: string[];
20 |
21 | constructor() {
22 | super();
23 | this.instance = new format.MVT(this);
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/src/components/graticule.component.ts:
--------------------------------------------------------------------------------
1 | import { Component, Input, AfterContentInit, OnChanges, SimpleChanges } from '@angular/core';
2 | import { Graticule, style } from 'openlayers';
3 | import { MapComponent } from './map.component';
4 |
5 | @Component({
6 | selector: 'aol-graticule',
7 | template: ''
8 | })
9 | export class GraticuleComponent implements AfterContentInit, OnChanges {
10 | instance: any;
11 | public componentType: string = 'graticule';
12 |
13 | @Input() strokeStyle: style.Stroke;
14 | @Input() showLabels: boolean;
15 | @Input() lonLabelPosition: number;
16 | @Input() latLabelPosition: number;
17 |
18 | constructor(private map: MapComponent) {
19 | }
20 |
21 | ngOnChanges(changes: SimpleChanges) {
22 | let properties: {[index: string]: any} = {};
23 |
24 | if (!this.instance) {
25 | return;
26 | }
27 |
28 | for (let key in changes) {
29 | if (changes.hasOwnProperty(key)) {
30 | properties[key] = changes[key].currentValue;
31 | }
32 | }
33 |
34 | if (properties) {
35 | this.instance = new Graticule(properties);
36 | }
37 | this.instance.setMap(this.map.instance);
38 | }
39 |
40 | ngAfterContentInit(): void {
41 | this.instance = new Graticule({
42 | strokeStyle: this.strokeStyle,
43 | showLabels: this.showLabels,
44 | lonLabelPosition: this.lonLabelPosition,
45 | latLabelPosition: this.latLabelPosition
46 | });
47 | this.instance.setMap(this.map.instance);
48 | }
49 | }
50 |
--------------------------------------------------------------------------------
/src/components/index.ts:
--------------------------------------------------------------------------------
1 | export * from './controls';
2 | export * from './formats';
3 | export * from './interactions';
4 | export * from './layers';
5 | export * from './sources';
6 | export * from './styles';
7 |
8 | export * from './attribution.component';
9 | export * from './attributions.component';
10 | export * from './content.component';
11 | export * from './coordinate.component';
12 | export * from './feature.component';
13 | export * from './geometry.components';
14 | export * from './graticule.component';
15 | export * from './map.component';
16 | export * from './overlay.component';
17 | export * from './tilegrid.component';
18 | export * from './tilegridwmts.component';
19 | export * from './view.component';
20 |
--------------------------------------------------------------------------------
/src/components/interactions/default.component.ts:
--------------------------------------------------------------------------------
1 | import { Component, OnDestroy, OnInit } from '@angular/core';
2 | import { interaction, Collection } from 'openlayers';
3 | import { MapComponent } from '../map.component';
4 |
5 | @Component({
6 | selector: 'aol-interaction-default',
7 | template: ''
8 | })
9 | export class DefaultInteractionComponent implements OnInit, OnDestroy {
10 | instance: Collection;
11 |
12 | constructor(private map: MapComponent) {
13 | }
14 |
15 | ngOnInit() {
16 | this.instance = interaction.defaults();
17 | this.instance.forEach((interaction) => this.map.instance.addInteraction(interaction));
18 | }
19 |
20 | ngOnDestroy() {
21 | this.instance.forEach((interaction) => this.map.instance.removeInteraction(interaction));
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/src/components/interactions/doubleclickzoom.component.ts:
--------------------------------------------------------------------------------
1 | import { Component, Input, OnDestroy, OnInit } from '@angular/core';
2 | import { interaction } from 'openlayers';
3 | import { MapComponent } from '../map.component';
4 |
5 | @Component({
6 | selector: 'aol-interaction-doubleclickzoom',
7 | template: ''
8 | })
9 | export class DoubleClickZoomInteractionComponent implements OnInit, OnDestroy {
10 | instance: interaction.DoubleClickZoom;
11 |
12 | @Input() duration: number;
13 | @Input() delta: number;
14 |
15 | constructor(private map: MapComponent) {
16 | }
17 |
18 | ngOnInit() {
19 | this.instance = new interaction.DoubleClickZoom(this);
20 | this.map.instance.addInteraction(this.instance);
21 | }
22 |
23 | ngOnDestroy() {
24 | this.map.instance.removeInteraction(this.instance);
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/src/components/interactions/draganddrop.component.ts:
--------------------------------------------------------------------------------
1 | import { Component, Input, OnDestroy, OnInit } from '@angular/core';
2 | import { interaction, format, ProjectionLike } from 'openlayers';
3 | import { MapComponent } from '../map.component';
4 |
5 | @Component({
6 | selector: 'aol-interaction-draganddrop',
7 | template: ''
8 | })
9 | export class DragAndDropInteractionComponent implements OnInit, OnDestroy {
10 | instance: interaction.DragAndDrop;
11 |
12 | @Input() formatConstructors: ((n: format.Feature) => any)[];
13 | @Input() projection: ProjectionLike;
14 | @Input() target: Element;
15 |
16 | constructor(private map: MapComponent) {
17 | }
18 |
19 | ngOnInit() {
20 | this.instance = new interaction.DragAndDrop(this);
21 | this.map.instance.addInteraction(this.instance);
22 | }
23 |
24 | ngOnDestroy() {
25 | this.map.instance.removeInteraction(this.instance);
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/src/components/interactions/dragbox.component.ts:
--------------------------------------------------------------------------------
1 | import { Component, OnDestroy, OnInit, Input } from '@angular/core';
2 | import { interaction, EventsConditionType, DragBoxEndConditionType } from 'openlayers';
3 | import { MapComponent } from '../map.component';
4 |
5 | @Component({
6 | selector: 'aol-interaction-dragbox',
7 | template: ''
8 | })
9 | export class DragBoxInteractionComponent implements OnInit, OnDestroy {
10 | instance: interaction.DragBox;
11 |
12 | @Input() className: string;
13 | @Input() condition: EventsConditionType;
14 | @Input() boxEndCondition: DragBoxEndConditionType;
15 |
16 | constructor(private map: MapComponent) {
17 | }
18 |
19 | ngOnInit() {
20 | this.instance = new interaction.DragBox(this);
21 | this.map.instance.addInteraction(this.instance);
22 | }
23 |
24 | ngOnDestroy() {
25 | this.map.instance.removeInteraction(this.instance);
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/src/components/interactions/dragpan.component.ts:
--------------------------------------------------------------------------------
1 | import { Component, OnDestroy, OnInit, Input } from '@angular/core';
2 | import { interaction, EventsConditionType, Kinetic } from 'openlayers';
3 | import { MapComponent } from '../map.component';
4 |
5 | @Component({
6 | selector: 'aol-interaction-dragpan',
7 | template: ''
8 | })
9 | export class DragPanInteractionComponent implements OnInit, OnDestroy {
10 | instance: interaction.DragPan;
11 |
12 | @Input() condition: EventsConditionType;
13 | @Input() kinetic: Kinetic;
14 |
15 | constructor(private map: MapComponent) {
16 | }
17 |
18 | ngOnInit() {
19 | this.instance = new interaction.DragPan(this);
20 | this.map.instance.addInteraction(this.instance);
21 | }
22 |
23 | ngOnDestroy() {
24 | this.map.instance.removeInteraction(this.instance);
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/src/components/interactions/dragrotate.component.ts:
--------------------------------------------------------------------------------
1 | import { Component, OnDestroy, OnInit, Input } from '@angular/core';
2 | import { interaction, EventsConditionType } from 'openlayers';
3 | import { MapComponent } from '../map.component';
4 |
5 | @Component({
6 | selector: 'aol-interaction-dragrotate',
7 | template: ''
8 | })
9 | export class DragRotateInteractionComponent implements OnInit, OnDestroy {
10 | instance: interaction.DragRotate;
11 |
12 | @Input() condition: EventsConditionType;
13 | @Input() duration: number;
14 |
15 | constructor(private map: MapComponent) {
16 | }
17 |
18 | ngOnInit() {
19 | this.instance = new interaction.DragRotate(this);
20 | this.map.instance.addInteraction(this.instance);
21 | }
22 |
23 | ngOnDestroy() {
24 | this.map.instance.removeInteraction(this.instance);
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/src/components/interactions/dragrotateandzoom.component.ts:
--------------------------------------------------------------------------------
1 | import { Component, OnDestroy, OnInit, Input } from '@angular/core';
2 | import { interaction, EventsConditionType } from 'openlayers';
3 | import { MapComponent } from '../map.component';
4 |
5 | @Component({
6 | selector: 'aol-interaction-dragrotateandzoom',
7 | template: ''
8 | })
9 | export class DragRotateAndZoomInteractionComponent implements OnInit, OnDestroy {
10 | instance: interaction.DragRotate;
11 |
12 | @Input() condition: EventsConditionType;
13 | @Input() duration: number;
14 |
15 | constructor(private map: MapComponent) {
16 | }
17 |
18 | ngOnInit() {
19 | this.instance = new interaction.DragRotateAndZoom(this);
20 | this.map.instance.addInteraction(this.instance);
21 | }
22 |
23 | ngOnDestroy() {
24 | this.map.instance.removeInteraction(this.instance);
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/src/components/interactions/dragzoom.component.ts:
--------------------------------------------------------------------------------
1 | import { Component, OnDestroy, OnInit, Input } from '@angular/core';
2 | import { interaction, EventsConditionType } from 'openlayers';
3 | import { MapComponent } from '../map.component';
4 |
5 | @Component({
6 | selector: 'aol-interaction-dragzoom',
7 | template: ''
8 | })
9 | export class DragZoomInteractionComponent implements OnInit, OnDestroy {
10 | instance: interaction.DragZoom;
11 |
12 | @Input() className: string;
13 | @Input() condition: EventsConditionType;
14 | @Input() duration: number;
15 | @Input() out: boolean;
16 |
17 | constructor(private map: MapComponent) {
18 | }
19 |
20 | ngOnInit() {
21 | this.instance = new interaction.DragZoom(this);
22 | this.map.instance.addInteraction(this.instance);
23 | }
24 |
25 | ngOnDestroy() {
26 | this.map.instance.removeInteraction(this.instance);
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/src/components/interactions/index.ts:
--------------------------------------------------------------------------------
1 | export * from './default.component';
2 | export * from './doubleclickzoom.component';
3 | export * from './draganddrop.component';
4 | export * from './dragbox.component';
5 | export * from './dragpan.component';
6 | export * from './dragrotate.component';
7 | export * from './dragrotateandzoom.component';
8 | export * from './dragzoom.component';
9 | export * from './mousewheelzoom.component';
10 | export * from './pinchzoom.component';
11 | export * from './draw.component';
12 | export * from './select.component';
13 | export * from './translate.component';
14 | export * from './modify.component';
15 |
--------------------------------------------------------------------------------
/src/components/interactions/mousewheelzoom.component.ts:
--------------------------------------------------------------------------------
1 | import { Component, Input, OnDestroy, OnInit } from '@angular/core';
2 | import { interaction } from 'openlayers';
3 | import { MapComponent } from '../map.component';
4 |
5 | @Component({
6 | selector: 'aol-interaction-mousewheelzoom',
7 | template: ''
8 | })
9 | export class MouseWheelZoomInteractionComponent implements OnInit, OnDestroy {
10 | instance: interaction.MouseWheelZoom;
11 | @Input() duration: number;
12 | @Input() timeout: number;
13 | @Input() useAnchor: boolean;
14 |
15 | constructor(private map: MapComponent) {
16 | }
17 |
18 | ngOnInit() {
19 | this.instance = new interaction.MouseWheelZoom(this);
20 | this.map.instance.addInteraction(this.instance);
21 | }
22 |
23 | ngOnDestroy() {
24 | this.map.instance.removeInteraction(this.instance);
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/src/components/interactions/pinchzoom.component.ts:
--------------------------------------------------------------------------------
1 | import { Component, OnDestroy, OnInit, Input } from '@angular/core';
2 | import { interaction } from 'openlayers';
3 | import { MapComponent } from '../map.component';
4 |
5 | @Component({
6 | selector: 'aol-interaction-pinchzoom',
7 | template: ''
8 | })
9 | export class PinchZoomInteractionComponent implements OnInit, OnDestroy {
10 | instance: interaction.PinchZoom;
11 |
12 | @Input() duration: number;
13 | @Input() constrainResolution: boolean;
14 |
15 | constructor(private map: MapComponent) {
16 | }
17 |
18 | ngOnInit() {
19 | this.instance = new interaction.PinchZoom(this);
20 | this.map.instance.addInteraction(this.instance);
21 | }
22 |
23 | ngOnDestroy() {
24 | this.map.instance.removeInteraction(this.instance);
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/src/components/layers/index.ts:
--------------------------------------------------------------------------------
1 | export * from './layer.component';
2 | export * from './layergroup.component';
3 | export * from './layerimage.component';
4 | export * from './layertile.component';
5 | export * from './layervector.component';
6 | export * from './layervectortile.component';
7 |
--------------------------------------------------------------------------------
/src/components/layers/layergroup.component.ts:
--------------------------------------------------------------------------------
1 | import { Component, OnDestroy, OnInit, SkipSelf, Inject, Optional } from '@angular/core';
2 | import { layer } from 'openlayers';
3 | import { LayerComponent } from './layer.component';
4 | import { MapComponent } from '../map.component';
5 |
6 | @Component({
7 | selector: 'aol-layer-group',
8 | template: ``
9 | })
10 | export class LayerGroupComponent extends LayerComponent implements OnInit, OnDestroy {
11 | public instance: ol.layer.Group;
12 |
13 | constructor(map: MapComponent,
14 | @SkipSelf() @Optional() group?: LayerGroupComponent) {
15 | super(group || map);
16 | }
17 |
18 | ngOnInit() {
19 | // console.log(`creating ol.layer.Group instance with:`, this);
20 | this.instance = new layer.Group(this);
21 | super.ngOnInit();
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/src/components/layers/layerimage.component.ts:
--------------------------------------------------------------------------------
1 | import {
2 | Component, EventEmitter, Input, OnChanges, OnInit, Optional,
3 | SimpleChanges
4 | } from '@angular/core';
5 | import { Extent, layer, source } from 'openlayers';
6 | import { MapComponent } from '../map.component';
7 | import { LayerComponent } from './layer.component';
8 | import { LayerGroupComponent } from './layergroup.component';
9 |
10 | @Component({
11 | selector: 'aol-layer-image',
12 | template: ``
13 | })
14 | export class LayerImageComponent extends LayerComponent implements OnInit, OnChanges {
15 | public source: source.Image;
16 |
17 | @Input() opacity: number;
18 | @Input() visible: boolean;
19 | @Input() extent: Extent;
20 | @Input() minResolution: number;
21 | @Input() maxResolution: number;
22 | @Input() zIndex: number;
23 |
24 | constructor(map: MapComponent,
25 | @Optional() group?: LayerGroupComponent) {
26 | super(group || map);
27 | }
28 |
29 | ngOnInit() {
30 | this.instance = new layer.Image(this);
31 | super.ngOnInit();
32 | }
33 |
34 | ngOnChanges(changes: SimpleChanges) {
35 | super.ngOnChanges(changes);
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/src/components/layers/layertile.component.ts:
--------------------------------------------------------------------------------
1 | import {
2 | Component, OnDestroy, OnInit, Input, Optional, OnChanges,
3 | SimpleChanges
4 | } from '@angular/core';
5 | import { layer, source } from 'openlayers';
6 | import { MapComponent } from '../map.component';
7 | import { LayerComponent } from './layer.component';
8 | import { LayerGroupComponent } from './layergroup.component';
9 |
10 | @Component({
11 | selector: 'aol-layer-tile',
12 | template: ``
13 | })
14 | export class LayerTileComponent extends LayerComponent implements OnInit, OnDestroy, OnChanges {
15 | public source: source.Tile;
16 |
17 | @Input() preload: number;
18 | @Input() useInterimTilesOnError: boolean;
19 |
20 | constructor(map: MapComponent,
21 | @Optional() group?: LayerGroupComponent) {
22 | super(group || map);
23 | }
24 |
25 | ngOnInit() {
26 | // console.log('creating ol.layer.Tile instance with:', this);
27 | this.instance = new layer.Tile(this);
28 | super.ngOnInit();
29 | }
30 |
31 | ngOnChanges(changes: SimpleChanges) {
32 | super.ngOnChanges(changes);
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/src/components/layers/layervector.component.ts:
--------------------------------------------------------------------------------
1 | import {
2 | Component, OnDestroy, OnInit, Input, Optional, OnChanges,
3 | SimpleChanges
4 | } from '@angular/core';
5 | import { layer, source } from 'openlayers';
6 | import { MapComponent } from '../map.component';
7 | import { LayerComponent } from './layer.component';
8 | import { LayerGroupComponent } from './layergroup.component';
9 |
10 | @Component({
11 | selector: 'aol-layer-vector',
12 | template: ``
13 | })
14 | export class LayerVectorComponent extends LayerComponent implements OnInit, OnDestroy, OnChanges {
15 | public source: source.Vector;
16 |
17 | @Input() renderBuffer: number;
18 |
19 | constructor(map: MapComponent,
20 | @Optional() group?: LayerGroupComponent) {
21 | super(group || map);
22 | }
23 |
24 | ngOnInit() {
25 | // console.log('creating ol.layer.Vector instance with:', this);
26 | this.instance = new layer.Vector(this);
27 | super.ngOnInit();
28 | }
29 |
30 | ngOnChanges(changes: SimpleChanges) {
31 | super.ngOnChanges(changes);
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/src/components/layers/layervectortile.component.ts:
--------------------------------------------------------------------------------
1 | import { Component, OnInit, Input, Optional, SimpleChanges, OnChanges } from '@angular/core';
2 | import { layer, style, StyleFunction } from 'openlayers';
3 | import { MapComponent } from '../map.component';
4 | import { LayerComponent } from './layer.component';
5 | import { LayerGroupComponent } from './layergroup.component';
6 |
7 | @Component({
8 | selector: 'aol-layer-vectortile',
9 | template: ``
10 | })
11 | export class LayerVectorTileComponent extends LayerComponent implements OnInit, OnChanges {
12 |
13 | @Input() renderBuffer: number;
14 | @Input() renderMode: layer.VectorTileRenderType|string;
15 | /* not marked as optional in the typings */
16 | @Input() renderOrder: (feature1: ol.Feature, feature2: ol.Feature) => number;
17 | @Input() style: (style.Style | style.Style[] | StyleFunction);
18 | @Input() updateWhileAnimating: boolean;
19 | @Input() updateWhileInteracting: boolean;
20 | @Input() visible: boolean;
21 |
22 | constructor(map: MapComponent,
23 | @Optional() group?: LayerGroupComponent) {
24 | super(group || map);
25 | }
26 |
27 | ngOnInit() {
28 | // console.log('creating ol.layer.VectorTile instance with:', this);
29 | this.instance = new layer.VectorTile(this);
30 | super.ngOnInit();
31 | }
32 |
33 | ngOnChanges(changes: SimpleChanges) {
34 | super.ngOnChanges(changes);
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/src/components/overlay.component.ts:
--------------------------------------------------------------------------------
1 | import { Component, ContentChild, Input, OnDestroy, OnInit } from '@angular/core';
2 | import { MapComponent } from './map.component';
3 | import { Overlay, OverlayPositioning } from 'openlayers';
4 | import { ContentComponent } from './content.component';
5 |
6 | @Component({
7 | selector: 'aol-overlay',
8 | template: ''
9 | })
10 | export class OverlayComponent implements OnInit, OnDestroy {
11 | componentType = 'overlay';
12 | instance: Overlay;
13 | element: Element;
14 | @ContentChild(ContentComponent) content: ContentComponent;
15 |
16 | @Input() id: number|string;
17 | @Input() offset: number[];
18 | @Input() positioning: OverlayPositioning|string;
19 | @Input() stopEvent: boolean;
20 | @Input() insertFirst: boolean;
21 | @Input() autoPan: boolean;
22 | @Input() autoPanAnimation: olx.animation.PanOptions;
23 | @Input() autoPanMargin: number;
24 |
25 | constructor(
26 | private map: MapComponent
27 | ) {
28 | }
29 |
30 | ngOnInit() {
31 | if (this.content) {
32 | this.element = this.content.elementRef.nativeElement;
33 | this.instance = new Overlay(this);
34 | this.map.instance.addOverlay(this.instance);
35 | }
36 | }
37 |
38 | ngOnDestroy() {
39 | if (this.instance) {
40 | this.map.instance.removeOverlay(this.instance);
41 | }
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/src/components/sources/bingmaps.component.ts:
--------------------------------------------------------------------------------
1 | import { Component, Host, Input, OnInit, forwardRef } from '@angular/core';
2 | import { source, TileLoadFunctionType } from 'openlayers';
3 | import { LayerTileComponent } from '../layers';
4 | import { SourceComponent } from './source.component';
5 |
6 | @Component({
7 | selector: 'aol-source-bingmaps',
8 | template: ``,
9 | providers: [
10 | { provide: SourceComponent, useExisting: forwardRef(() => SourceBingmapsComponent) }
11 | ]
12 | })
13 | export class SourceBingmapsComponent extends SourceComponent implements OnInit {
14 | instance: source.BingMaps;
15 |
16 | @Input() cacheSize: number;
17 | @Input() hidpi: boolean;
18 | @Input() culture: string;
19 | @Input() key: string;
20 | @Input() imagerySet: 'Road'|'Aerial'|'AerialWithLabels'|'collinsBart'|'ordnanceSurvey' = 'Aerial';
21 | @Input() maxZoom: number;
22 | @Input() reprojectionErrorThreshold: number;
23 | @Input() tileLoadFunction: TileLoadFunctionType;
24 | @Input() wrapX: boolean;
25 |
26 | constructor(@Host() layer: LayerTileComponent) {
27 | super(layer);
28 | }
29 |
30 | ngOnInit() {
31 | this.instance = new source.BingMaps(this);
32 | this.host.instance.setSource(this.instance);
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/src/components/sources/cluster.component.ts:
--------------------------------------------------------------------------------
1 | import {Component, Host, Input, OnInit, forwardRef, ContentChild, AfterContentInit} from '@angular/core';
2 | import { source, Feature, geom } from 'openlayers';
3 | import { LayerVectorComponent } from '../layers';
4 | import { SourceComponent } from './source.component';
5 | import { SourceVectorComponent } from './vector.component';
6 |
7 |
8 | @Component({
9 | selector: 'aol-source-cluster',
10 | template: ``,
11 | providers: [
12 | { provide: SourceComponent, useExisting: forwardRef(() => SourceClusterComponent) }
13 | ]
14 | })
15 | export class SourceClusterComponent extends SourceComponent implements AfterContentInit {
16 | instance: source.Cluster;
17 |
18 | @Input() distance: number;
19 | @Input() geometryFunction?: ((feature: Feature) => geom.Point);
20 |
21 | @ContentChild(SourceVectorComponent) sourceVectorComponent: SourceVectorComponent;
22 | source: source.Vector;
23 |
24 | constructor(@Host() layer: LayerVectorComponent) {
25 | super(layer);
26 | }
27 |
28 | ngAfterContentInit() {
29 | this.source = this.sourceVectorComponent.instance;
30 |
31 | this.instance = new source.Cluster(this);
32 | this.host.instance.setSource(this.instance);
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/src/components/sources/geojson.component.ts:
--------------------------------------------------------------------------------
1 | import { Component, Host, Input, OnInit, forwardRef } from '@angular/core';
2 | import { source, ProjectionLike, format } from 'openlayers';
3 | import { LayerVectorComponent } from '../layers';
4 | import { FormatComponent } from '../formats';
5 | import { SourceComponent } from './source.component';
6 |
7 |
8 | @Component({
9 | selector: 'aol-source-geojson',
10 | template: ``,
11 | providers: [
12 | { provide: SourceComponent, useExisting: forwardRef(() => SourceGeoJSONComponent) }
13 | ]
14 | })
15 | export class SourceGeoJSONComponent extends SourceComponent implements OnInit {
16 | instance: source.Vector;
17 | format: format.Feature;
18 | @Input() defaultDataProjection: ProjectionLike;
19 | @Input() featureProjection: ProjectionLike;
20 | @Input() geometryName: string;
21 | @Input() url: string;
22 |
23 | constructor( @Host() layer: LayerVectorComponent) {
24 | super(layer);
25 | }
26 |
27 | ngOnInit() {
28 | this.format = new format.GeoJSON(this);
29 | this.instance = new source.Vector(this);
30 | this.host.instance.setSource(this.instance);
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/src/components/sources/imagestatic.component.ts:
--------------------------------------------------------------------------------
1 | import { Component, Host, Input, OnInit, forwardRef } from '@angular/core';
2 | import { ProjectionLike, source, Extent, AttributionLike, ImageLoadFunctionType, Size } from 'openlayers';
3 | import { SourceComponent } from './source.component';
4 | import { LayerImageComponent } from '../layers/layerimage.component';
5 |
6 | @Component({
7 | selector: 'aol-source-imagestatic',
8 | template: ``,
9 | providers: [{ provide: SourceComponent, useExisting: forwardRef(() => SourceImageStaticComponent) }],
10 | })
11 | export class SourceImageStaticComponent extends SourceComponent implements OnInit {
12 | instance: source.ImageStatic;
13 |
14 | @Input() projection: (ProjectionLike | string);
15 | @Input() imageExtent: Extent;
16 | @Input() url: string;
17 | @Input() attributions: AttributionLike;
18 | @Input() crossOrigin?: string;
19 | @Input() imageLoadFunction?: ImageLoadFunctionType;
20 | @Input() logo?: (string | olx.LogoOptions);
21 | @Input() imageSize?: Size;
22 |
23 | constructor(@Host() layer: LayerImageComponent) {
24 | super(layer);
25 | }
26 |
27 | ngOnInit() {
28 | this.instance = new source.ImageStatic(this);
29 | this.host.instance.setSource(this.instance);
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/src/components/sources/imagewms.component.ts:
--------------------------------------------------------------------------------
1 | import { Component, Host, Input, OnInit, forwardRef } from '@angular/core';
2 | import { AttributionLike, ImageLoadFunctionType, ProjectionLike, source } from 'openlayers';
3 | import { LayerImageComponent } from '../layers';
4 | import { SourceComponent } from './source.component';
5 |
6 | @Component({
7 | selector: 'aol-source-imagewms',
8 | template: ``,
9 | providers: [
10 | { provide: SourceComponent, useExisting: forwardRef(() => SourceImageWMSComponent) }
11 | ]
12 | })
13 | export class SourceImageWMSComponent extends SourceComponent implements OnInit {
14 | instance: source.ImageWMS;
15 |
16 | @Input() attributions: AttributionLike;
17 | @Input() crossOrigin: string;
18 | @Input() hidpi: boolean;
19 | @Input() serverType: string;
20 | @Input() imageLoadFunction?: ImageLoadFunctionType;
21 | @Input() logo: (string | olx.LogoOptions);
22 | @Input() params: Object;
23 | @Input() projection: (ProjectionLike | string);
24 | @Input() ratio: number;
25 | @Input() resolutions: Array;
26 | @Input() url: string;
27 |
28 | constructor(@Host() layer: LayerImageComponent) {
29 | super(layer);
30 | }
31 |
32 | ngOnInit() {
33 | this.instance = new source.ImageWMS(this);
34 | this.host.instance.setSource(this.instance);
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/src/components/sources/index.ts:
--------------------------------------------------------------------------------
1 | export * from './bingmaps.component';
2 | export * from './osm.component';
3 | export * from './source.component';
4 | export * from './vector.component';
5 | export * from './vectortile.component';
6 | export * from './xyz.component';
7 | export * from './tilewms.component';
8 | export * from './geojson.component';
9 | export * from './tilejson.component';
10 | export * from './tileutfgrid.component';
11 | export * from './tilewmts.component';
12 | export * from './imagewms.component';
13 | export * from './imagestatic.component';
14 | export * from './cluster.component';
15 | export * from './raster.component';
16 |
--------------------------------------------------------------------------------
/src/components/sources/osm.component.ts:
--------------------------------------------------------------------------------
1 | import {Component, Host, forwardRef, Input, AfterContentInit, Optional, OnInit} from '@angular/core';
2 | import { source, AttributionLike, TileLoadFunctionType } from 'openlayers';
3 | import { LayerTileComponent } from '../layers';
4 | import { SourceComponent } from './source.component';
5 | import { SourceXYZComponent } from './xyz.component';
6 | import {SourceRasterComponent} from './raster.component';
7 |
8 | @Component({
9 | selector: 'aol-source-osm',
10 | template: ``,
11 | providers: [
12 | { provide: SourceComponent, useExisting: forwardRef(() => SourceOsmComponent) }
13 | ]
14 | })
15 | export class SourceOsmComponent extends SourceXYZComponent implements AfterContentInit {
16 | instance: source.OSM;
17 |
18 | @Input() attributions: AttributionLike;
19 | @Input() cacheSize: number;
20 | @Input() crossOrigin: string;
21 | @Input() maxZoom: number;
22 | @Input() opaque: boolean;
23 | @Input() reprojectionErrorThreshold: number;
24 | @Input() tileLoadFunction: TileLoadFunctionType;
25 | @Input() url: string;
26 | @Input() wrapX: boolean;
27 |
28 | constructor(@Host() @Optional() layer: LayerTileComponent,
29 | @Host() @Optional() raster?: SourceRasterComponent) {
30 | super(layer, raster);
31 | }
32 |
33 | ngAfterContentInit() {
34 | if (this.tileGridXYZ) {
35 | this.tileGrid = this.tileGridXYZ.instance;
36 | }
37 | this.instance = new source.OSM(this);
38 | this._register(this.instance);
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/src/components/sources/source.component.ts:
--------------------------------------------------------------------------------
1 | import {AfterContentInit, Host, Input, OnDestroy, OnInit, Optional} from '@angular/core';
2 | import { source } from 'openlayers';
3 | import { LayerComponent } from '../layers';
4 | import AttributionLike = ol.AttributionLike;
5 | import { SourceRasterComponent } from './raster.component';
6 |
7 | export class SourceComponent implements OnDestroy {
8 | public instance: source.Source;
9 | public componentType: string = 'source';
10 |
11 | @Input() attributions: AttributionLike;
12 |
13 | constructor(protected host: LayerComponent, protected raster?: SourceRasterComponent) {
14 | }
15 |
16 | ngOnDestroy() {
17 | if (this.host) {
18 | this.host.instance.setSource(null);
19 | }
20 |
21 | if (this.raster) {
22 | this.raster.sources = [];
23 | }
24 | }
25 |
26 | protected _register(source: source.Source) {
27 | if (this.host) {
28 | this.host.instance.setSource(source);
29 | }
30 |
31 | if (this.raster) {
32 | this.raster.sources = [source];
33 | }
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/src/components/sources/tilejson.component.ts:
--------------------------------------------------------------------------------
1 | import { Component, Host, Input, OnInit, forwardRef } from '@angular/core';
2 | import { AttributionLike, source, TileLoadFunctionType, tilegrid } from 'openlayers';
3 | import { LayerTileComponent } from '../layers';
4 | import { SourceComponent } from './source.component';
5 |
6 | @Component({
7 | selector: 'aol-source-tilejson',
8 | template: ``,
9 | providers: [
10 | { provide: SourceComponent, useExisting: forwardRef(() => SourceTileJSONComponent) }
11 | ]
12 | })
13 | export class SourceTileJSONComponent extends SourceComponent implements OnInit {
14 | instance: source.TileJSON;
15 |
16 | @Input() url: string;
17 |
18 | constructor(@Host() layer: LayerTileComponent) {
19 | super(layer);
20 | }
21 |
22 | ngOnInit() {
23 | this.instance = new source.TileJSON(this);
24 | this.host.instance.setSource(this.instance);
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/src/components/sources/tileutfgrid.component.ts:
--------------------------------------------------------------------------------
1 | import { Component, Host, Input, OnInit, forwardRef } from '@angular/core';
2 | import { source } from 'openlayers';
3 | import { LayerTileComponent } from '../layers';
4 | import { SourceComponent } from './source.component';
5 |
6 | @Component({
7 | selector: 'aol-source-tileutfgrid',
8 | template: ``,
9 | providers: [
10 | { provide: SourceComponent, useExisting: forwardRef(() => SourceTileUTFGridComponent) }
11 | ]
12 | })
13 | export class SourceTileUTFGridComponent extends SourceComponent implements OnInit {
14 | instance: source.TileUTFGrid;
15 | @Input() tileJSON: JSON;
16 |
17 | constructor(@Host() layer: LayerTileComponent) {
18 | super(layer);
19 | }
20 |
21 | ngOnInit() {
22 | this.instance = new source.TileUTFGrid(this);
23 | this.host.instance.setSource(this.instance);
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/src/components/sources/tilewms.component.ts:
--------------------------------------------------------------------------------
1 | import { Component, Host, Input, OnInit, forwardRef } from '@angular/core';
2 | import { source, TileLoadFunctionType, tilegrid } from 'openlayers';
3 | import { LayerTileComponent } from '../layers';
4 | import { SourceComponent } from './source.component';
5 |
6 | @Component({
7 | selector: 'aol-source-tilewms',
8 | template: ``,
9 | providers: [
10 | { provide: SourceComponent, useExisting: forwardRef(() => SourceTileWMSComponent) }
11 | ]
12 | })
13 | export class SourceTileWMSComponent extends SourceComponent implements OnInit {
14 | instance: source.TileWMS;
15 | @Input() cacheSize: number;
16 | @Input() crossOrigin: string;
17 | @Input() gutter: number;
18 | @Input() hidpi: boolean;
19 | @Input() params: Object;
20 | @Input() projection: string;
21 | @Input() reprojectionErrorThreshold: number;
22 | @Input() serverType: string;
23 | @Input() tileGrid: tilegrid.TileGrid;
24 | @Input() tileLoadFunction: TileLoadFunctionType;
25 | @Input() url: string;
26 | @Input() urls: string[];
27 | @Input() wrapX: boolean;
28 |
29 | constructor(@Host() layer: LayerTileComponent) {
30 | super(layer);
31 | }
32 |
33 | ngOnInit() {
34 | this.instance = new source.TileWMS(this);
35 | this.host.instance.setSource(this.instance);
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/src/components/sources/vector.component.ts:
--------------------------------------------------------------------------------
1 | import { Component, Host, Input, OnInit, forwardRef } from '@angular/core';
2 | import { source } from 'openlayers';
3 | import { LayerVectorComponent } from '../layers';
4 | import { SourceComponent } from './source.component';
5 |
6 | @Component({
7 | selector: 'aol-source-vector',
8 | template: ``,
9 | providers: [
10 | { provide: SourceComponent, useExisting: forwardRef(() => SourceVectorComponent) }
11 | ]
12 | })
13 | export class SourceVectorComponent extends SourceComponent implements OnInit {
14 | instance: source.Vector;
15 | @Input() overlaps: boolean;
16 | @Input() useSpatialIndex: boolean;
17 | @Input() wrapX: boolean;
18 | @Input() url: string;
19 | @Input() format: ol.format.Feature;
20 | @Input() strategy: ol.LoadingStrategy;
21 |
22 | constructor(@Host() layer: LayerVectorComponent) {
23 | super(layer);
24 | }
25 |
26 | ngOnInit() {
27 | this.instance = new source.Vector(this);
28 | this.host.instance.setSource(this.instance);
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/src/components/styles/index.ts:
--------------------------------------------------------------------------------
1 | export * from './circle.component';
2 | export * from './fill.component';
3 | export * from './icon.component';
4 | export * from './stroke.component';
5 | export * from './style.component';
6 | export * from './text.component';
7 |
--------------------------------------------------------------------------------
/src/components/styles/style.component.ts:
--------------------------------------------------------------------------------
1 | import { Component, Input, Optional, OnInit } from '@angular/core';
2 | import { style, StyleGeometryFunction, geom } from 'openlayers';
3 | import { FeatureComponent } from '../feature.component';
4 | import { LayerVectorComponent } from '../layers';
5 |
6 | @Component({
7 | selector: 'aol-style',
8 | template: ``
9 | })
10 | export class StyleComponent implements OnInit {
11 | private host: FeatureComponent|LayerVectorComponent;
12 | public instance: style.Style;
13 | public componentType: string = 'style';
14 |
15 | @Input() geometry: string | geom.Geometry | StyleGeometryFunction;
16 | @Input() fill: style.Fill;
17 | @Input() image: style.Image;
18 | @Input() stroke: style.Stroke;
19 | @Input() text: style.Text;
20 | @Input() zIndex: number;
21 |
22 | constructor(
23 | @Optional() featureHost: FeatureComponent,
24 | @Optional() layerHost: LayerVectorComponent
25 | ) {
26 | // console.log('creating aol-style');
27 | this.host = !!featureHost ? featureHost : layerHost;
28 | if (!this.host) {
29 | throw new Error('aol-style must be applied to a feature or a layer');
30 | }
31 | }
32 |
33 | update() {
34 | // console.log('updating style\'s host: ', this.host);
35 | this.host.instance.changed();
36 | }
37 |
38 | ngOnInit() {
39 | // console.log('creating aol-style instance with: ', this);
40 | this.instance = new style.Style(this);
41 | this.host.instance.setStyle(this.instance);
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/src/components/tilegrid.component.ts:
--------------------------------------------------------------------------------
1 | import { Component, Input, OnChanges, OnInit, SimpleChanges } from '@angular/core';
2 | import { tilegrid, Extent, Size , Coordinate} from 'openlayers';
3 |
4 | @Component({
5 | selector: 'aol-tilegrid',
6 | template: ''
7 | })
8 | export class TileGridComponent implements OnInit, OnChanges {
9 | instance: tilegrid.TileGrid;
10 |
11 | @Input() extent: Extent;
12 | @Input() maxZoom: number;
13 | @Input() minZoom: number;
14 | @Input() tileSize: number|Size;
15 | @Input() origin?: Coordinate;
16 | @Input() resolutions: number[];
17 |
18 | ngOnInit() {
19 | if (!this.resolutions) {
20 | this.instance = tilegrid.createXYZ(this)
21 | } else {
22 | this.instance = new tilegrid.TileGrid(this);
23 | }
24 | }
25 |
26 | ngOnChanges(changes: SimpleChanges) {
27 | if (!this.resolutions) {
28 | this.instance = tilegrid.createXYZ(this)
29 | } else {
30 | this.instance = new tilegrid.TileGrid(this);
31 | }
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/src/components/tilegridwmts.component.ts:
--------------------------------------------------------------------------------
1 | import { Component, Input, OnInit } from '@angular/core';
2 | import { tilegrid, Extent, Size, Coordinate } from 'openlayers';
3 | import { TileGridComponent } from './tilegrid.component';
4 |
5 | @Component({
6 | selector: 'aol-tilegrid-wmts',
7 | template: ''
8 | })
9 | export class TileGridWMTSComponent extends TileGridComponent implements OnInit {
10 | instance: tilegrid.WMTS;
11 |
12 | @Input() origin?: Coordinate;
13 | @Input() origins?: Coordinate[];
14 | @Input() resolutions: number[];
15 | @Input() matrixIds: string[];
16 | @Input() sizes?: Size[];
17 | @Input() tileSizes?: ((number | Size)[]);
18 | @Input() widths?: number[];
19 |
20 | ngOnInit() {
21 | this.instance = new tilegrid.WMTS(this);
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "noImplicitAny": true,
4 | "module": "commonjs",
5 | "moduleResolution": "node",
6 | "target": "es5",
7 | "lib": ["es6", "dom", "es2015.iterable"],
8 | "emitDecoratorMetadata": true,
9 | "experimentalDecorators": true,
10 | "sourceMap": true,
11 | "declaration": true,
12 | "outDir": "./dist"
13 | },
14 | "files": [
15 | "src/index.ts"
16 | ],
17 | "exclude": [
18 | "node_modules",
19 | "dist"
20 | ],
21 | "angularCompilerOptions": {
22 | "genDir": "aot",
23 | "debug": true
24 | }
25 | }
--------------------------------------------------------------------------------