Skip to content

Commit

Permalink
Textsize to 14 and use Bold.
Browse files Browse the repository at this point in the history
  • Loading branch information
jcardus committed Oct 31, 2024
1 parent 363d8c3 commit 7e27071
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/map/MapGeofence.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const MapGeofence = () => {
layout: {
'text-field': '{name}',
'text-font': findFonts(map),
'text-size': 12,
'text-size': 14,
},
paint: {
'text-halo-color': 'white',
Expand Down
2 changes: 1 addition & 1 deletion src/map/MapMarkers.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const MapMarkers = ({ markers, showTitles }) => {
'text-anchor': 'bottom',
'text-offset': [0, -2 * iconScale],
'text-font': findFonts(map),
'text-size': 12,
'text-size': 14,
},
paint: {
'text-halo-color': 'white',
Expand Down
2 changes: 1 addition & 1 deletion src/map/MapPositions.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ const MapPositions = ({ positions, onClick, showStatus, selectedPosition, titleF
'text-anchor': 'bottom',
'text-offset': [0, -2 * iconScale],
'text-font': findFonts(map),
'text-size': 12,
'text-size': 14,
},
paint: {
'text-halo-color': 'white',
Expand Down
2 changes: 1 addition & 1 deletion src/map/MapRouteCoordinates.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const MapRouteCoordinates = ({ name, coordinates, deviceId }) => {
layout: {
'text-field': '{name}',
'text-font': findFonts(map),
'text-size': 12,
'text-size': 14,
},
paint: {
'text-halo-color': 'white',
Expand Down
2 changes: 1 addition & 1 deletion src/map/core/mapUtil.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export const geometryToArea = (geometry) => stringify(reverseCoordinates(geometr
export const findFonts = (map) => {
const { glyphs } = map.getStyle();
if (glyphs.startsWith('https://tiles.openfreemap.org')) {
return ['Noto Sans Regular'];
return ['Noto Sans Bold'];
}
return ['Open Sans Regular', 'Arial Unicode MS Regular'];
};
2 changes: 1 addition & 1 deletion src/map/draw/MapGeofenceEdit.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const MapGeofenceEdit = ({ selectedGeofenceId }) => {
layout: {
'text-field': '{user_name}',
'text-font': findFonts(map),
'text-size': 12,
'text-size': 14,
},
paint: {
'text-halo-color': 'white',
Expand Down
2 changes: 1 addition & 1 deletion src/map/main/PoiMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const PoiMap = () => {
'text-anchor': 'bottom',
'text-offset': [0, -0.5],
'text-font': findFonts(map),
'text-size': 12,
'text-size': 14,
},
paint: {
'text-halo-color': 'white',
Expand Down

0 comments on commit 7e27071

Please sign in to comment.