Closed takvol closed 2 years ago
Hi, thanks for plugin Aim of this PR is to address the issues #7 and #9 by adding crs and getMaxBounds (new method) to examples
crs
getMaxBounds
To prevent fetching the tiles outside of the image, the bounds can be obtained from rc object Also, looks like the map bounds are not 100% correct without crs: L.CRS.Simple map property. For example, if the image is tall, it gets cropped at the bottom without crs: https://codesandbox.io/s/eloquent-tree-0htxi?file=/scripts.js with crs: https://codesandbox.io/s/boring-banach-o7nk0?file=/scripts.js
crs: L.CRS.Simple
@takvol thanks for this contribution.
Hi, thanks for plugin Aim of this PR is to address the issues #7 and #9 by adding
crs
andgetMaxBounds
(new method) to examplesTo prevent fetching the tiles outside of the image, the bounds can be obtained from rc object Also, looks like the map bounds are not 100% correct without
crs: L.CRS.Simple
map property. For example, if the image is tall, it gets cropped at the bottom without crs: https://codesandbox.io/s/eloquent-tree-0htxi?file=/scripts.js with crs: https://codesandbox.io/s/boring-banach-o7nk0?file=/scripts.js