Skip to content

Commit

Permalink
reduce airport icons sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
Rybeusz100 committed Aug 30, 2022
1 parent 5d185da commit ba2eaa0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion front/src/map/googleMap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@ export default class GoogleMap extends BaseMap {
let marker = new google.maps.Marker({
position: new google.maps.LatLng(airport.latitude_deg, airport.longitude_deg),
map: this.map,
icon: `./images/${airport.type}.png`,
icon: {
url: `./images/${airport.type}.png`,
scaledSize: new google.maps.Size(35, 35),
},
title: `<h2>${airport.name}</h2><b>type: ${airport.type.replace('_', ' ')}`,
});

Expand Down
2 changes: 1 addition & 1 deletion front/src/map/openStreetMap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export default class OpenStreetMap extends BaseMap {
});
const markerStyle = new Style({
image: new Icon({
scale: 1,
scale: 0.7,
src: `/images/${airport.type}.png`,
}),
});
Expand Down

0 comments on commit ba2eaa0

Please sign in to comment.