Skip to content
Snippets Groups Projects
Commit 603a2a7f authored by ncastejon's avatar ncastejon
Browse files

Fix MVT display for download.data data

parent 22d355cb
Branches
Tags
1 merge request!54Version 2.3.2 fix
Checking pipeline status
...@@ -9,6 +9,7 @@ import { Minimap } from '../components/minimap-control'; ...@@ -9,6 +9,7 @@ import { Minimap } from '../components/minimap-control';
import { settings } from '../settings'; import { settings } from '../settings';
import { MapOptions, GeoService } from '../models/map-options'; import { MapOptions, GeoService } from '../models/map-options';
import centroid from '@turf/centroid'; import centroid from '@turf/centroid';
import { APP_CONFIG } from '../../core/services/app-config.service';
@Injectable() @Injectable()
export class MapService { export class MapService {
...@@ -124,7 +125,7 @@ export class MapService { ...@@ -124,7 +125,7 @@ export class MapService {
this.addWMSLayer(); this.addWMSLayer();
// Add a geojson layer only if data from the metropole // Add a geojson layer only if data from the metropole
if (this.rasterService.url.includes('download.data')) { if (this.rasterService.url.includes(APP_CONFIG.backendUrls.wms)) {
// There is two ways to add tha data layers: from a geojson or from a MVT url // There is two ways to add tha data layers: from a geojson or from a MVT url
if (!this.isMVT) { if (!this.isMVT) {
if (this.geojson) { if (this.geojson) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment