How to define two different function based on event click?
JS Fiddle: https://jsfiddle.net/k140nad9/6/ HTML Code below: <input type="checkbox" id="btnA" onchange="openFunctionA();"> FUNCTION A </input> <input type="checkbox" id="btnB" onchange="openFunctionB();"> FUNCTION B </input> <div id="map"> MAP