Fix occasional exception on mobiles

This commit is contained in:
2026-01-22 14:40:35 +07:00
parent 3c5b4d9b98
commit deae2260b1

View File

@@ -376,6 +376,8 @@ export default class MapComponent extends Component {
if (size[0] > 768) return; if (size[0] > 768) return;
const pixel = this.mapInstance.getPixelFromCoordinate(coords); const pixel = this.mapInstance.getPixelFromCoordinate(coords);
if (!pixel) return;
const height = size[1]; const height = size[1];
// Sidebar covers the bottom 50% // Sidebar covers the bottom 50%