Created
May 2, 2018 16:19
-
-
Save carmoreira/d01f9b223687b94a3c9274061fd441f1 to your computer and use it in GitHub Desktop.
Connect Markers in Interactive World Maps
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
function iwm_callback() { | |
var connectmap = jQuery('#map_canvas_1'); | |
if(connectmap.length > 0 && !connectmap.hasClass('iwm_connected')){ | |
iwm_connect('1','#f03b21','#f03b22','red',1,'dashed-arrow'); | |
iwm_connect('1','#f03b22','#f03b23','#667788',1,'curved-arrow'); | |
iwm_connect('1','#f03b23','#6699cc','#667788',1,'dashed-curved-arrow'); | |
connectmap.addClass('iwm_connected'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment