{ map.updateMapPadding(); location.locked = true; // @ts-expect-error - not typed window.map = map.value; }} onclick={(e) => { if (view.current.type == "main" || view.current.type == "info") { pin.dropPin(e.lngLat.lat, e.lngLat.lng); pin.showInfo(); } }} onmove={(e) => { // @ts-expect-error - not typed if (e.reason !== "location") { location.locked = false; } }} > {#if routing.currentTrip && DEBUG_POINTS} {/if} {#if pin.isDropped} {/if} {#if routing.geojson.routePast} {/if} {#if routing.geojson.al0} {/if} {#if routing.geojson.al1} {/if} {#if routing.geojson.route} {/if} {#if location.available}
{/if}