Browse Source

add searching location using nominatim openstreetmap on Activity Location and fix set buffer radius

pull/1/head
ardhi 2 years ago
parent
commit
e78486b4f1
  1. 3
      edit-mode/function/activityLocation.js
  2. 4
      edit-mode/index.html

3
edit-mode/function/activityLocation.js

@ -40,6 +40,9 @@ var drawnControlEdit = new L.Control.Draw({
map.addControl(drawControl);
// add searching location (nominatim) on map
L.Control.geocoder().addTo(map);
function openActivityMap(id)
{
currentIdAct = id;

4
edit-mode/index.html

@ -30,6 +30,7 @@
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet.draw/1.0.4/leaflet.draw.css"
integrity="sha512-gc3xjCmIy673V6MyOAZhIW93xhM9ei1I+gLbmFjUHIjocENRsLX/QUE1htk5q1XV2D/iie/VQ8DXI6Vu8bexvQ=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="stylesheet" href="https://unpkg.com/leaflet-control-geocoder/dist/Control.Geocoder.css" />
<style>
html,
body {
@ -783,7 +784,7 @@
</div>
<!-- modal gantt activity location -->
<div style="margin-top: 5%;" class="modal fade" id="modal_radius" tabindex="-1" role="dialog">
<div class="modal fade" id="modal_radius" tabindex="-1" role="dialog">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header d-flex flex-row justify-content-between" style="width: 100%;">
@ -855,6 +856,7 @@
<script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet.draw/1.0.4/leaflet.draw.js"
integrity="sha512-ozq8xQKq6urvuU6jNgkfqAmT7jKN2XumbrX1JiB3TnF7tI48DPI4Gy1GXKD/V3EExgAs1V+pRO7vwtS1LHg0Gw=="
crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="https://unpkg.com/leaflet-control-geocoder/dist/Control.Geocoder.js"></script>
<script src="../assets/js/moment.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/underscore@latest/underscore-umd-min.js"></script>
<script src="function/function.js"></script>

Loading…
Cancel
Save