This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// added this control check, in case code was added more than once | |
if (typeof mapCode === 'undefined') { | |
let mapID = 159; // CHANGE MAP ID HERE | |
let mapContainer = document.getElementById('map_' + mapID); | |
mapContainer.addEventListener('mapready', function(ev) { | |
iMaps.maps[mapID].series.forEach(function(serie) { | |
if (serie.className === 'MapImageSeries') { | |
serie.show(); | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery('.igm-map-content').each(function() { | |
var button = jQuery('<a>Close</a>'); | |
button.on('click', function() { | |
var mapID = 3492169; // replace with your map ID | |
iMapsManager.clearSelected(mapID); | |
iMapsActions.resetActions(mapID); | |
}); | |
jQuery(this).prepend(button); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@media only screen and (max-width:780px) { | |
.map_wrapper .imapsLabel foreignObject { | |
font-size:0.6em; | |
line-height:1.1em; | |
white-space:normal; | |
} | |
} |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.imapsTooltip foreignObject > div { | |
max-height:100px !important; | |
overflow:scroll !important; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let mapID = 3491853; // replace with your map ID | |
let zoomLevel = 8; // replace with the zoom level you want to show the labels at | |
let igmNow = Date.now(); | |
function igmHideMarkers(igmap) { | |
igmNow = Date.now(); | |
let series = iMaps.maps[mapID].series; | |
series.forEach(function(serie) { | |
if (typeof serie.mapImages === 'undefined') { | |
return; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let mapID = 21169; // change with your map ID | |
let mapContainer = document.getElementById('map_' + mapID); | |
if(mapContainer){ | |
mapContainer.addEventListener('mapready',function(ev){ | |
iMaps.maps[mapID].series.forEach(function(serie){ | |
var filter = serie.filters.push(new am4core.DropShadowFilter()); | |
filter.color = am4core.color("#000000"); | |
filter.dx = 5; | |
filter.dy = 5; | |
filter.blur = 2; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let mapID = '3491792'; //replace with your map ID | |
iMaps.maps[mapID].map.zoomControl.children._values[0].events.on('hit', function() { | |
//run your custom code here, it will be triggered when the home button is clicked. | |
}); |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.map_wrapper { | |
flex-direction: row-reverse; | |
} |