I’m pulling my hair out with this. I can’t make heads or tails with what elements need to be changed for this to work.
<div class="wp-block-group"><div class="wp-block-group__inner-container" id="map-group">
<button id="map-button"> Show Map </button>
<div class="wp-block-geodirectory-geodir-widget-map"><div class="geodir-wgt-map bsui sdel-5e415546"><!--START geodir-map-wrap-->
<div class="geodir-map-wrap geodir-archive-map-wrap ">
<div id="catcher_gd_map_canvas_archive"></div>
<!--START stick_trigger_container-->
<div class="stick_trigger_container bsui">
<div class="trigger_sticky triggeroff_sticky mt-n5 btn btn-secondary mr-n2 c-pointer" style="display: none;">
<i class="fas fa-map-marked-alt"></i>
<i class="fas fa-angle-right"></i>
</div>
<!--end of stick trigger container-->
<div class="geodir_map_container gd_map_canvas_archive bsui position-relative mw-100 geodir-map-small" id="sticky_map_gd_map_canvas_archive" style="width:100%;min-height:325px;">
<!--END map_background-->
<div class="map_background">
<div class="top_banner_section_in clearfix">
<div class="gd_map_canvas_archive_TopLeft TopLeft position-absolute bg-white text-muted rounded-sm shadow-sm m-2 px-1 py-1 h5 c-pointer" style="margin-top: 85px !important;z-index: 3;">
<span class="triggermap gd-triggered-map" id="gd_map_canvas_archive_triggermap">
<i class="fas fa-expand-arrows-alt fa-fw" aria-hidden="true"></i>
<i class="fas fa-compress-arrows-alt fa-fw d-none" aria-hidden="true"></i>
</span>
</div>
<div class="gd_map_canvas_archive_TopRight TopRight"></div>
<div id="gd_map_canvas_archive_wrapper" class="main_map_wrapper" style="height:325px;width:100%;">
<div class="iprelative position-relative">
<div id="gd_map_canvas_archive" class="geodir-map-canvas leaflet-container leaflet-touch leaflet-retina leaflet-fade-anim leaflet-touch-zoom" data-map-type="archive" data-map-canvas="gd_map_canvas_archive" style="height: 325px; width: 100%; z-index: 0; position: relative;" tabindex="0"><div class="leaflet-pane leaflet-map-pane" style="transform: translate3d(0px, 0px, 0px);"><div class="leaflet-pane leaflet-tile-pane"><div class="leaflet-layer " style="z-index: 1; opacity: 1;"><div class="leaflet-tile-container leaflet-zoom-animated" style="z-index: 21; transform: translate3d(0px, 0px, 0px) scale(1);"><img alt="" role="presentation" src="//b.tile.openstreetmap.org/10/298/387.png" class="leaflet-tile leaflet-tile-loaded" style="width: 256px; height: 256px; backface-visibility: hidden; transform: translate3d(145px, -5px, 0px); opacity: 1;"><img alt="" role="presentation" src="//c.tile.openstreetmap.org/10/298/388.png" class="leaflet-tile leaflet-tile-loaded" style="width: 256px; height: 256px; backface-visibility: hidden; transform: translate3d(145px, 251px, 0px); opacity: 1;"><img alt="" role="presentation" src="//a.tile.openstreetmap.org/10/297/387.png" class="leaflet-tile leaflet-tile-loaded" style="width: 256px; height: 256px; backface-visibility: hidden; transform: translate3d(-111px, -5px, 0px); opacity: 1;"><img alt="" role="presentation" src="//c.tile.openstreetmap.org/10/299/387.png" class="leaflet-tile leaflet-tile-loaded" style="width: 256px; height: 256px; backface-visibility: hidden; transform: translate3d(401px, -5px, 0px); opacity: 1;"><img alt="" role="presentation" src="//b.tile.openstreetmap.org/10/297/388.png" class="leaflet-tile leaflet-tile-loaded" style="width: 256px; height: 256px; backface-visibility: hidden; transform: translate3d(-111px, 251px, 0px); opacity: 1;"><img alt="" role="presentation" src="//a.tile.openstreetmap.org/10/299/388.png" class="leaflet-tile leaflet-tile-loaded" style="width: 256px; height: 256px; backface-visibility: hidden; transform: translate3d(401px, 251px, 0px); opacity: 1;"></div></div></div><div class="leaflet-pane leaflet-shadow-pane"></div><div class="leaflet-pane leaflet-overlay-pane"></div><div class="leaflet-pane leaflet-marker-pane"><img src="http://dev.coosguide.com/dev1/wp-content/uploads/2021/03/Restaurants.png" class="leaflet-marker-icon leaflet-zoom-animated leaflet-interactive" title="Village Whiskey" alt="" tabindex="0" style="margin-left: -17px; margin-top: -45px; width: 36px; height: 45px; transform: translate3d(246px, 273px, 0px); z-index: 273;"><img src="http://dev.coosguide.com/dev1/wp-content/uploads/2021/03/Restaurants.png" class="leaflet-marker-icon leaflet-zoom-animated leaflet-interactive" title="Zavino Pizzeria and Wine Bar" alt="" tabindex="0" style="margin-left: -17px; margin-top: -45px; width: 36px; height: 45px; transform: translate3d(245px, 52px, 0px); z-index: 52;"><img src="http://dev.coosguide.com/dev1/wp-content/uploads/2021/03/Restaurants.png" class="leaflet-marker-icon leaflet-zoom-animated leaflet-interactive" title="Parc" alt="" tabindex="0" style="margin-left: -17px; margin-top: -45px; width: 36px; height: 45px; transform: translate3d(265px, 98px, 0px); z-index: 98;"><img src="http://dev.coosguide.com/dev1/wp-content/uploads/2021/03/Restaurants.png" class="leaflet-marker-icon leaflet-zoom-animated leaflet-interactive" title="Percy Street Barbecue" alt="" tabindex="0" style="margin-left: -17px; margin-top: -45px; width: 36px; height: 45px; transform: translate3d(146px, 140px, 0px); z-index: 140;"><img src="http://dev.coosguide.com/dev1/wp-content/uploads/2021/03/Restaurants.png" class="leaflet-marker-icon leaflet-zoom-animated leaflet-interactive" title="The Fountain Restaurant" alt="" tabindex="0" style="margin-left: -17px; margin-top: -45px; width: 36px; height: 45px; transform: translate3d(227px, 184px, 0px); z-index: 184;"><img src="http://dev.coosguide.com/dev1/wp-content/uploads/2021/03/Restaurants.png" class="leaflet-marker-icon leaflet-zoom-animated leaflet-interactive" title="Lacroix at The Rittenhouse" alt="" tabindex="0" style="margin-left: -17px; margin-top: -45px; width: 36px; height: 45px; transform: translate3d(224px, 128px, 0px); z-index: 128;"><img src="http://dev.coosguide.com/dev1/wp-content/uploads/2021/03/Restaurants.png" class="leaflet-marker-icon leaflet-zoom-animated leaflet-interactive" title="The Rittenhouse" alt="" tabindex="0" style="margin-left: -17px; margin-top: -45px; width: 36px; height: 45px; transform: translate3d(203px, 170px, 0px); z-index: 170;"><img src="http://dev.coosguide.com/dev1/wp-content/uploads/2021/03/Restaurants.png" class="leaflet-marker-icon leaflet-zoom-animated leaflet-interactive" title="Sampan" alt="" tabindex="0" style="margin-left: -17px; margin-top: -45px; width: 36px; height: 45px; transform: translate3d(158px, 223px, 0px); z-index: 223;"><img src="http://dev.coosguide.com/dev1/wp-content/uploads/2021/03/Restaurants.png" class="leaflet-marker-icon leaflet-zoom-animated leaflet-interactive" title="Morimoto" alt="" tabindex="0" style="margin-left: -17px; margin-top: -45px; width: 36px; height: 45px; transform: translate3d(212px, 182px, 0px); z-index: 182;"><img src="http://dev.coosguide.com/dev1/wp-content/uploads/2021/03/Restaurants.png" class="leaflet-marker-icon leaflet-zoom-animated leaflet-interactive" title="Buddakan" alt="" tabindex="0" style="margin-left: -17px; margin-top: -45px; width: 36px; height: 45px; transform: translate3d(220px, 213px, 0px); z-index: 213;"></div><div class="leaflet-pane leaflet-tooltip-pane"></div><div class="leaflet-pane leaflet-popup-pane"></div><div class="leaflet-proxy leaflet-zoom-animated" style="transform: translate3d(76348.4px, 99239.5px, 0px) scale(512);"></div></div><div class="leaflet-control-container"><div class="leaflet-top leaflet-left"><div class="leaflet-control-zoom leaflet-bar leaflet-control"><a class="leaflet-control-zoom-in" href="#" title="Zoom in" role="button" aria-label="Zoom in">+</a><a class="leaflet-control-zoom-out" href="#" title="Zoom out" role="button" aria-label="Zoom out">−</a></div></div><div class="leaflet-top leaflet-right"></div><div class="leaflet-bottom leaflet-left"></div><div class="leaflet-bottom leaflet-right"><div class="leaflet-control-attribution leaflet-control"><a href="https://leafletjs.com" title="A JS library for interactive maps">Leaflet</a> | Map data © <a href="https://openstreetmap.org/copyright">OpenStreetMap</a> contributors</div></div></div></div>
<div id="gd_map_canvas_archive_loading_div" class="loading_div overlay overlay-black position-absolute row m-0" style="height: 325px; width: 100%; top: 0px; z-index: 2; display: none;">
<div class="spinner-border mx-auto align-self-center text-white" role="status">
<span class="sr-only">Loading...</span>
</div>
</div>
<div id="gd_map_canvas_archive_map_nofound" class="advmap_nofound position-absolute row m-0 z-index-1" style="display:none;transform: translate(-50%, -50%);top:50%;left:50%;opacity: .85;pointer-events: none;">
<div class="alert alert-info text-center mx-auto align-self-center shadow-lg mb-0">
<div class="h3 alert-heading">No Records Found</div><p> Sorry, no records were found. Please adjust your search criteria and try again.</p> </div>
</div>
<div id="gd_map_canvas_archive_map_notloaded" class="advmap_notloaded position-absolute row m-0 z-index-1" style="display:none;transform: translate(-50%, -50%);top:50%;left:50%;opacity: .85;pointer-events: none;">
<div class="alert alert-danger text-center mx-auto align-self-center shadow-lg mb-0">
<div class="h3 alert-heading">Maps failed to load</div><p> Sorry, unable to load the Maps API.</p> </div>
</div>
</div>
</div>
<div class="gd_map_canvas_archive_BottomLeft BottomLeft"></div>
</div>
</div><!--END map_background-->
</div>
<script type="text/javascript">
jQuery(function ($) {
var gdMapCanvas = 'gd_map_canvas_archive';
build_map_ajax_search_param(gdMapCanvas, false); var screenH, heightVH, ptypeH = 0;
screenH = $(window).height();
heightVH = parseFloat('325');
if ($("#" + gdMapCanvas + "_posttype_menu").length) {
ptypeH = $("#" + gdMapCanvas + "_posttype_menu").outerHeight();
}
$("#" + gdMapCanvas + "_cat").css("max-height", heightVH - ptypeH + 'px');
});
</script>
</div><!--END stick_trigger_container-->
</div><!--END geodir-map-wrap-->
<style>
body.stickymap_hide .stickymap{ display: none !important;}
body.stickymap_hide .stick_trigger_container .fa-angle-right{ transform: rotate(180deg);}
/* fullscreen map */
body.body_fullscreen > .stick_trigger_container{width: 100vw;
height: 100vh;
position: fixed;
z-index: 50000;}
</style>
</div></div>
</div></div>