Skip to content

Commit

Permalink
Refresh faster
Browse files Browse the repository at this point in the history
  • Loading branch information
dabreegster committed Oct 31, 2023
1 parent d384151 commit e0228a3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion viewer/src/InteractiveApp.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
);
markerPosition.lng = (bbox[0] + bbox[2]) / 2.0;
markerPosition.lat = (bbox[1] + bbox[3]) / 2.0;
recalculate();
} catch (err) {
window.alert(`Problem loading network file: ${err}`);
}
Expand Down Expand Up @@ -93,7 +94,9 @@
hash
bind:map
>
<Marker bind:lngLat={markerPosition} draggable>{@html markerSvg}</Marker>
<Marker bind:lngLat={markerPosition} draggable on:dragend={recalculate}
>{@html markerSvg}</Marker
>
<GeoJSON data={gj}>
<Layers {controls} />
</GeoJSON>
Expand Down

0 comments on commit e0228a3

Please sign in to comment.