Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save carmoreira/d01f9b223687b94a3c9274061fd441f1 to your computer and use it in GitHub Desktop.
Save carmoreira/d01f9b223687b94a3c9274061fd441f1 to your computer and use it in GitHub Desktop.
Connect Markers in Interactive World Maps
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