Skip to content

Commit

Permalink
fix: dt-6033 map zoom config, raasepori settings
Browse files Browse the repository at this point in the history
  • Loading branch information
sharhio committed Oct 12, 2023
1 parent 60c2560 commit fce013a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/component/map/IndexPageMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function IndexPageMap(
} else if (!match.params.from && !match.params.to) {
// use default location only if url does not include location
newFocus = config.defaultEndpoint;
zoom = 12;
zoom = config.defaultMapZoom;
}

if (!sameLocations(focus, newFocus) && newFocus.lat) {
Expand Down
2 changes: 2 additions & 0 deletions app/configurations/config.default.js
Original file line number Diff line number Diff line change
Expand Up @@ -607,6 +607,8 @@ export default {
lon: 24.9690395,
},

defaultMapZoom: 12,

availableRouteTimetables: {},

routeTimetableUrlResolver: {},
Expand Down
7 changes: 4 additions & 3 deletions app/configurations/config.raasepori.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default configMerger(walttiConfig, {
href: 'https://raasepori.fi/bosse',
alternativeHref: {
sv: 'https://raseborg.fi/bosse',
en: 'https://raseborg.fi/bosse',
en: 'https://raasepori.fi/bosse',
},
},

Expand Down Expand Up @@ -63,9 +63,10 @@ export default configMerger(walttiConfig, {

defaultEndpoint: {
address: 'Bockbodantie, Raasepori',
lat: 60.04,
lon: 23.56,
lat: 60.03,
lon: 23.57,
},
defaultMapZoom: 11,

menu: {
copyright: { label: `© Raasepori ${walttiConfig.YEAR}` },
Expand Down

0 comments on commit fce013a

Please sign in to comment.