News for hackers. Stuff that matters.
Re:OpenLayers by bransonf on Tuesday December 10, 2019 @01:17PM (#21755107)
If you can find the time to set it up, OpenMapTiles [0] is the way to go. In the long run, you’ll probably save more money than the time it takes to manage.

[0] https://openmaptiles.org/

Re:OpenLayers by atombender on Tuesday December 10, 2019 @01:30PM (#21755292)
Interesting, thanks. Unfortunately, those tiles are pretty ugly compared to Mapbox, but it might be an option if I can't find anything else.

Edit: Also it's $1,000 for commercial use, even to use with OSM data?

Re:OpenLayers by bransonf on Tuesday December 10, 2019 @01:40PM (#21755421)
You can style the tiles or use your own.

Where did you find the $1000 quote? I know you can have them hosted unlimited for $245/month but I was fairly sure it was free for self-hosted use.

Re:OpenLayers by atombender on Tuesday December 10, 2019 @02:02PM (#21755703)
Update: So if you run the server locally and select maps, you're presented with this screen, saying you need a key from openmaptiles.com: https://i.imgur.com/NTb5zIL.jpg.

If you select "commercial product or company web", you're asked to pay for it: https://i.imgur.com/TrAmju4.jpg

If you select any of the non-commercial ones, the newest map data you get is from 2017 (!).

I'm not against paying, but it's not free!

Re:OpenLayers by kylebarron on Tuesday December 10, 2019 @05:17PM (#21757474)
Docs for building the tiles yourself are here [0,1]. It's worked really well for me so far. If you want a visual example of self hosted tiles, you can check out my (in progress) website [2]. The tiles are all hosted statically in S3 with cloudflare as a proxy, so it was pretty cheap.

[0]: https://github.com/openmaptiles/openmaptiles/blob/master/REA... [1]: https://github.com/openmaptiles/openmaptiles/blob/master/QUI... [2]: https://nst.guide

Re:OpenLayers by vetinari on Tuesday December 10, 2019 @04:19PM (#21756979)
The point is to generate your own; the purchasing option is if you don't want to generate your own, but want something done for you and packaged.

See here: https://openmaptiles.org/docs/generate/generate-openmaptiles...

Re:OpenLayers by atombender on Tuesday December 10, 2019 @05:25PM (#21757547)
Thanks, I will look into that. It's not altogether clear from their site — their Docker image basically implies that you're supposed to use their pre-existing datasets, which aren't free.
Re:OpenLayers by mycall on Wednesday December 11, 2019 @12:54AM (#21759946)
Re:OpenLayers by atombender on Tuesday December 10, 2019 @01:48PM (#21755539)
It's a little unclear to me. But from what I can gather, the basic software can download data from OSM, but if you want hillshading or satellite, you have to get that separately, and it's part of the $1,000 "production package" [1], which is actually $2,048 for businesses, plus $1,024/year for updates.

[1] https://openmaptiles.com/production-package/

Re:OpenLayers by kylebarron on Tuesday December 10, 2019 @05:20PM (#21757511)
I have a couple open source repos for generating hillshade and contours (raster and vector, respectively) that I use with my self hosted tiles at nst.guide. The data sources I'm using are US only, though SRTM is a common choice for international Digital Elevation Models.

[0]: https://github.com/nst-guide/hillshade [1]: https://github.com/nst-guide/contours

Re:OpenLayers by atombender on Tuesday December 10, 2019 @05:24PM (#21757539)
Awesome, thanks!
Re:OpenLayers by atombender on Tuesday December 10, 2019 @02:08PM (#21755755)
Forgot to answer about styling. Yes, looks like custom styles with the production package (which has hillshading, which ends up making the maps look much nicer) is much better. For some reason their main demos don't show off their best map styles.
Re:OpenLayers by dwnoble on Tuesday December 10, 2019 @01:42PM (#21755452)
It's only $20/mo for their commercial cloud offering: https://www.maptiler.com/cloud/plans/
Re:OpenLayers by atombender on Tuesday December 10, 2019 @01:50PM (#21755553)
Only if you're below 500k raster tile downloads per month. The app I need this for is at 5.5m/mo, so it'd be a little more than $245/mo. Still better than Mapbox, though.
Re:OpenLayers by TomMarius on Tuesday December 10, 2019 @01:34PM (#21755335)
Could you send an example of a great looking map?
Re:OpenLayers by atombender on Tuesday December 10, 2019 @01:42PM (#21755460)
Mapbox's tiles are very good. I particularly like the hybrid terrain + road mode, which you can see here: https://homes.stltoday.com/search
Re:OpenLayers by kylebarron on Tuesday December 10, 2019 @05:25PM (#21757542)
I agree that layer is gorgeous.

I think the best open vector map style is OSM liberty [0]. My fork, which includes my generated hillshade and contours, is here [1].

[0]: https://github.com/maputnik/osm-liberty [1]: https://github.com/nst-guide/osm-liberty/blob/gh-pages/style...