Can't capture map with map.fitBounds
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 380
- Forks
- 140
- PR merge metrics
- No merged PRs in 30d
Description
I'm trying to save image from a map created in this way:
const streetsLayer = new L.TileLayer.boundaryCanvas(
'image.png', {
boundary: {
type: 'Polygon',
coordinates: feature.geometry.coordinates,
},
subdomains: ['maps', 'maps1', 'maps2', 'maps3', 'maps4']
});
And when I get an image there is a empty space on the place of the map
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the capture using the shown L.TileLayer.boundaryCanvas setup and map.fitBounds, then inspect the capture behavior around the boundaryCanvas layer. Compare the generated image with the displayed map; done means the captured image includes the map instead of an empty area.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100