Reference code for setting up a basic multi-image deep zoom viewer in Leaflet.js.
This example assumes that image tiles have been generated by something like MapTiler or a similar tool.
There is also code in the <style>
tags of the HTML <head>
to override Leaflet's layers icon and replace it with a rotation icon, since that's a better indication of what's happening in this use-case.
L.control.layers()
can accept accept a second argument for overlays (capable of existing simultaneously unlike baseMaps
which are mutually exclusive.