Fixed edit_sar JS

This commit is contained in:
Vadim Likholetov 2023-12-10 12:50:41 +02:00
parent 4426c4cae5
commit c142f67c3e

View File

@ -115,7 +115,9 @@
</form> </form>
<div id="map"></div> <div id="map"></div>
<script> <script>
var map = L.map('map').setView([60.19, 20.37], 13); // Default to London, adjust as needed var lon = {{ sar_call.longitude }}
var lat = {{ sar_call.latitude }}
var map = L.map('map').setView([lat, lon], 13); // Default to London, adjust as needed
L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
attribution: '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors' attribution: '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'