diff --git a/projects/common-map/src/fm-map/actions/map.actions.ts b/projects/common-map/src/fm-map/actions/map.actions.ts index 7b24508..ce963ca 100644 --- a/projects/common-map/src/fm-map/actions/map.actions.ts +++ b/projects/common-map/src/fm-map/actions/map.actions.ts @@ -1,6 +1,8 @@ import { Action } from '@ngrx/store'; -import { IMapState,IItemLayer,IQueryState } from '../models'; +import { IMapState } from '../models/map.state'; +import { IItemLayer } from '../models/item.layer'; +import { IQueryState } from '../models/query.state'; import { IItem } from '@farmmaps/common'; import { Feature } from 'ol'; import { Extent } from 'ol/extent'; diff --git a/projects/common-map/src/fm-map/common-map.module.ts b/projects/common-map/src/fm-map/common-map.module.ts index 0179789..a4e9774 100644 --- a/projects/common-map/src/fm-map/common-map.module.ts +++ b/projects/common-map/src/fm-map/common-map.module.ts @@ -16,12 +16,12 @@ import * as mapReducers from './reducers/map.reducer'; import * as mapActions from './actions/map.actions'; import * as mapEffects from './effects/map.effects'; -import { IMapState} from './models'; -import { ISelectedFeatures } from './models'; -import { IItemLayer } from './models'; -import { ItemLayer} from './models'; -import { IQueryState } from './models'; -import { IPeriodState } from './models'; +import { IMapState} from './models/map.state'; +import { ISelectedFeatures } from './models/selected.features'; +import { IItemLayer } from './models/item.layer'; +import { ItemLayer} from './models/item.layer'; +import { IQueryState } from './models/query.state'; +import { IPeriodState } from './models/period.state'; // components import { GpsLocation} from './components/aol/gps-location/gps-location.component'; @@ -54,7 +54,7 @@ import { LayerListComponent } from './components/aol/layer-list/layer-list.compo import { MetaDataModalComponent } from './components/meta-data-modal/meta-data-modal.component'; import { SelectPeriodModalComponent } from './components/select-period-modal/select-period-modal.component'; import { MapComponent } from './components/map/map.component'; -import { MapSearchComponent } from './components/map-search'; +import { MapSearchComponent } from './components/map-search/map-search.component'; import { MapRoutingModule } from './common-map-routing.module'; import { LegendComponent } from './components/legend/legend.component'; import { LayerVectorImageComponent } from './components/aol/layer-vector-image/layer-vector-image.component'; diff --git a/projects/common-map/src/fm-map/components/aol/item-features-source/item-features-source.component.ts b/projects/common-map/src/fm-map/components/aol/item-features-source/item-features-source.component.ts index 05839c8..720fc34 100644 --- a/projects/common-map/src/fm-map/components/aol/item-features-source/item-features-source.component.ts +++ b/projects/common-map/src/fm-map/components/aol/item-features-source/item-features-source.component.ts @@ -4,7 +4,7 @@ import { LayerVectorComponent, SourceVectorComponent, MapComponent, LayerImageCo import { LayerVectorImageComponent } from '../layer-vector-image/layer-vector-image.component'; import { ItemService } from '@farmmaps/common'; import { IItem } from '@farmmaps/common'; -import { ISelectedFeatures } from '../../../models'; +import { ISelectedFeatures } from '../../../models/selected.features'; import {Vector} from 'ol/source'; import {Feature,Collection} from 'ol'; diff --git a/projects/common-map/src/fm-map/components/aol/item-layers/item-layers.component.ts b/projects/common-map/src/fm-map/components/aol/item-layers/item-layers.component.ts index d753420..009e9e8 100644 --- a/projects/common-map/src/fm-map/components/aol/item-layers/item-layers.component.ts +++ b/projects/common-map/src/fm-map/components/aol/item-layers/item-layers.component.ts @@ -3,8 +3,9 @@ import { HttpClient } from "@angular/common/http"; import { LayerVectorComponent, LayerTileComponent, LayerGroupComponent, MapComponent } from 'ngx-openlayers'; import { ItemService } from '@farmmaps/common'; import { AppConfig } from '@farmmaps/common'; -import { IItemLayer, ILayerData, IRenderoutputTiles, IRenderoutputImage, IGradientstop, ILayer, IHistogram } from '../../../models'; - +import { IItemLayer} from '../../../models/item.layer'; +import { ILayerData} from '../../../models/layer.data'; +import { IRenderoutputTiles,IRenderoutputImage,IGradientstop,ILayer,IHistogram} from '../../../models/color.map'; import {Extent} from 'ol/extent'; import Projection from 'ol/proj/Projection'; import * as proj from 'ol/proj'; diff --git a/projects/common-map/src/fm-map/components/aol/layer-list/layer-list.component.ts b/projects/common-map/src/fm-map/components/aol/layer-list/layer-list.component.ts index 181cf0e..f0acb6d 100644 --- a/projects/common-map/src/fm-map/components/aol/layer-list/layer-list.component.ts +++ b/projects/common-map/src/fm-map/components/aol/layer-list/layer-list.component.ts @@ -1,5 +1,5 @@ import { Component,Input,Output,EventEmitter } from '@angular/core'; -import { IItemLayer } from '../../../models'; +import { IItemLayer } from '../../../models/item.layer'; @Component({ selector: 'fm-map-layer-list', diff --git a/projects/common-map/src/fm-map/components/feature-list/feature-list.component.ts b/projects/common-map/src/fm-map/components/feature-list/feature-list.component.ts index 0088ca2..4b89734 100644 --- a/projects/common-map/src/fm-map/components/feature-list/feature-list.component.ts +++ b/projects/common-map/src/fm-map/components/feature-list/feature-list.component.ts @@ -8,7 +8,7 @@ import * as mapActions from '../../actions/map.actions'; import { Observable, from } from 'rxjs'; import { withLatestFrom } from 'rxjs/operators'; import { tassign } from 'tassign'; -import { IQueryState } from '../../models'; +import { IQueryState } from '../../models/query.state'; @Injectable() diff --git a/projects/common-map/src/fm-map/components/item-list/item-list.component.ts b/projects/common-map/src/fm-map/components/item-list/item-list.component.ts index c9bd520..f50ba7a 100644 --- a/projects/common-map/src/fm-map/components/item-list/item-list.component.ts +++ b/projects/common-map/src/fm-map/components/item-list/item-list.component.ts @@ -1,14 +1,10 @@ import { Component, Input, Injectable } from '@angular/core'; import { Location } from '@angular/common'; -import { Feature } from 'ol'; import { Store } from '@ngrx/store'; import * as mapReducers from '../../reducers/map.reducer'; -import { commonReducers,ItemTypeService, IItem, Item,IListItem } from '@farmmaps/common'; +import { commonReducers,ItemTypeService,IListItem } from '@farmmaps/common'; import * as mapActions from '../../actions/map.actions'; -import { Observable, from } from 'rxjs'; -import { withLatestFrom } from 'rxjs/operators'; import { tassign } from 'tassign'; -import { IQueryState } from '../../models'; @Injectable() diff --git a/projects/common-map/src/fm-map/components/legend/legend.component.ts b/projects/common-map/src/fm-map/components/legend/legend.component.ts index 793dce3..465d2fa 100644 --- a/projects/common-map/src/fm-map/components/legend/legend.component.ts +++ b/projects/common-map/src/fm-map/components/legend/legend.component.ts @@ -1,5 +1,5 @@ import { Component, OnInit, Input,AfterViewInit } from '@angular/core'; -import { IColorMap, IColor, IColorEntry,ILayer } from '../../models'; +import { IColorMap, IColor, IColorEntry,ILayer } from '../../models/color.map'; @Component({ diff --git a/projects/common-map/src/fm-map/components/map-search/index.ts b/projects/common-map/src/fm-map/components/map-search/index.ts deleted file mode 100644 index edb2ea1..0000000 --- a/projects/common-map/src/fm-map/components/map-search/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from './map-search.component'; diff --git a/projects/common-map/src/fm-map/components/map-search/map-search.component.ts b/projects/common-map/src/fm-map/components/map-search/map-search.component.ts index 23ccea5..5d701db 100644 --- a/projects/common-map/src/fm-map/components/map-search/map-search.component.ts +++ b/projects/common-map/src/fm-map/components/map-search/map-search.component.ts @@ -2,7 +2,8 @@ import { Component, Input, Output, OnInit, EventEmitter, SimpleChanges, OnChange import { Observable , of } from 'rxjs'; import { debounceTime,distinctUntilChanged,tap,switchMap,merge,catchError} from 'rxjs/operators'; import { TypeaheadService, TimespanService } from '@farmmaps/common'; -import { IQueryState,IPeriodState } from '../../models'; +import { IQueryState } from '../../models/query.state'; +import { IPeriodState } from '../../models/period.state'; import { fillProperties } from '@angular/core/src/util/property'; import { tassign } from 'tassign'; diff --git a/projects/common-map/src/fm-map/components/map/map.component.ts b/projects/common-map/src/fm-map/components/map/map.component.ts index 64a4bea..7135ace 100644 --- a/projects/common-map/src/fm-map/components/map/map.component.ts +++ b/projects/common-map/src/fm-map/components/map/map.component.ts @@ -9,7 +9,11 @@ import { Store } from '@ngrx/store'; // Map import * as mapReducers from '../../reducers/map.reducer'; import * as mapActions from '../../actions/map.actions'; -import { IMapState,ISelectedFeatures,IItemLayer, ItemLayer,IQueryState,IPeriodState } from '../../models'; +import { IMapState} from '../../models/map.state'; +import { ISelectedFeatures } from '../../models/selected.features'; +import { IItemLayer } from '../../models/item.layer'; +import { IQueryState } from '../../models/query.state'; +import { IPeriodState } from '../../models/period.state'; import { IDroppedFile } from '../aol/file-drop-target/file-drop-target.component'; import { IMetaData } from '../meta-data-modal/meta-data-modal.component'; import { StateSerializerService } from '../../services/state-serializer.service'; diff --git a/projects/common-map/src/fm-map/models/index.ts b/projects/common-map/src/fm-map/models/index.ts deleted file mode 100644 index 61012f1..0000000 --- a/projects/common-map/src/fm-map/models/index.ts +++ /dev/null @@ -1,7 +0,0 @@ -export * from './map.state'; -export * from './selected.features'; -export * from './item.layer' -export * from './layer.data' -export * from './color.map'; -export * from './query.state'; -export * from './period.state'; diff --git a/projects/common-map/src/fm-map/reducers/map.reducer.ts b/projects/common-map/src/fm-map/reducers/map.reducer.ts index 01d4a14..1e327b8 100644 --- a/projects/common-map/src/fm-map/reducers/map.reducer.ts +++ b/projects/common-map/src/fm-map/reducers/map.reducer.ts @@ -1,6 +1,9 @@ import { tassign } from 'tassign'; import { IItem,Item } from '@farmmaps/common'; -import { IItemLayer,ItemLayer, IMapState,IQueryState,IPeriodState} from '../models' +import { IItemLayer,ItemLayer} from '../models/item.layer'; +import { IMapState} from '../models/map.state'; +import { IQueryState} from '../models/query.state'; +import { IPeriodState} from '../models/period.state'; import * as mapActions from '../actions/map.actions'; import {commonActions} from '@farmmaps/common'; import { createSelector, createFeatureSelector } from '@ngrx/store'; diff --git a/projects/common/src/fm/index.ts b/projects/common/src/fm/index.ts deleted file mode 100644 index 8b13789..0000000 --- a/projects/common/src/fm/index.ts +++ /dev/null @@ -1 +0,0 @@ -