DavesMapper
DavesMapper copied to clipboard
Change the map generator to position tiles with top/left instead of inline positioning.
Maps are currently generated as rows of inline images. Ideally they should be made using images with position: absolute
and with top and left values given.
What about a more modern solution like flexbox ? I could help with that
@deathwebo that'd be an interesting idea, but I think absolute positioning would lend itself better for future enhancements to manual map editing and map export where CSS isn't necessarily involved.
What does absolute positioning solve can't be done with flexbox or simply inline positioning like is already implemented? Maybe I'm missing a detail here, but for manual map editing you'd be placing dummy divs instead of images to maintain click states, and exporting to canvas still respects css. I'm confused what this accomplishes.