This file contains hidden or 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 = 877; | |
let mapContainer = document.getElementById('map_' + mapID); | |
mapContainer.addEventListener('mapready',function(ev){ | |
iMaps.maps[mapID].map.maxPanOut = 10; | |
}); |
This file contains hidden or 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 55677 with your map ID | |
document.addEventListener('input', function (event) { | |
if (event.target.id !== 'igm-live-filter-55677') return; | |
iMapsActions.resetActions(55677); | |
}); |
This file contains hidden or 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 | |
/** | |
* Interactive Geo Maps Custom Solution | |
* | |
* @wordpress-plugin | |
* Plugin Name: Interactive Geo Maps Custom Solution | |
* Plugin URI: https://interactivegeomaps.com | |
* Description: Reads from custom meta fields | |
* Version: 1.0.0 | |
* Author: Carlos Moreira |
This file contains hidden or 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 = 11111; // replace with your map ID | |
let igmNow = Date.now(); | |
let igmZoomLevel = 3; | |
mapContainer.addEventListener('mapready', function(ev) { | |
let igmap = iMaps.maps[mapID].map; | |
igmap.events.on("zoomlevelchanged", function(ev) { | |
if( Date.now() >= igmNow + 500){ | |
let series = iMaps.maps[mapID].series; | |
series.forEach(function(serie) { | |
if( iMaps.maps[mapID].allBaseSeries.includes( serie ) ){ return; } |
This file contains hidden or 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=3492193; | |
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=ev.target.dataItem.dataContext; | |
let drillTo=parseInt(data.value); | |
if (Array.isArray(iMapsManager.maps[mapID].seriesById[drillTo])) { |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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 .choices__list--dropdown .choices__list { | |
max-height:200px !important; | |
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.