From f4e9d1b43fd364259599c368c57dd55cd4e6976a Mon Sep 17 00:00:00 2001 From: Chuck Scott Date: Thu, 24 Aug 2017 12:22:28 -0400 Subject: [PATCH] Fixed problem with map reverting to address location each time member profile loads. Made map show all of the time, removed map show/hide button, and fixed some minor possitioning issues with map related elements. --- views/admin/member/memberInfo.html | 13 ++++++--- .../member/memberInfo/editProfileAddress.html | 27 +++++++++---------- 2 files changed, 21 insertions(+), 19 deletions(-) diff --git a/views/admin/member/memberInfo.html b/views/admin/member/memberInfo.html index d8dc229e..58be0ac2 100644 --- a/views/admin/member/memberInfo.html +++ b/views/admin/member/memberInfo.html @@ -638,6 +638,7 @@ /* * Map Display Toggle */ +/* $("#locationMapToggle").click(function() { var mapC = "#locationMapContainer"; var map = "#locationMap"; @@ -645,11 +646,10 @@ var mapOverflow = 'hidden'; var mapBtnTxt = 'View Map'; if ($(mapC).height() == 0) { - mapNewH = 400; + mapNewH = 460; mapV = 'visible'; mapBtnTxt = 'Hide Map'; } - initMap(); $(mapC).animate({ overflow: mapOverflow, height: mapNewH @@ -658,6 +658,7 @@ }); $(this).html(mapBtnTxt); }); +*/ /* * Map operations @@ -707,12 +708,13 @@ // Assign it to the lat/lon fields for submission $('#glmLat').val(glmLat.toFixed(6)); $('#glmLng').val(glmLng.toFixed(6)); + + glmPageUpdateRequired(); }); // When estimate location button is clicked, geocode using address - - $(document).on('click','#locationMapToggle', glmEstimateLocation); +// $(document).on('click','#locationMapToggle', glmEstimateLocation); $(document).on('click','#glm-estimate-location', glmEstimateLocation); function glmEstimateLocation() { @@ -859,6 +861,9 @@ } checkLiveCamType(); + // Initialize map on load + initMap(); + }); diff --git a/views/admin/member/memberInfo/editProfileAddress.html b/views/admin/member/memberInfo/editProfileAddress.html index 67d8faee..d240f91d 100644 --- a/views/admin/member/memberInfo/editProfileAddress.html +++ b/views/admin/member/memberInfo/editProfileAddress.html @@ -109,22 +109,19 @@
{if $memberInfo.fieldRequired.lat}

{else}

{/if}Location:

-
Map Location Using Above Address
-
View Map
-
-

- AP USE: Drag the pointer to the desired location for this {$terms.term_member}. - Use + and - buttons or the mouse wheel to zoom in or out. - Click and drag anywhere else on the map to move to another area. -

-
(map loads here)
-
-

- Selected Position: -   Latitude -   Longitude -   Update pointer with new lat/lon postion. +

+ Drag the pointer to the desired location for this {$terms.term_member}. + Use + and - buttons or the mouse wheel to zoom in or out. + Click and drag anywhere else on the map to move to another area.

+

Map Location Using Above Address

+
(map loads here)
+

+

Specify Position Using Lattitude and Longitude:

+ Latitude +   Longitude +

Update pointer after entering new lat/lon postion.

+

-- 2.17.1