Skip to content

Commit 0b5490c

Browse files
committed
many small fixes
1 parent ad6bb26 commit 0b5490c

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/plugins/aequilibrae/AequilibraEReader.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,14 @@ const MyComponent = defineComponent({
8181
},
8282
8383
data() {
84+
const uniqueId = `id-${Math.floor(1e12 * Math.random())}`
8485
return {
8586
globalState: globalStore.state,
8687
vizDetails: { title: '', description: '', database: '', view: '', layers: {} } as VizDetails,
8788
layerConfigs: {} as { [layerName: string]: LayerConfig },
8889
loadingText: '',
89-
id: `id-${Math.floor(1e12 * Math.random())}` as any,
90-
layerId: 'aequilibrae-layer-1' as string,
90+
id: uniqueId as any,
91+
layerId: `aequilibrae-layer-${uniqueId}` as string,
9192
aeqFileSystem: null as any,
9293
spl: null as any,
9394
db: null as any,

src/plugins/aequilibrae/styling.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ const palettes: Record<string, string[]> = {
7070
Reds: ['#fee5d9', '#fcbba1', '#fc9272', '#fb6a4a', '#de2d26', '#a50f15'],
7171
// Diverging palettes - useful for ratio/deviation visualization
7272
RdYlGn: ['#d73027', '#fc8d59', '#fee08b', '#d9ef8b', '#91cf60', '#1a9850'],
73+
GnRd: ['#1a9850', '#91cf60', '#d9ef8b', '#fee08b', '#fc8d59', '#d73027'],
7374
RdBu: ['#b2182b', '#ef8a62', '#fddbc7', '#d1e5f0', '#67a9cf', '#2166ac'],
7475
PiYG: ['#c51b7d', '#e9a3c9', '#fde0ef', '#e6f5d0', '#a1d76a', '#4d9221'],
7576
// Viridis-like for continuous data

0 commit comments

Comments
 (0)