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 = 21148; | |
let mapContainer = document.getElementById('map_' + mapID); | |
mapContainer.addEventListener('mapready',function(ev){ | |
iMaps.maps[mapID].map.zoomStep = 3; | |
}); |
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 (min-width:1025px) { | |
#elementor-device-mode:after { | |
content: "" !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
<?php | |
add_filter( 'igm_add_meta', 'igm_lines_on_the_fly', 1 ); | |
function igm_lines_on_the_fly( $meta ){ | |
// point 1 | |
$lat01 = floatval( '-7.508726' ); | |
$lon01 = floatval( '-36.119106' ); | |
// point 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
// replace with your map ID and marker title. | |
let mapUID = 3491660; | |
let markerTitle = 'My Marker Title'; | |
let mapContainer = document.getElementById('map_' + mapUID); | |
mapContainer.addEventListener('mapready', function(ev) { | |
setTimeout(function(){ iMapsManager.select(mapUID, markerTitle) },500); | |
}); |
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 = 237; | |
let mapContainer = document.getElementById('map_' + mapID); | |
mapContainer.addEventListener('mapready', function(ev) { | |
iMaps.maps[mapID].map.goHome(); | |
}); |
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 = 3491625; | |
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) { | |
setTimeout(function(){ | |
iMapsActions.lightbox.on('close', function(){ | |
iMapsManager.clearSelected(mapID); | |
iMaps.maps[mapID].map.goHome(); |
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
/* Remove markers border */ | |
.imapsCircle { | |
stroke-width:0 !important; | |
} | |
/* Change border colour */ | |
.imapsCircle { | |
stroke:#6699CC !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
.imapsCircle{ | |
paint-order: stroke; | |
stroke-opacity:1; | |
transition: all 0.8s; | |
} | |
.imapsCircle:hover { | |
stroke-width:15px; | |
stroke-opacity:0; | |
} |
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
.igm-map-content { | |
position: relative; | |
padding-bottom: 56.25% !important; /* proportion value to aspect ratio 16:9 (9 / 16 = 0.5625 or 56.25%) */ | |
height: 0; | |
overflow: hidden; | |
} | |
.igm-map-content iframe { | |
position: absolute; | |
top: 0; |
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
.imapsMapLine-group path { | |
stroke-dasharray: 10; | |
stroke-dashoffset: 100; | |
animation: dash 5s linear infinite; | |
} | |
@keyframes dash { | |
from { | |
stroke-dashoffset: 100; | |
} |