2020-06-28 19:32:30 +02:00
|
|
|
@css(node_modules/leaflet/dist/leaflet.css)
|
|
|
|
@css(css/map_editor.css)
|
|
|
|
@css(node_modules/leaflet.markercluster/dist/MarkerCluster.css)
|
|
|
|
@css(node_modules/leaflet.markercluster/dist/MarkerCluster.Default.css)
|
2020-06-27 02:25:54 +02:00
|
|
|
|
2020-06-28 19:32:30 +02:00
|
|
|
@js(node_modules/leaflet/dist/leaflet.js)
|
|
|
|
@js(node_modules/leaflet.markercluster/dist/leaflet.markercluster.js)
|
|
|
|
@js(https://maps.googleapis.com/maps/api/js?key=<?= $_ENV['GOOGLE_MAPS_JS_API_KEY'] ?>)
|
2021-04-30 16:20:23 +02:00
|
|
|
@js(https://unpkg.com/@googlemaps/markerclustererplus/dist/index.min.js)
|
2020-06-28 19:32:30 +02:00
|
|
|
@js(js/map_editor.js)
|
2020-06-27 00:23:57 +02:00
|
|
|
|
2020-06-28 19:32:30 +02:00
|
|
|
@extends(templates/layout_full)
|
2020-06-27 00:23:57 +02:00
|
|
|
|
2021-04-27 10:18:28 +02:00
|
|
|
@section(subheader)
|
2020-06-27 00:23:57 +02:00
|
|
|
<span><a href="javascript:;" id="mapName" title="Edit map data"><?= $mapName ?></a></span><!--
|
2021-04-27 10:18:28 +02:00
|
|
|
--><span>
|
|
|
|
<input type="text" id="jumpCoordinates" placeholder="Insert coordinates here" />
|
|
|
|
<button id="jumpButton" disabled >Jump</button>
|
|
|
|
</span><!--
|
2020-06-14 17:16:47 +02:00
|
|
|
--><span><!--
|
|
|
|
<?php /* Copyright (c) 2019 The Bootstrap Authors. License can be found in 'USED_SOFTWARE' in section 'Bootstrap Icons'. */ ?>
|
|
|
|
--><svg class="inline" width="1em" height="1em" viewBox="0 0 16 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
|
|
|
|
<path fill-rule="evenodd" d="M8 3.5a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-.5.5H4a.5.5 0 0 1 0-1h3.5V4a.5.5 0 0 1 .5-.5z"/>
|
|
|
|
<path fill-rule="evenodd" d="M7.5 8a.5.5 0 0 1 .5-.5h4a.5.5 0 0 1 0 1H8.5V12a.5.5 0 0 1-1 0V8z"/>
|
|
|
|
<path fill-rule="evenodd" d="M14 1H2a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1zM2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2z"/>
|
2020-06-21 17:36:08 +02:00
|
|
|
</svg><!--
|
|
|
|
--><span id="added" class="bold">0</span><!--
|
2020-06-14 17:16:47 +02:00
|
|
|
--></span><!--
|
|
|
|
--><span><!--
|
|
|
|
<?php /* Copyright (c) 2019 The Bootstrap Authors. License can be found in 'USED_SOFTWARE' in section 'Bootstrap Icons'. */ ?>
|
|
|
|
--><svg class="inline" width="1em" height="1em" viewBox="0 0 16 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
|
|
|
|
<path d="M15.502 1.94a.5.5 0 0 1 0 .706a.5.5 0 0 1 .707 0l1.293 1.293zm-1.75 2.456l-2-2L4.939 9.21a.5.5 0 0 0-.121.196l-.805 2.414a.25.25 0 0 0 .316.316l2.414-.805a.5.5 0 0 0 .196-.12l6.813-6.814z"/> <path fill-rule="evenodd" d="M14 1H2a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1zM2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2z"/>
|
2020-06-21 17:36:08 +02:00
|
|
|
</svg><!--
|
|
|
|
--><span id="edited" class="bold">0</span><!--
|
2020-06-14 17:16:47 +02:00
|
|
|
--></span><!--
|
|
|
|
--><span><!--
|
|
|
|
<?php /* Copyright (c) 2019 The Bootstrap Authors. License can be found in 'USED_SOFTWARE' in section 'Bootstrap Icons'. */ ?>
|
|
|
|
--><svg class="inline" width="1em" height="1em" viewBox="0 0 16 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
|
|
|
|
<path fill-rule="evenodd" d="M3.5 8a.5.5 0 0 1 .5-.5h8a.5.5 0 0 1 0 1H4a.5.5 0 0 1-.5-.5z"/>
|
|
|
|
<path fill-rule="evenodd" d="M14 1H2a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1zM2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2z"/>
|
2020-06-21 17:36:08 +02:00
|
|
|
</svg><!--
|
|
|
|
--><span id="deleted" class="bold">0</span><!--
|
2020-06-14 17:16:47 +02:00
|
|
|
--></span>
|
2020-06-27 00:23:57 +02:00
|
|
|
@endsection
|
|
|
|
|
2020-06-28 19:32:30 +02:00
|
|
|
@section(pagemodal)
|
2020-06-14 02:31:09 +02:00
|
|
|
<div id="metadata" class="modal">
|
|
|
|
<h2>Edit map data</h2>
|
2020-06-25 22:35:04 +02:00
|
|
|
<form id="metadataForm" class="marginTop" data-no-submit="true">
|
2020-06-06 02:18:12 +02:00
|
|
|
<input class="fullWidth" type="text" name="name" value="<?= $mapName ?>" placeholder="Name of the map">
|
|
|
|
<textarea class="fullWidth marginTop" name="description" rows="4" placeholder="Description of the map"><?= $mapDescription ?></textarea>
|
2020-06-14 02:31:09 +02:00
|
|
|
<div class="right">
|
|
|
|
<button class="marginTop marginRight" type="submit">Apply</button><!--
|
|
|
|
--><button id="closeMetadataButton" class="gray marginTop" type="button">Close</button>
|
2020-06-06 02:18:12 +02:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
2020-06-27 00:23:57 +02:00
|
|
|
@endsection
|
|
|
|
|
2020-06-28 19:32:30 +02:00
|
|
|
@section(main)
|
2020-06-25 14:02:39 +02:00
|
|
|
<div id="map"></div>
|
|
|
|
<div id="panorama"></div>
|
|
|
|
<div id="noPano">
|
|
|
|
<p class="bold">No panorama is available for this location.</p>
|
|
|
|
</div>
|
|
|
|
<div id="control">
|
|
|
|
<button id="saveButton" class="fullWidth" disabled>Save</button>
|
|
|
|
</div>
|
|
|
|
<div id="placeControl">
|
|
|
|
<button id="applyButton" class="fullWidth">Apply</button>
|
|
|
|
<button id="closeButton" class="gray fullWidth marginTop">Close</button>
|
|
|
|
<button id="deleteButton" class="red fullWidth marginTop">Delete</button>
|
|
|
|
</div>
|
2020-06-27 00:23:57 +02:00
|
|
|
@endsection
|
|
|
|
|
2020-06-28 19:32:30 +02:00
|
|
|
@section(pageScript)
|
2020-06-01 21:13:02 +02:00
|
|
|
<script>
|
|
|
|
var tileUrl = '<?= $_ENV['LEAFLET_TILESERVER_URL'] ?>';
|
2020-06-11 00:14:30 +02:00
|
|
|
var tileAttribution = '<?= $_ENV['LEAFLET_TILESERVER_ATTRIBUTION'] ?>';
|
2020-06-10 23:15:02 +02:00
|
|
|
var mapId = <?= $mapId ?>;
|
2020-06-01 21:13:02 +02:00
|
|
|
var mapBounds = <?= json_encode($bounds) ?>;
|
2020-06-10 23:15:02 +02:00
|
|
|
var places = <?= json_encode($places, JSON_FORCE_OBJECT) ?>;
|
2020-06-01 21:13:02 +02:00
|
|
|
</script>
|
2020-06-27 00:23:57 +02:00
|
|
|
@endsection
|