Skip to content

Commit

Permalink
fixing browse map
Browse files Browse the repository at this point in the history
  • Loading branch information
dcnb committed Jan 21, 2024
1 parent fd06629 commit 4a02c98
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 9 deletions.
6 changes: 5 additions & 1 deletion _includes/js/map-js.html
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,11 @@
document.querySelector('input.search-input').value = "";
});{% endif %}

L.control.zoom({position: 'bottomright'}).addTo(map);
{% unless page.url contains "map" %}
L.control.zoom({position: 'bottomright'}).addTo(map);
{% else %}
$('.leaflet-fusesearch-control').show();
{% endunless%}



Expand Down
7 changes: 7 additions & 0 deletions _layouts/home-map.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@
height: 100%;
width: 100%;
}
.leaflet-top .leaflet-control-zoom{
display: none;
}
.leaflet-touch .leaflet-control-layers, .leaflet-touch .leaflet-bar {

margin-top: 80px;
}
</style>
<div id="map" style="position:fixed;"></div>

Expand Down
2 changes: 1 addition & 1 deletion _layouts/map.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
width: 100%;
}
</style>
<div id="map" style="position:fixed;"></div>
<div id="map" style="position:fixed;" ></div>


9 changes: 2 additions & 7 deletions _sass/_pages.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,8 @@
padding-bottom: 1.5em;
}

.leaflet-top .leaflet-control-zoom{
display: none;
}
.leaflet-touch .leaflet-control-layers, .leaflet-touch .leaflet-bar {

margin-top: 80px;
}



/* timeline */
.timeline-thumb {
Expand Down

0 comments on commit 4a02c98

Please sign in to comment.