Skip to content

Commit

Permalink
Adjusted icon sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
jmbarne3 committed Aug 23, 2024
1 parent 38d3759 commit c525aae
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,7 @@ function App() {

const defaultLayoutProps: any = {
'icon-allow-overlap': true,
'icon-size': .66,
'text-field': ['get', 'Name'],
'text-font': [
'Open Sans Semibold',
Expand Down Expand Up @@ -566,6 +567,7 @@ function App() {
layout: {
...defaultLayoutProps,
"icon-image": 'auto-door',
"icon-size": 1,
visibility: visibility.accessibility.autoDoors! ? 'visible': 'none'
},
};
Expand Down Expand Up @@ -598,6 +600,7 @@ function App() {
layout: {
...defaultLayoutProps,
"icon-image": 'bike-rack',
"icon-size": 1,
visibility: visibility.bikeRacks! ? 'visible': 'none'
},
};
Expand All @@ -608,6 +611,7 @@ function App() {
layout: {
...defaultLayoutProps,
"icon-image": 'family',
"icon-size": .9,
visibility: visibility.family! ? 'visible': 'none'
},
};
Expand All @@ -628,6 +632,7 @@ function App() {
layout: {
...defaultLayoutProps,
"icon-image": 'art',
"icon-size": .9,
visibility: visibility.art! ? 'visible': 'none'
},
};
Expand All @@ -638,6 +643,7 @@ function App() {
layout: {
...defaultLayoutProps,
"icon-image": 'service',
"icon-size": .9,
visibility: visibility.studentServices! ? 'visible': 'none'
},
};
Expand Down
2 changes: 1 addition & 1 deletion src/components/MapImage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export function MapIcon(props: MapIconProps) {
if (!map?.hasImage(props.iconName)) {
map?.addImage(props.iconName, blankImage);

let img = new Image(40, 40);
let img = new Image(60, 60);
img.src = props.iconImageSource;

img.onload = () => {
Expand Down

0 comments on commit c525aae

Please sign in to comment.