Skip to content

Commit

Permalink
fix(map): prevent that style switching causes map to not move anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
nimdanitro committed Sep 25, 2024
1 parent 0be9528 commit 231fab1
Show file tree
Hide file tree
Showing 13 changed files with 603 additions and 45 deletions.
Binary file removed ui/public/map/sprites/.babs.json.swp
Binary file not shown.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
282 changes: 282 additions & 0 deletions ui/public/map/sprites/imagery.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,282 @@
{
"windturbine_white": {
"width": 32,
"height": 38,
"x": 0,
"y": 0,
"pixelRatio": 1.0
},
"communications_tower_white": {
"width": 24,
"height": 33,
"x": 32,
"y": 0,
"pixelRatio": 1.0
},
"observation_tower_white": {
"width": 26,
"height": 31,
"x": 0,
"y": 38,
"pixelRatio": 1.0
},
"airplane_large_white": {
"width": 28,
"height": 28,
"x": 26,
"y": 38,
"pixelRatio": 1.0
},
"airplane_medium_white": {
"width": 27,
"height": 27,
"x": 54,
"y": 38,
"pixelRatio": 1.0
},
"golf_white": {
"width": 26,
"height": 27,
"x": 81,
"y": 38,
"pixelRatio": 1.0
},
"camping_white": {
"width": 22,
"height": 24,
"x": 56,
"y": 0,
"pixelRatio": 1.0
},
"airplane_small_white": {
"width": 23,
"height": 23,
"x": 78,
"y": 0,
"pixelRatio": 1.0
},
"castle_white": {
"width": 16,
"height": 22,
"x": 107,
"y": 38,
"pixelRatio": 1.0
},
"viewpoint_white": {
"width": 26,
"height": 21,
"x": 101,
"y": 0,
"pixelRatio": 1.0
},
"cave_white": {
"width": 28,
"height": 20,
"x": 0,
"y": 69,
"pixelRatio": 1.0
},
"hospital_white": {
"width": 19,
"height": 19,
"x": 28,
"y": 69,
"pixelRatio": 1.0
},
"waterfall_blue": {
"width": 12,
"height": 18,
"x": 47,
"y": 69,
"pixelRatio": 1.0
},
"circle_black_12": {
"width": 16,
"height": 16,
"x": 59,
"y": 69,
"pixelRatio": 1.0
},
"circle_circle_black_12": {
"width": 16,
"height": 16,
"x": 75,
"y": 69,
"pixelRatio": 1.0
},
"dot_circle_black_12": {
"width": 16,
"height": 16,
"x": 91,
"y": 69,
"pixelRatio": 1.0
},
"helicopter_white": {
"width": 26,
"height": 16,
"x": 0,
"y": 89,
"pixelRatio": 1.0
},
"box_white_grey_casing_1": {
"width": 12,
"height": 14,
"x": 26,
"y": 89,
"pixelRatio": 1.0
},
"box_white_grey_casing_10": {
"width": 60,
"height": 14,
"x": 38,
"y": 89,
"pixelRatio": 1.0
},
"box_white_grey_casing_11": {
"width": 66,
"height": 14,
"x": 0,
"y": 105,
"pixelRatio": 1.0
},
"box_white_grey_casing_12": {
"width": 72,
"height": 14,
"x": 0,
"y": 119,
"pixelRatio": 1.0
},
"box_white_grey_casing_2": {
"width": 18,
"height": 14,
"x": 66,
"y": 105,
"pixelRatio": 1.0
},
"box_white_grey_casing_3": {
"width": 22,
"height": 14,
"x": 84,
"y": 105,
"pixelRatio": 1.0
},
"box_white_grey_casing_4": {
"width": 28,
"height": 14,
"x": 72,
"y": 119,
"pixelRatio": 1.0
},
"box_white_grey_casing_5": {
"width": 34,
"height": 14,
"x": 0,
"y": 133,
"pixelRatio": 1.0
},
"box_white_grey_casing_6": {
"width": 38,
"height": 14,
"x": 34,
"y": 133,
"pixelRatio": 1.0
},
"box_white_grey_casing_7": {
"width": 44,
"height": 14,
"x": 72,
"y": 133,
"pixelRatio": 1.0
},
"box_white_grey_casing_8": {
"width": 50,
"height": 14,
"x": 106,
"y": 105,
"pixelRatio": 1.0
},
"box_white_grey_casing_9": {
"width": 54,
"height": 14,
"x": 156,
"y": 105,
"pixelRatio": 1.0
},
"circle_black_10": {
"width": 14,
"height": 14,
"x": 210,
"y": 105,
"pixelRatio": 1.0
},
"circle_circle_black_10": {
"width": 14,
"height": 14,
"x": 224,
"y": 105,
"pixelRatio": 1.0
},
"dot_circle_black_10": {
"width": 14,
"height": 14,
"x": 238,
"y": 105,
"pixelRatio": 1.0
},
"circle_black_8": {
"width": 12,
"height": 12,
"x": 100,
"y": 119,
"pixelRatio": 1.0
},
"dot_circle_black_8": {
"width": 12,
"height": 12,
"x": 112,
"y": 119,
"pixelRatio": 1.0
},
"circle_black_6": {
"width": 10,
"height": 10,
"x": 124,
"y": 119,
"pixelRatio": 1.0
},
"dot_circle_black_6": {
"width": 10,
"height": 10,
"x": 134,
"y": 119,
"pixelRatio": 1.0
},
"square_red": {
"width": 10,
"height": 10,
"x": 144,
"y": 119,
"pixelRatio": 1.0
},
"circle_black_4": {
"width": 8,
"height": 8,
"x": 154,
"y": 119,
"pixelRatio": 1.0
},
"dot_blue": {
"width": 8,
"height": 8,
"x": 162,
"y": 119,
"pixelRatio": 1.0
},
"dot_red": {
"width": 8,
"height": 8,
"x": 170,
"y": 119,
"pixelRatio": 1.0
}
}
Binary file added ui/public/map/sprites/imagery.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 231fab1

Please sign in to comment.