Skip to content

Commit

Permalink
wip lint
Browse files Browse the repository at this point in the history
  • Loading branch information
pelord committed Aug 29, 2023
1 parent 45d723e commit 1a61bb2
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions src/app/pages/portal/portal.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ import { WelcomeWindowService } from './welcome-window/welcome-window.service';
import { MatPaginator } from '@angular/material/paginator';
import { ObjectUtils, uuid } from '@igo2/utils';
import olFormatGeoJSON from 'ol/format/GeoJSON';
import { KEY_FORMAT_JWK } from '@azure/msal-browser/dist/utils/BrowserConstants';

@Component({
selector: 'app-portal',
Expand Down Expand Up @@ -687,19 +686,19 @@ export class PortalComponent implements OnInit, OnDestroy {
olParser2.writeStyle(pointGeoStyle)
.then((output) => {
console.log("output", output);
(lastLayer.ol as any).setStyle(output.output)
console.log("output", output.output)
(lastLayer.ol as any).setStyle(output.output);
console.log("output", output.output);
})
.catch(error => console.log(error));
console.log("lastLayer", lastLayer)
console.log("lastLayer", lastLayer);

}

changeStyle() {
const lastLayer = this.map.layers
.filter(l => l.showInLayerList)
.filter(l => l.dataSource.options.type === 'wfs').pop();

const geoStylerStyle: any = {
"name": "Basic Circle",
"rules": [
Expand Down Expand Up @@ -730,11 +729,11 @@ export class PortalComponent implements OnInit, OnDestroy {
olParser.writeStyle(geoStylerStyle)
.then((output) => {
console.log("output", output);
(lastLayer.ol as any).setStyle(output.output)
console.log("output", output.output)
(lastLayer.ol as any).setStyle(output.output);
console.log("output", output.output);
})
.catch(error => console.log(error));
console.log("lastLayer", lastLayer)
console.log("lastLayer", lastLayer);
}

/**
Expand Down Expand Up @@ -1026,7 +1025,7 @@ export class PortalComponent implements OnInit, OnDestroy {
const geometry4326 = new olGeom.Point(coord);
const geometryMapProjection = geometry4326.transform('EPSG:4326',this.map.projection);
const feature = new olFeature({ id: uuid(), geometry: geometryMapProjection });
layer.dataSource.ol.addFeature(feature)
layer.dataSource.ol.addFeature(feature);
}

updateMapBrowserClass() {
Expand Down

0 comments on commit 1a61bb2

Please sign in to comment.