Skip to content

Commit

Permalink
Merge branch 'ZeLonewolf:main' into aaroads
Browse files Browse the repository at this point in the history
  • Loading branch information
1ec5 authored Feb 29, 2024
2 parents 0f522da + c3859ce commit e5ce938
Show file tree
Hide file tree
Showing 15 changed files with 293 additions and 69 deletions.
6 changes: 6 additions & 0 deletions icons/poi_book_upright.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions icons/poi_car_repair.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions icons/poi_car_shop.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions icons/poi_hostel.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions icons/poi_hotel.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions icons/poi_taxi.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions icons/shield_us_az_scenic.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
65 changes: 64 additions & 1 deletion scripts/taginfo_template.json
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,14 @@
"doc_url": "https://openmaptiles.org/schema/#poi",
"icon_url": "https://raw.githubusercontent.com/ZeLonewolf/openstreetmap-americana/main/icons/poi_school.svg"
},
{
"key": "amenity",
"value": "taxi",
"object_types": ["node", "area"],
"description": "Taxi stands are marked by an icon representing the front view of a taxi cab.",
"doc_url": "https://openmaptiles.org/schema/#poi",
"icon_url": "https://raw.githubusercontent.com/ZeLonewolf/openstreetmap-americana/main/icons/poi_taxi.svg"
},
{
"key": "amenity",
"value": "kindergarten",
Expand Down Expand Up @@ -479,6 +487,38 @@
"doc_url": "https://openmaptiles.org/schema/#poi",
"icon_url": "https://raw.githubusercontent.com/ZeLonewolf/openstreetmap-americana/main/icons/poi_town_hall.svg"
},
{
"key": "tourism",
"value": "guest_house",
"object_types": ["node", "area"],
"description": "Guest houses are marked by an icon representing a person laying in a bed.",
"doc_url": "https://openmaptiles.org/schema/#poi",
"icon_url": "https://raw.githubusercontent.com/ZeLonewolf/openstreetmap-americana/main/icons/poi_hotel.svg"
},
{
"key": "tourism",
"value": "hostel",
"object_types": ["node", "area"],
"description": "Hostels are marked by an icon representing two people laying in a bunk bed.",
"doc_url": "https://openmaptiles.org/schema/#poi",
"icon_url": "https://raw.githubusercontent.com/ZeLonewolf/openstreetmap-americana/main/icons/poi_hostel.svg"
},
{
"key": "tourism",
"value": "hotel",
"object_types": ["node", "area"],
"description": "Hotels are marked by an icon representing a person laying in a bed.",
"doc_url": "https://openmaptiles.org/schema/#poi",
"icon_url": "https://raw.githubusercontent.com/ZeLonewolf/openstreetmap-americana/main/icons/poi_hotel.svg"
},
{
"key": "tourism",
"value": "motel",
"object_types": ["node", "area"],
"description": "Motels are marked by an icon representing a person laying in a bed.",
"doc_url": "https://openmaptiles.org/schema/#poi",
"icon_url": "https://raw.githubusercontent.com/ZeLonewolf/openstreetmap-americana/main/icons/poi_hotel.svg"
},
{
"key": "tourism",
"value": "museum",
Expand All @@ -487,7 +527,6 @@
"doc_url": "https://openmaptiles.org/schema/#poi",
"icon_url": "https://raw.githubusercontent.com/ZeLonewolf/openstreetmap-americana/main/icons/poi_museum.svg"
},

{
"key": "amenity",
"value": "clinic",
Expand All @@ -496,6 +535,14 @@
"doc_url": "https://openmaptiles.org/schema/#poi",
"icon_url": "https://raw.githubusercontent.com/ZeLonewolf/openstreetmap-americana/main/icons/poi_health_cross.svg"
},
{
"key": "amenity",
"value": "library",
"object_types": ["node", "area"],
"description": "Libraries are marked by an icon representing a book.",
"doc_url": "https://openmaptiles.org/schema/#poi",
"icon_url": "https://raw.githubusercontent.com/ZeLonewolf/openstreetmap-americana/main/icons/poi_book_upright.svg"
},
{
"key": "amenity",
"value": "parking",
Expand Down Expand Up @@ -632,6 +679,22 @@
"doc_url": "https://openmaptiles.org/schema/#poi",
"icon_url": "https://raw.githubusercontent.com/ZeLonewolf/openstreetmap-americana/main/icons/poi_pow_taoist.svg"
},
{
"key": "shop",
"value": "car",
"object_types": ["node", "area"],
"description": "Car dealerships are marked by an icon representing a front facing vehicle.",
"doc_url": "https://openmaptiles.org/schema/#poi",
"icon_url": "https://raw.githubusercontent.com/ZeLonewolf/openstreetmap-americana/main/icons/poi_car_shop.svg"
},
{
"key": "shop",
"value": "car_repair",
"object_types": ["node", "area"],
"description": "Car mechanic shops are marked by an icon representing a front facing vehicle with a wrench above it.",
"doc_url": "https://openmaptiles.org/schema/#poi",
"icon_url": "https://raw.githubusercontent.com/ZeLonewolf/openstreetmap-americana/main/icons/poi_car_repair.svg"
},
{
"key": "shop",
"value": "supermarket",
Expand Down
4 changes: 3 additions & 1 deletion shieldlib/src/screen_gfx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ import rgba from "color-rgba";
const defaultFontFamily = '"sans-serif-condensed", "Arial Narrow", sans-serif';
export const shieldFont = (size: number, fontFamily: string) =>
`condensed 500 ${size}px ${fontFamily || defaultFontFamily}`;
export const fontSizeThreshold = 12;

//If a computed shield font size is below this value, choose a wider shield if possible
export const fontSizeThreshold = 11.8;

// Replaces `sourceVal` with a blend of `lightenVal` and `darkenVal` proportional to the brightness;
// i.e. white becomes `darkenVal`, black becomes `lightenVal`, and anit-aliased pixels remain anit-aliased
Expand Down
Loading

0 comments on commit e5ce938

Please sign in to comment.