how to call a function in javascript on button click code example
Example: calling function on click html
<img src="hospital.png" id="hospitals" onclick="damarkers();">
<img src="hospital.png" id="hospitals" onclick="damarkers();">