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
// works for version >1.5.3.3 | |
//replace with your map ID | |
let mapID = 3491739; | |
let zoomLevel = 8; | |
let igmNow = Date.now(); | |
function igmHideMarkers(igmap) { | |
igmNow = Date.now(); | |
let series = iMaps.maps[mapID].labelSeries; | |
series.forEach(function(serie) { |
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
/* | |
* Zoom Level for Markers on Click with Zoom on Click enabled | |
* if you do not override the value, it will default to zoom to | |
* the value double of the current zoom. | |
*/ | |
let igmMarkerZoomLevelOnClick = 32; | |
/* | |
* Opacity for base region series when drilldown or show specific map action is perfomed | |
*/ |
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
// replace with your map ID | |
let mapID = 236162; | |
let mapContainer = document.getElementById('map_' + mapID); | |
mapContainer.addEventListener('mapready', function(ev) { | |
iMaps.maps[mapID].map.minZoomLevel = iMaps.maps[mapID].map.zoomLevel; | |
}); |
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 = 22309; // change to your MAP ID | |
let mapContainer = document.getElementById('map_' + mapID); | |
mapContainer.addEventListener('mapready', function(ev) { | |
iMaps.maps[mapID].series[0].mapPolygons.each(function(region) { | |
region.events.on("hit", function(ev) { | |
let data = region.dataItem.dataContext; | |
gtag('event', 'map_click', { | |
'event_label': 'My Map', | |
'event_category': 'Click', | |
'value': data.name, |
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
// replace with your map ID and region code. | |
let mapID = 3491443; | |
let mapContainer = document.getElementById('map_' + mapID); | |
mapContainer.addEventListener('mapready', function(ev) { | |
iMaps.maps[mapID].series[0].mapPolygons.each(function(region) { | |
let inactive = region.dataItem.dataContext.madeFromGeoData; | |
if (inactive) { | |
region.dataItem.dataContext.tooltipContent = 'Empty Country'; | |
} | |
}); |
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
// replace with your map ID and region code. | |
let mapID = 236162; | |
let mapContainer = document.getElementById('map_' + mapID); | |
mapContainer.addEventListener('mapready', function(ev) { | |
iMaps.maps[mapID].series[0].mapPolygons.each(function(region) { | |
region.events.on("hit", function(ev) { | |
let data = region.dataItem.dataContext; | |
// run my custom code here if clicked region | |
// region code will be data.id | |
// region name will be data.name |
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
// set map ID and default marker to display. | |
let mapID = 3485106; | |
let defaultMarker = 'Marker 01'; | |
let mapContainer = document.getElementById('map_' + mapID); | |
mapContainer.addEventListener('mapready', function(ev) { | |
let allMarkers = iMapsManager.getMarkersByValue(mapID, '*', 'id'); | |
let myMarker = iMapsManager.getMarkersByValue(mapID, defaultMarker, 'id'); |
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 .map_aspect_ratio { | |
padding-top: 0 !important; | |
height: calc(100vh) !important; | |
max-height: calc(100vh) !important; | |
} | |
/* If you only want it on smaller screens */ | |
@media only screen and (max-width: 768px) { |