projects
/
WP-Themes
/
petoskeyarea.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d1ba522
)
Use invalidateResize on the leaflet map when the map container is opened on member...
author
Laury GvR
<laury@gaslightmedia.com>
Wed, 25 Sep 2019 18:47:25 +0000
(14:47 -0400)
committer
Laury GvR
<laury@gaslightmedia.com>
Wed, 25 Sep 2019 18:47:25 +0000
(14:47 -0400)
glm-member-db/views/front/members/detail.html
patch
|
blob
|
history
diff --git
a/glm-member-db/views/front/members/detail.html
b/glm-member-db/views/front/members/detail.html
index
9cd8e8b
..
d7e6024
100755
(executable)
--- a/
glm-member-db/views/front/members/detail.html
+++ b/
glm-member-db/views/front/members/detail.html
@@
-529,9
+529,12
@@
$("#"+target+"-toggle").toggleClass("selected");
});
- // $("#glm-member-detail-locationMap-toggle").click(function() {
- // initMap();
- // });
+ $("#glm-member-detail-locationMap-toggle").click(function() {
+ var container = L.DomUtil.get('map');
+ if(container != null){
+ L.map.invalidateResize();
+ }
+ });
{if $settings.detail_show_map}
@@
-598,7
+601,6
@@
// Marker
var leafletMarker = L.marker([memberLat, memberLon]).addTo(leafletMap);
-
}
{/if}