thybag / RPGCampaignManager

An Opensource RPG Campaign Manager and World Building tool.
3 stars 7 forks source link

Smarter initial zoom level (based on map size) #7

Closed thybag closed 3 years ago

thybag commented 3 years ago

Currently small maps are too zoomed out

See leaflet code here - img size is used to work out lat/lng for leaflet projection. Currently zoom is hard coded but needs to vary based on the size of the map image in use.

https://github.com/thybag/RPGCampaignManager/blob/master/resources/js/Components/Map.js#L93