Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import { Component } from '@angular/core';
import { ToolComponent } from '@igo2/common';
@ToolComponent({
name: 'timeFilter',
title: 'igo.integration.tools.timeFilter',
icon: 'history'
})
@Component({
selector: 'igo-time-filter-tool',
templateUrl: './time-filter-tool.component.html'
})
export class TimeFilterToolComponent {
constructor() {}
}
import { Component, ChangeDetectionStrategy, Input } from '@angular/core';
import { ToolComponent } from '@igo2/common';
import { LayerListControlsEnum } from '@igo2/geo';
import { LayerListControlsOptions } from '../shared/map-details-tool.interface';
/**
* Tool to browse a map's layers or to choose a different map
*/
@ToolComponent({
name: 'map',
title: 'igo.integration.tools.map',
icon: 'map'
})
@Component({
selector: 'igo-map-tool',
templateUrl: './map-tool.component.html',
styleUrls: ['./map-tool.component.scss'],
changeDetection: ChangeDetectionStrategy.OnPush
})
export class MapToolComponent {
@Input() toggleLegendOnVisibilityChange: boolean = false;
@Input() expandLegendOfVisibleLayers: boolean = false;
import { Component } from '@angular/core';
import { ToolComponent } from '@igo2/common';
import { IgoMap } from '@igo2/geo';
import { MapState } from '../../map/map.state';
@ToolComponent({
name: 'print',
title: 'igo.integration.tools.print',
icon: 'printer'
})
@Component({
selector: 'igo-print-tool',
templateUrl: './print-tool.component.html'
})
export class PrintToolComponent {
get map(): IgoMap {
return this.mapState.map;
}
constructor(private mapState: MapState) {}
}
Feature,
FeatureMotion,
LAYER,
SearchResult,
IgoMap,
moveToOlFeatures
} from '@igo2/geo';
import { MapState } from '../../map/map.state';
import { SearchState } from '../search.state';
/**
* Tool to browse the search results
*/
@ToolComponent({
name: 'searchResults',
title: 'igo.integration.tools.searchResults',
icon: 'magnify'
})
@Component({
selector: 'igo-search-results-tool',
templateUrl: './search-results-tool.component.html',
changeDetection: ChangeDetectionStrategy.OnPush
})
export class SearchResultsToolComponent {
/**
* to show hide results icons
*/
@Input() showIcons: boolean = true;
/**
import { Component } from '@angular/core';
import { ToolComponent } from '@igo2/common';
import { ToolState } from '../../tool/tool.state';
@ToolComponent({
name: 'catalog',
title: 'igo.integration.tools.catalog',
icon: 'photo_library'
})
@Component({
selector: 'igo-catalog-tool',
templateUrl: './catalog-tool.component.html'
})
export class CatalogToolComponent {
constructor(private toolState: ToolState) {}
onFeatureSelect() {
this.toolState.toolbox.activateTool('catalogLayers');
}
}
import { Component, OnInit, ChangeDetectionStrategy } from '@angular/core';
import { ToolComponent } from '@igo2/common';
import { EntityStore } from '@igo2/common';
import { Catalog, CatalogService } from '@igo2/geo';
import { ToolState } from '../../tool/tool.state';
import { CatalogState } from '../catalog.state';
/**
* Tool to browse the list of available catalogs.
*/
@ToolComponent({
name: 'catalog',
title: 'igo.integration.tools.catalog',
icon: 'layers-plus'
})
@Component({
selector: 'igo-catalog-library-tool',
templateUrl: './catalog-library-tool.component.html',
changeDetection: ChangeDetectionStrategy.OnPush
})
export class CatalogLibraryToolComponent implements OnInit {
/**
* Store that contains the catalogs
* @internal
*/
get store(): EntityStore {
return this.catalogState.catalogStore;
import {
IgoMap,
Catalog,
CatalogItem,
CatalogItemState,
CatalogService
} from '@igo2/geo';
import { MapState } from '../../map/map.state';
import { CatalogState } from '../catalog.state';
/**
* Tool to browse a catalog's groups and layers and display them to a map.
*/
@ToolComponent({
name: 'catalogBrowser',
title: 'igo.integration.tools.catalog',
icon: 'photo-browser',
parent: 'catalog'
})
@Component({
selector: 'igo-catalog-browser-tool',
templateUrl: './catalog-browser-tool.component.html',
changeDetection: ChangeDetectionStrategy.OnPush
})
export class CatalogBrowserToolComponent implements OnInit, OnDestroy {
catalog: Catalog;
/**
* Store that contains the catalog items
* @internal
import { Component } from '@angular/core';
import { ToolComponent } from '@igo2/common';
@ToolComponent({
name: 'contextEditor',
title: 'igo.integration.tools.contexts',
icon: 'star',
parent: 'contextManager'
})
@Component({
selector: 'igo-context-editor-tool',
templateUrl: './context-editor-tool.component.html'
})
export class ContextEditorToolComponent {}
import { Component } from '@angular/core';
import { ToolComponent } from '@igo2/common';
@ToolComponent({
name: 'contextPermissionManager',
title: 'igo.integration.tools.contexts',
icon: 'star',
parent: 'contextManager'
})
@Component({
selector: 'igo-context-permission-manager-tool',
templateUrl: './context-permission-manager-tool.component.html'
})
export class ContextPermissionManagerToolComponent {}
import { Component } from '@angular/core';
import { ToolComponent } from '@igo2/common';
import { IgoMap } from '@igo2/geo';
import { MapState } from '../../map/map.state';
@ToolComponent({
name: 'directions',
title: 'igo.integration.tools.directions',
icon: 'directions'
})
@Component({
selector: 'igo-directions-tool',
templateUrl: './directions-tool.component.html'
})
export class DirectionsToolComponent {
get map(): IgoMap {
return this.mapState.map;
}
constructor(private mapState: MapState) {}
}