Skip to content

Commit

Permalink
Merge pull request #858 from geoadmin/bug-PB-496-external-layer-proje…
Browse files Browse the repository at this point in the history
…ction

PB-496: Fix external layer error and time slider issue
  • Loading branch information
ltshb authored May 23, 2024
2 parents ade0f7b + 8617bda commit 333dba9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
9 changes: 0 additions & 9 deletions src/api/layers/ExternalLayer.class.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import AbstractLayer, { LayerAttribution } from '@/api/layers/AbstractLayer.class'
import { InvalidLayerDataError } from '@/api/layers/InvalidLayerData.error'
import { WGS84 } from '@/utils/coordinates/coordinateSystems'
import log from '@/utils/logging'

/**
* Information required to create a GetFeatureInfo request to this external WM(T)S server. This
Expand Down Expand Up @@ -148,13 +146,6 @@ export default class ExternalLayer extends AbstractLayer {
this.extent = extent
this.legends = legends
this.availableProjections = [...availableProjections]
if (this.availableProjections.length === 0) {
log.error(
'No supported projection found within external layer config, falling back to WGS84',
externalLayerData
)
this.availableProjections.push(WGS84)
}
this.getFeatureInfoCapability = getFeatureInfoCapability
this.currentYear = currentYear
if (currentYear && this.timeConfig) {
Expand Down
4 changes: 1 addition & 3 deletions src/store/modules/layers.store.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,7 @@ const getters = {
*/
visibleLayersWithTimeConfig: (state) =>
// Here we cannot take the getter visibleLayers as it also contain the preview and system layers
state.activeLayers.filter(
(layer) => layer.visible && layer.timeConfig?.timeEntries?.length
),
state.activeLayers.filter((layer) => layer.visible && layer.hasMultipleTimestamps),

/**
* Returns true if the layer comes from a third party (external layer or KML layer).
Expand Down

0 comments on commit 333dba9

Please sign in to comment.