Fix occasional exception on mobiles
This commit is contained in:
@@ -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%
|
||||||
|
|||||||
Reference in New Issue
Block a user