Line 4: | Line 4: | ||
mapsLeafletList[0].map.setBearing(180); | mapsLeafletList[0].map.setBearing(180); | ||
} | } | ||
− | |||
if(window.location.href.indexOf("Index") > -1) { | if(window.location.href.indexOf("Index") > -1) { | ||
− | + | setTimeout(sample, 100); | |
} | } |
Revision as of 14:26, 3 November 2021
/* Any JavaScript here will be loaded for all users on every page load. */ function sample() { mapsLeafletList[0].map.setBearing(180); } if(window.location.href.indexOf("Index") > -1) { setTimeout(sample, 100); }