Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(geo): layer - adjust the cancellation of ongoing request #1724

Open
wants to merge 1 commit into
base: next
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,9 @@ export class WFSDataSource extends DataSource {
const currentExtent = extent
? OlProj.transformExtent(extent, projection, wfsProj)
: undefined;
const ogcFilters = this.ogcFilters;

paramsWFS.srsName = paramsWFS.srsName || projection.getCode();
let url = buildUrl(this.options, currentExtent, wfsProj, ogcFilters);
let url = buildUrl(this.options, currentExtent, wfsProj);

// Exportation want to fetch without extent/bbox restrictions
if (!extent && url.includes('bbox')) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import olProjection from 'ol/proj/Projection';

import { OgcFilterWriter } from '../../../filter/shared/ogc-filter';
import { OgcFiltersOptions } from '../../../filter/shared/ogc-filter.interface';

Check failure on line 10 in packages/geo/src/lib/datasource/shared/datasources/wms-wfs.utils.ts

View workflow job for this annotation

GitHub Actions / Analyze Pull Rrequest

'OgcFiltersOptions' is defined but never used
import { WFSDataSourceOptions } from './wfs-datasource.interface';
import { WMSDataSourceOptions } from './wms-datasource.interface';

Expand All @@ -30,9 +30,9 @@
options: WFSDataSourceOptions,
extent: Extent,
proj: olProjection,
ogcFilters: OgcFiltersOptions,
randomParam?: boolean
): string {
const ogcFilters = options.ogcFilters;
const paramsWFS = options.paramsWFS;
const queryStringValues = formatWFSQueryString(
options,
Expand Down
Loading
Loading