I'm trying to add an image (a colorbar) to my map at a particular position. When the image zooms inward or outward (or to a separate location), I wish to have the image remain in the same position (similar to the zoom buttons, scale, etc.).
var colorbarBounds = [[-80, 160], [-90, -160]];
colorbar = L.imageOverlay('colorbar.png', colorbarBounds, {pane: 'labelsPane'}).addTo(mymap);
The colorbarBounds are the location where I wish to have them start at for default.
Image: Image Map