mspellecacy / map-canvas

A Foundry VTT Module letting you use Google Maps to quickly generate Scenes for use in play.
MIT License
13 stars 4 forks source link

Expanded maps dont capture properly #12

Open mspellecacy opened 9 months ago

mspellecacy commented 9 months ago

@thomasjeffreyandersontwin Often when generating the expended maps there are edge alignment issues.

Reproduce:

and you end up with and output like:

image

thomasjeffreyandersontwin commented 9 months ago

Yes, i am looking into it :(

I thought I had tested it but this is harder to do than i imagined...

mspellecacy commented 9 months ago

Feel free to ping me on discord ( @fikle ) if you'd like, we can maybe hash it out.

I took a very quick stab at what may be causing the issue, and I'm wondering if the capture approach could be a little brittle, because of how it 'navigates the portal'. I'll have to poke around the Maps API, but there might be a way to pre-calculate the 'window' for each part of the grid, programmatically capture them without being forced to 'navigate around' a central location, and then stitch them together.

Good luck. :)