Skip to content

Commit

Permalink
Merge branch 'svg-icons' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
jmbarne3 committed Aug 23, 2024
2 parents 6e88816 + c525aae commit 9802219
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 @@ -390,6 +390,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 @@ -573,6 +574,7 @@ function App() {
layout: {
...defaultLayoutProps,
"icon-image": 'auto-door',
"icon-size": 1,
visibility: visibility.accessibility.autoDoors! ? 'visible': 'none'
},
};
Expand Down Expand Up @@ -605,6 +607,7 @@ function App() {
layout: {
...defaultLayoutProps,
"icon-image": 'bike-rack',
"icon-size": 1,
visibility: visibility.bikeRacks! ? 'visible': 'none'
},
};
Expand All @@ -615,6 +618,7 @@ function App() {
layout: {
...defaultLayoutProps,
"icon-image": 'family',
"icon-size": .9,
visibility: visibility.family! ? 'visible': 'none'
},
};
Expand All @@ -635,6 +639,7 @@ function App() {
layout: {
...defaultLayoutProps,
"icon-image": 'art',
"icon-size": .9,
visibility: visibility.art! ? 'visible': 'none'
},
};
Expand All @@ -645,6 +650,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 9802219

Please sign in to comment.