#[asuh]Hey GWG, I’m looking up OSM for tile usage for static maps via Simple Location plugin. I saw your reply in the Github issue 97 so I got curious where the issue is with OSM. I believe this is the page I need to review, right?
#[asuh]Just skimming through what Sebastian wrote, it seems like the biggest problem for OSM is the abuse of their API since it costs money. But what Simple Location plugin could do, it doesn’t seem abusive to use the API to generate and pre-render a map image which would be served from the local site and not linked from OSM’s services
#GWGYes, but even with using their tile server, I'd have to render a static image.
#GWGI could self-host aaronpk's Static Maps API for PHP if I wanted to.
#aaronpkIt's the code that generates all the maps on my site still
#[asuh]It’s been curious that this type of API couldn’t be included to generate the static image within Simple Location, and if your API, aaronpk, could be integrated, why not!
#[asuh]or something like that Github repo I linked to above
#GWGaaronpk: I know. But should I be generating static maps inside a WordPress plugin?
#aaronpkAll mine does is assemble 256px square images sourced from elsewhere
#[asuh]that sounds reasonable and not too server intensive
#aaronpkThe complicated part is sourcing the map data but if you punt that to external providers then you're really dealing with only images and coordinate systems and you can usually avoid the coordinate system math when dealing with areas smaller than a large state
#GWGaaronpk: I assume if I stick to OSM's tile servers, I'm not going to get into a dispute over TOS and storing the rendered image.
#[asuh]The tile policy page I previously linked to seems to say they’d rather it be served locally, maybe with a link back to OSM?
#GWGaaronpk: Where do you store the rendered images? Or do you just generate them dynamically?
#[asuh]aaronpk: I use a shared host for my personal site. It would be okay to generate within the plugin on this shared server?
#aaronpkMost of the time I store the generated map image
#aaronpk[asuh]: really the only consideration there is making sure the shared host doesn't kill the script that's running to generate the image but most of the time it takes only a second or two so it's well under the limit
#GWG[asuh]: If I self host that endpoint, separately from my site, and I'm happy, I'll release that code more quickly than using the code as inspiration for writing my own version.
#GWGIt wouldn't be the first time I did that. And later replaced it with something local
#aaronpkIt was supposed to default to Esri attribution for those tiles and give you a way to add appropriate attribution if you used other tiles
#aaronpkit was 6 years ago, I can't guarantee the quality of that code
#GWGaaronpk: All of it, or just the attribution part?
#aaronpkI mean the rest is functional enough that it hasn't bothered me since then and it's literally used every day on my website
#GWGOn that note, it's 2:30am here... I'll fork tomorrow
#LoqiGWG has 36 karma in this channel over the last year (139 in all channels)
[tantek] and [KevinMarks] joined the channel
#[KevinMarks]Could you run a leaflet on a headless chrome browser to make the static maps (more dependencies, less code than doing it yourself)
computer2000, [tantek], [jgmac1106], nickodd, sknebel, Zegnat, [manton], Kaja_, [chrisaldrich], [jeremycherfas] and JtLively joined the channel; nickodd left the channel
#JtLivelyHi. I'm helping someone build a new WordPress website that can display other data from a database. What are the pros and cons of using custom tables in the same WordPress database or a separate database with a plugin like CDBT (if another one exists that's up-to-date)?
#aaronpkyou may want to look for a generic wordpress channel, this channel is more about specific indieweb topics https://indieweb.org
#JtLivelyThanks. I asked in #wordpress also but I wanted to ask here since I accidentally found it and am interested in the site now : D