4 Commits

Author SHA1 Message Date
808c1ee37b 1.12.3
All checks were successful
CI / Lint (push) Successful in 21s
CI / Test (push) Successful in 35s
2026-02-24 22:28:56 +04:00
34bc15cfa9 Only zoom out, not in, when fitting ways/relations 2026-02-24 22:27:52 +04:00
ee5e56910d 1.12.2
All checks were successful
CI / Lint (push) Successful in 21s
CI / Test (push) Successful in 37s
2026-02-24 21:51:21 +04:00
e019fc2d6b Don't include roads and similar in nearby search
Meant to include bus stops, but have to be more specific when re-adding
2026-02-24 21:49:59 +04:00
6 changed files with 8 additions and 7 deletions

View File

@@ -524,11 +524,13 @@ export default class MapComponent extends Component {
padding[1] = visibleWidth * 0.15; padding[1] = visibleWidth * 0.15;
} }
const currentZoom = view.getZoom();
view.fit(extent, { view.fit(extent, {
padding: padding, padding: padding,
duration: 1000, duration: 1000,
easing: (t) => t * (2 - t), easing: (t) => t * (2 - t),
maxZoom: 19, maxZoom: currentZoom,
}); });
} }

View File

@@ -35,7 +35,6 @@ export default class OsmService extends Service {
'building', 'building',
'landuse', 'landuse',
'public_transport', 'public_transport',
'highway',
'aeroway', 'aeroway',
]; ];
const typeKeysQuery = [`~"^(${typeKeys.join('|')})$"~".*"`]; const typeKeysQuery = [`~"^(${typeKeys.join('|')})$"~".*"`];

View File

@@ -1,6 +1,6 @@
{ {
"name": "marco", "name": "marco",
"version": "1.12.1", "version": "1.12.3",
"private": true, "private": true,
"description": "Unhosted maps app", "description": "Unhosted maps app",
"repository": { "repository": {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -39,7 +39,7 @@
<meta name="msapplication-TileColor" content="#F6E9A6"> <meta name="msapplication-TileColor" content="#F6E9A6">
<meta name="msapplication-TileImage" content="/icons/icon-144.png"> <meta name="msapplication-TileImage" content="/icons/icon-144.png">
<script type="module" crossorigin src="/assets/main-C68xq8aX.js"></script> <script type="module" crossorigin src="/assets/main-dKBF4UHr.js"></script>
<link rel="stylesheet" crossorigin href="/assets/main-DoLYcE7E.css"> <link rel="stylesheet" crossorigin href="/assets/main-DoLYcE7E.css">
</head> </head>
<body> <body>