From 47beff6e223d4492576359e0fcbbe82acd646f73 Mon Sep 17 00:00:00 2001 From: Peter Goodhall Date: Mon, 16 Mar 2020 11:20:10 +0000 Subject: [PATCH] Starting to add popup to gridsquare map (not populated) --- application/views/gridsquares/index.php | 37 +++++++++++++++++++ application/views/interface_assets/footer.php | 5 +++ 2 files changed, 42 insertions(+) diff --git a/application/views/gridsquares/index.php b/application/views/gridsquares/index.php index 5cb1f630..8c1a0094 100644 --- a/application/views/gridsquares/index.php +++ b/application/views/gridsquares/index.php @@ -35,4 +35,41 @@ [This grid square map is publically viewable for sharing] + + + \ No newline at end of file diff --git a/application/views/interface_assets/footer.php b/application/views/interface_assets/footer.php index 05fa18ac..c252efd2 100644 --- a/application/views/interface_assets/footer.php +++ b/application/views/interface_assets/footer.php @@ -888,6 +888,11 @@ $(document).ready(function(){ var locator = LatLng2Loc(lat,lng, 10); var loc_4char = locator.substring(0, 4); console.log(loc_4char); + console.log(map.getZoom()); + if(map.getZoom() > 5) { + $('#square_number').text(loc_4char); + $('#exampleModal').modal('show'); + } }; uri->segment(1) == "gridsquares" && $this->uri->segment(2) == "band") { ?>