diff --git a/admin/assets/js/map.js b/admin/assets/js/map.js new file mode 100644 index 0000000..c492579 --- /dev/null +++ b/admin/assets/js/map.js @@ -0,0 +1,14 @@ +var southWest = L.latLng(4.64, 116.95), + northEast = L.latLng(20.53, 127.25), + bounds = L.latLngBounds(southWest, northEast); + +// Initialize the map and set the bounds +var map = L.map('map', { + maxBounds: bounds, + maxBoundsViscosity: 1.0 // Keeps the user within the bounds +}).setView([13.41, 122.56], 6); // Centered on the Philippines with a zoom level of 6 + +// Add a tile layer +L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { + attribution: '© OpenStreetMap contributors' +}).addTo(map); \ No newline at end of file diff --git a/admin/index.php b/admin/index.php index e60c82f..2eee72d 100644 --- a/admin/index.php +++ b/admin/index.php @@ -49,6 +49,14 @@ $allSignups = array_merge($all_customers, $all_vendors); + + + + @@ -911,13 +919,13 @@ $allSignups = array_merge($all_customers, $all_vendors);