GoodClover / OSM-Discord-bot

Discord bot that works with OpenStreetMap data. (MAINTAINANCE MODE)
Other
10 stars 2 forks source link

Inline map fragment hotfix #11

Closed kallejre closed 3 years ago

kallejre commented 3 years ago

Using only inline map fragment and nothing else throws exception due to element rendering variable add_image being undefined. This PR fixes it. Also addresses situation where at low zoom levels tiles past 180 deg meridian are not rendered due to missing tiles. Map alignment is still an issue. Reordered imports was caused by styling checker

This is small PR and I hope it's safe to merge. Potential future todo: set up testing and deployment infrastructure including automatic deployment (bot as a unix service?) and automatic testing using data stored on locally hosted API server. Since you have two bots, one account could be simulating end user and other acts as normal bot.