list-style: none !important;
}
}
+}
+.mackinac-tag.map-zoomed{
+ margin-left: 20px !important;
+ margin-top: 15px !important;
+}
+.mackinac-tag:not(.map-zoomed){
+ margin-left: 20px !important;
+ margin-top: 25px !important;
+}
+.mackinac-island-break{
+ display: none;
+}
+.drummond-island-label.map-zoomed{
+ display: block;
+ padding-top: 5px;
+ padding-left: 30px;
+ text-align: left;
+}
+body .dropdown-container #area-map-container #area-map .area-label.map-zoomed{
+ font-size: 10px;
+ padding: 2px 7px !important;
+
+}
+.mackinac-island-label.map-zoomed{
+ padding-right: 12px;
+ display: block;
+}
+.mackinac-island-label.map-zoomed br{
+ display: block;
}
\ No newline at end of file
<script>
jQuery(function($){
-
+ var zoomOut = false;
// Create map with default center and size
var countyMap = L.map('area-map',{
gestureHandling: true,
// zoomControl:false,
// gestureHandling: true,
// }).setView([48.0, -88.78], 8);
+ countyMap.on('zoomend', function(event) {
+ if(event.target._zoom <= 7 ){
+ $(".area-label, .mackinac-island-label, .drummond-island-label, .mackinac-tag").addClass("map-zoomed");
+ zoomOut = true;
+ }else{
+ if($(".area-label, .mackinac-island-label, .drummond-island-label, .mackinac-tag").hasClass("map-zoomed")){
+ $(".area-label, .mackinac-island-label, .drummond-island-label, .mackinac-tag").removeClass("map-zoomed");
+ }
+ }
+ });
var countiesDirectory = '{$assets}/counties/';
// Tile Server URL
var tileServer = 'https://maps.gaslightmedia.com/12312029-NoPlaceNames-95bfebd37e9e7d649daafa8762629084/'+ {literal}'{z}/{x}/{y}.png'{/literal};
$("<div class='glm-counties-default'> The Upper Peninsula of Michigan is made up of fifteen counties that are common in their wealth of beauty and tranquility, yet uniquely individual in their offerings to the visitor. Hover or click on each county for a sampling of what they offer. </div>").insertAfter(countyDescriptionTitle);
countyDescription.append(countyMapTopList)
});
+
+ new L.Marker([47.70, -89.60], {
+ icon: new L.DivIcon({
+ className: 'my-div-icon',
+ html: '<span style="color: #343539;line-height: 1;" class="glm-theme-map-label-small mackinac-island-label">Isle Royale <br> National Park</span>'
+ })
+ }).addTo(countyMap);
+
new L.Marker([47.30, -89.85], {
icon: new L.DivIcon({
className: 'my-div-icon',
})
}).addTo(countyMap);
+
new L.Marker([45.85, -84.55], {
icon: new L.DivIcon({
className: 'my-div-icon',
- html: '<span style="color: #343539;line-height: 1;" class="glm-theme-map-label-small">Mackinac Island</span>'
+ html: '<span style="color: #343539;line-height: 1;" class="glm-theme-map-label-small mackinac-island-label">Mackinac <br class="mackinac-island-break"> Island</span>'
})
}).addTo(countyMap);
new L.Marker([45.9, -84.0], {
icon: new L.DivIcon({
- className: 'my-div-icon',
+ className: 'my-div-icon drummond-island-label',
html: '<span style="color: #343539;line-height: 1;" class="glm-theme-map-label-small">Drummond Island</span>'
})
}).addTo(countyMap);
// Create Div type icom for county names
var countyNameIcon = L.divIcon({
- className: 'county-name',
+ className: 'county-name ' + county.toLowerCase()+"-tag",
html: '<a class="area-label ' + county +'" href="' + page + '">' + county + '</a>'
});