export let zoom = '';
function gotoCoordinates(newlat, newlon, newzoom) {
+ if (newlat === null || newlon === null) return;
+
let params = new URLSearchParams();
params.set('lat', newlat);
params.set('lon', newlon);
type="text"
class="form-control form-control-sm"
placeholder="latitude"
+ pattern="^-?\d+(\.\d+)?$"
bind:value={lat}
on:change={maybeSplitLatitude} />
</div>
type="text"
class="form-control form-control-sm"
placeholder="longitude"
+ pattern="^-?\d+(\.\d+)?$"
bind:value={lon} />
</div>
<div class="form-group">