Skip to content

Commit

Permalink
disaster icons
Browse files Browse the repository at this point in the history
  • Loading branch information
fuyingxx0 committed May 11, 2024
1 parent 40cf67c commit 993eaff
Show file tree
Hide file tree
Showing 11 changed files with 76 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
70 changes: 70 additions & 0 deletions Taipei-City-Dashboard-FE/src/assets/configs/mapbox/mapConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -399,4 +399,74 @@ export const maplayerCommonLayout = {
60,
],
},
"symbol-disaster_fire": {
"icon-image": "disaster_fire",
"icon-size": [
"interpolate",
["linear"],
["zoom"],
11.99,
1,
14,
1.5,
22,
2,
],
},
"symbol-disaster_road": {
"icon-image": "disaster_road",
"icon-size": [
"interpolate",
["linear"],
["zoom"],
11.99,
1,
14,
1.5,
22,
2,
],
},
"symbol-disaster_building": {
"icon-image": "disaster_building",
"icon-size": [
"interpolate",
["linear"],
["zoom"],
11.99,
1,
14,
1.5,
22,
2,
],
},
"symbol-disaster_flood": {
"icon-image": "disaster_flood",
"icon-size": [
"interpolate",
["linear"],
["zoom"],
11.99,
1,
14,
1.5,
22,
2,
],
},
"symbol-disaster_building": {

Check failure on line 458 in Taipei-City-Dashboard-FE/src/assets/configs/mapbox/mapConfig.js

View workflow job for this annotation

GitHub Actions / build (18.x)

Duplicate key 'symbol-disaster_building'

Check failure on line 458 in Taipei-City-Dashboard-FE/src/assets/configs/mapbox/mapConfig.js

View workflow job for this annotation

GitHub Actions / build (20.x)

Duplicate key 'symbol-disaster_building'
"icon-image": "disaster_others",
"icon-size": [
"interpolate",
["linear"],
["zoom"],
11.99,
1,
14,
1.5,
22,
2,
],
},
};
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ export default {
let fileName = '';
if (eventType === 'earthquake') {
fileURL = 'https://www.eoc.gov.taipei/PropagandaManual/Earthquake/mobile/download/%E3%80%8C%E8%87%BA%E5%8C%97%E9%98%B2%E7%81%BD%E7%AB%8B%E5%8D%B3go%E3%80%8D%E9%98%B2%E7%81%BD%E6%89%8B%E5%86%8A_%E5%9C%B0%E9%9C%87.pdf';
// fileURL = '../../assets/infoFiles/「臺北防災立即go」防災手冊_地震.pdf';
fileName = '台北防災手冊_地震.pdf';
}
else if (eventType === 'fire') {
Expand Down
5 changes: 5 additions & 0 deletions Taipei-City-Dashboard-FE/src/store/mapStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,11 @@ export const useMapStore = defineStore("map", {
"bike_green",
"bike_orange",
"bike_red",
"disaster_fire",
"disaster_building",
"disastr_road",
"disaster_flood",
"disaster_others",
];
images.forEach((element) => {
this.map.loadImage(
Expand Down

0 comments on commit 993eaff

Please sign in to comment.