We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I took me a while to figure out how. Perhaps an idea to add this option to the docs? I have a jpg image of a floormap with size in px: 3673x2781
My settings.py:
LEAFLET_CONFIG = { 'TILES': [], 'LAYERS':[], 'SPATIAL_EXTENT': (0, 0, 3673,2781) }
templates/shared/leaflet_widget_overlays.js:
<script type="text/javascript"> window.addEventListener("map:init", function (event) { var map = event.detail.map; // Get reference to map map.options.crs = L.CRS.Simple; map.options.minZoom = -2; var bounds = [[0,0], [2781,3673]]; var image = L.imageOverlay('/static/plattegrond.jpg', bounds).addTo(map); map.fitBounds(bounds); }); </script>
The text was updated successfully, but these errors were encountered:
I'm facing this issue. I have added a png of a map as a tile but is it is grided. Django version is 3.2
Kindly help me resolve it. Thank you
@rob-vandam
Sorry, something went wrong.
No branches or pull requests
I took me a while to figure out how. Perhaps an idea to add this option to the docs?
I have a jpg image of a floormap with size in px: 3673x2781
My settings.py:
templates/shared/leaflet_widget_overlays.js:
The text was updated successfully, but these errors were encountered: