Commit 603a2a7f authored by ncastejon's avatar ncastejon
Browse files

Fix MVT display for download.data data

parent 22d355cb
Pipeline #1806 passed with stages
in 6 minutes
......@@ -9,6 +9,7 @@ import { Minimap } from '../components/minimap-control';
import { settings } from '../settings';
import { MapOptions, GeoService } from '../models/map-options';
import centroid from '@turf/centroid';
import { APP_CONFIG } from '../../core/services/app-config.service';
@Injectable()
export class MapService {
......@@ -124,7 +125,7 @@ export class MapService {
this.addWMSLayer();
// 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
if (!this.isMVT) {
if (this.geojson) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment