Skip to content

Commit 2d574ab

Browse files
committed
Move gadm and centroids to mapserver.
1 parent 41e2d16 commit 2d574ab

File tree

4 files changed

+480
-334
lines changed

4 files changed

+480
-334
lines changed

src/components/LeftDrawerModels.vue

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -255,9 +255,8 @@ export default {
255255
const disabledInfo = ref(true)
256256
const modelVector = ref()
257257
const estimation = ref(true)
258-
const uncertainty = ref(true)
258+
const uncertainty = ref(false)
259259
const modelsCalendar = ref()
260-
const backendUrl = $store.getters['app/getBackend']
261260
// const defaults = JSON.parse(JSON.stringify($store.getters['app/getModelDefaults']))
262261
const modelsManifest = {}
263262
const startingModelDate = ref('2014/05')
@@ -454,12 +453,6 @@ export default {
454453
if (modelsManifest[selectedModel].cell === 'true') {
455454
urls.push(serverModels + `sampling_cells_025/${selectedModel}/${parts[1]}/${parts[0]}/` + 'sampling_cells_025_monthly.csv')
456455
}
457-
const centroidsUrls = [
458-
backendUrl + 'media/centroids/gadm1_centroid.json',
459-
backendUrl + 'media/centroids/gadm2_centroid.json',
460-
backendUrl + 'media/centroids/gadm3_centroid.json',
461-
backendUrl + 'media/centroids/gadm4_centroid.json'
462-
]
463456
const estimationPalettes = $store.getters['app/getEstimationPalettes']
464457
465458
// Prepare payload to update store
@@ -476,8 +469,7 @@ export default {
476469
uncertaintyColor: uncertaintyColor.value,
477470
estimationColors: estimationColors,
478471
estimationPalettes: estimationPalettes,
479-
modelsCsv: urls,
480-
centroidsUrls: centroidsUrls
472+
modelsCsv: urls
481473
}
482474
$store.commit('app/setModelDefaults', payload)
483475
context.emit('loadModel', payload)

0 commit comments

Comments
 (0)