layer-control 12.0.1-next.3
Install from the command line:
Learn more about npm packages
$ npm install @dlr-eoc/layer-control@12.0.1-next.3
Install via package.json:
"@dlr-eoc/layer-control": "12.0.1-next.3"
About this version
For examples see demo maps
- "@dlr-eoc/map-ol"
- "@dlr-eoc/layer-control"
import { MapOlModule } from '@dlr-eoc/map-ol';
import { LayerControlModule } from '@dlr-eoc/layer-control';
...
imports: [
...
MapOlModule,
LayerControlModule
]
<main class="content-area">
<ukis-map-ol [layersSvc]="layersSvc" [mapState]="mapStateSvc" [controls]="controls" id="olMap"></ukis-map-ol>
</main>
<clr-vertical-nav [clrVerticalNavCollapsible]="true" [clr-nav-level]="2">
<clr-vertical-nav-group [clrVerticalNavGroupExpanded]="true" class="layers">
<clr-icon shape="world" title="Overlays" clrVerticalNavIcon></clr-icon>
Overlays
<clr-vertical-nav-group-children class="padding title-ellipsis">
<ukis-layer-control [layersSvc]="layersSvc" [mapStateSvc]="mapStateSvc" [layerfilter]="'Overlays'">
</ukis-layer-control>
</clr-vertical-nav-group-children>
</clr-vertical-nav-group>
<clr-vertical-nav-group [clrVerticalNavGroupExpanded]="true" class="layers">
<clr-icon shape="layers" clrVerticalNavIcon title="layers"></clr-icon>
Layers
<clr-vertical-nav-group-children class="padding title-ellipsis">
<ukis-layer-control [layersSvc]="layersSvc" [mapStateSvc]="mapStateSvc"></ukis-layer-control>
</clr-vertical-nav-group-children>
</clr-vertical-nav-group>
<clr-vertical-nav-group [clrVerticalNavGroupExpanded]="true" class="layers">
<clr-icon shape="world" title="Baselayers" clrVerticalNavIcon></clr-icon>
Baselayers
<clr-vertical-nav-group-children class="padding title-ellipsis">
<ukis-base-layer-control [layersSvc]="layersSvc" [mapStateSvc]="mapStateSvc"></ukis-base-layer-control>
</clr-vertical-nav-group-children>
</clr-vertical-nav-group>
</clr-vertical-nav>
import { LayersService, Layer } from '@dlr-eoc/services-layers';
import { MapStateService } from '@dlr-eoc/services-map-state';
import { IMapControls } from '@dlr-eoc/map-ol';
import { OsmTileLayer } from '@dlr-eoc/base-layers-raster';
controls: IMapControls;
constructor(
public layerSvc: LayersService,
public mapStateSvc: MapStateService
) { }
ngOnInit() {
this.addBaselayers();
this.addLayers();
this.addOverlays()
}
addBaselayers() {
const layers: Layer[] = [
...
];
layers.map(l => this.layerSvc.addLayer(l, 'Baselayers'));
}
addLayers() {
const layers: Layer[] = [
...
];
layers.map(l => this.layerSvc.addLayer(l, 'Layers'));
}
addOverlays(){
const layers: Layer[] = [
...
];
layers.map(l => this.layerSvc.addLayer(l, 'Overlays'));
}
===
This library was generated with Angular CLI version 8.2.14.
Run ng generate component component-name --project layer-control
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module --project layer-control
.
Note: Don't forget to add
--project layer-control
or else it will be added to the default project in yourangular.json
file.
Run ng build layer-control
to build the project. The build artifacts will be stored in the dist/
directory.
Run ng test layer-control
to execute the unit tests via Karma.
To get more help on the Angular CLI use ng help
or go check out the Angular CLI README.
Details
- layer-control
- dlr-eoc
- 8 months ago
- Apache-2.0
- 12 dependencies
Assets
- layer-control-12.0.1-next.3.tgz
Download activity
- Total downloads 0
- Last 30 days 0
- Last week 0
- Today 0