Skip to content

Commit

Permalink
fix(xy): Ask for coordinate system if loading output_trips
Browse files Browse the repository at this point in the history
  • Loading branch information
billyc committed Dec 13, 2021
1 parent 64df28e commit c1b5e91
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
7 changes: 6 additions & 1 deletion src/plugins/xy-hexagons/XyHexagons.vue
Original file line number Diff line number Diff line change
Expand Up @@ -380,12 +380,17 @@ class XyHexagons extends Vue {
const hasYaml = new RegExp('.*(yml|yaml)$').test(this.myState.yamlConfig)
if (!hasYaml) {
let projection = 'EPSG:31468' // 'EPSG:25832', // 'EPSG:31468', // TODO: fix
if (!this.myState.thumbnail) {
projection = prompt('Enter projection: e.g. "EPSG:31468"') || 'EPSG:31468'
if (!!parseInt(projection, 10)) projection = 'EPSG:' + projection
}
// output_trips:
this.vizDetails = {
title: 'Output Trips',
description: this.myState.yamlConfig,
file: this.myState.yamlConfig,
projection: 'EPSG:31468', // 'EPSG:25832', // 'EPSG:31468', // TODO: fix
projection,
aggregations: {
'Trip Summary': [
{ title: 'Origins', x: 'start_x', y: 'start_y' },
Expand Down
12 changes: 6 additions & 6 deletions src/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ const initialViewState = () => ({
// start with western europe for now
initial: true,
pitch: 0,
longitude: -122.4,
latitude: 37.8,
zoom: 9,
// longitude: 10,
// latitude: 50,
// zoom: 5,
// longitude: -122.4,
// latitude: 37.8,
// zoom: 9,
longitude: 10,
latitude: 50,
zoom: 6,
bearing: 0,
})

Expand Down

0 comments on commit c1b5e91

Please sign in to comment.