FarmMapsLib/projects/common-map/src/fm-map/components/map/map.component.html

59 lines
3.6 KiB
HTML
Raw Normal View History

2019-11-01 15:53:24 +00:00
<aol-map #map (onMoveEnd)="handleOnMoveEnd($event)" (click)="handleOnMouseDown($event)" [ngClass]="{'panel-visible':(panelVisible|async)}" class="map">
<div>
</div>
2019-11-04 17:47:15 +00:00
<aol-view [zoom]="(mapState|async).zoom" [rotation]="(mapState|async).rotation">
<aol-coordinate [x]="(mapState|async).xCenter" [y]="(mapState|async).yCenter" [srid]="'EPSG:4326'"></aol-coordinate>
<fm-map-zoom-to-extent [extent]="extent|async" [animate]="true"></fm-map-zoom-to-extent>
</aol-view>
2019-10-28 13:18:25 +00:00
<aol-interaction-default></aol-interaction-default>
<aol-interaction-dragrotateandzoom></aol-interaction-dragrotateandzoom>
2019-11-04 12:34:00 +00:00
<fm-map-item-layers [itemLayers]="baseLayers|async"></fm-map-item-layers>
<fm-map-item-layers [itemLayers]="overlayLayers|async"></fm-map-item-layers>
<fm-map-item-layers [itemLayer]="selectedItemLayer|async"></fm-map-item-layers>
2019-10-28 13:18:25 +00:00
<aol-layer-vector>
2019-11-04 12:34:00 +00:00
<fm-map-item-source-vector [features]="features|async" (onFeaturesSelected)="handleFeaturesSelected($event)" [selectedFeature]="selectedFeature|async" [selectedItem]="selectedItem|async"></fm-map-item-source-vector>
2019-10-28 13:18:25 +00:00
</aol-layer-vector>
2019-11-04 12:34:00 +00:00
<fm-map-gps-location [position]="position|async" [headingTolerance]="20" [showHeading]="true"></fm-map-gps-location>
2019-10-28 13:18:25 +00:00
<div class="control-container">
<!-- <switch2d3d></switch2d3d>-->
2019-11-04 12:34:00 +00:00
<fm-map-rotation-reset></fm-map-rotation-reset>
2019-10-28 13:18:25 +00:00
</div>
2019-11-04 12:34:00 +00:00
<fm-map-file-drop-target [parentCode]="(parentCode | async)" (onFileDropped)="handleFileDropped($event)"></fm-map-file-drop-target>
2019-10-28 13:18:25 +00:00
</aol-map>
2019-11-04 12:34:00 +00:00
<fm-map-map-search #mapSearch [openedModalName]="openedModalName|async" (onOpenModal)="handleOpenModal($event)" (onCloseModal)="handleCloseModal()" [ngClass]="{'menuVisible':(menuVisible|async)}" (onToggleMenu)="handleToggleMenu($event)" (onSearchCollapse)="handleSearchCollapse($event)" (onSearchExpand)="handleSearchExpand($event)" [collapsed]="searchCollapsed|async" [searchMinified]="(searchMinified | async)" (onSearch)="handleSearch($event)" (onClear)="handleClearSearch($event)" [filterOptions]="queryState|async" [clearEnabled]="clearEnabled|async" [period]="period|async"></fm-map-map-search>
<fm-side-panel [resizeable]="true" [visible]="(panelVisible|async)" [collapsed]="(panelCollapsed|async)" [collapsable]="false">
2019-10-28 13:18:25 +00:00
<div class="panel-wrapper">
<div class="panel-top bg-secondary" *ngIf="!(searchMinified | async)">
</div>
<div class="panel-bottom">
<div *ngIf="!(selectedItem|async)">
2019-11-04 12:34:00 +00:00
<fm-map-feature-list-container [features]="(features | async)" [queryState]="(queryState|async)"></fm-map-feature-list-container>
2019-10-28 13:18:25 +00:00
</div>
<div *ngIf="(selectedItem | async);let item">
2019-11-04 12:34:00 +00:00
<fm-map-selected-item-container [item]="item"></fm-map-selected-item-container>
2019-10-28 13:18:25 +00:00
</div>
<div *ngIf="(features|async).length == 0" class="no-results m-2">
<div *ngIf="(queryState|async)?.query">Cannot find <span>{{(queryState|async)?.query}}</span></div>
<div *ngIf="(queryState|async)?.tags">Cannot find tag <span>{{(queryState|async)?.tags}}</span></div>
</div>
</div>
</div>
2019-11-04 12:34:00 +00:00
</fm-side-panel>
<fm-side-panel [visible]="(menuVisible|async)" class="menu">
2019-10-28 13:18:25 +00:00
<div class="container-fluid">
<div class="body">
2019-11-06 12:38:37 +00:00
<div class="d-flex flex-row">
<div class="mt-2 mb-2 flex-grow-1 logo"><router-outlet name="side-panel-logo"></router-outlet></div>
<div class="mt-2 mb-2 ml-2"><button type="button" class="btn btn-outline-secondary" (click)="handleToggleMenu($event)"><i class="fa fa-times" aria-hidden="true"></i></button></div>
2019-10-28 13:18:25 +00:00
</div>
2019-11-06 12:38:37 +00:00
<div class="d-flex flex-column cards">
<router-outlet name="side-panel-menu"></router-outlet>
</div>
2019-11-05 16:19:33 +00:00
</div>
2019-10-28 13:18:25 +00:00
</div>
2019-11-04 12:34:00 +00:00
</fm-side-panel>
2019-10-28 13:18:25 +00:00