News for hackers. Stuff that matters.
Re:OpenLayers by atombender on Tuesday December 10, 2019 @01:13PM (#21755063)
Speaking of, does anyone know a cheaper service than Mapbox and Google Maps for raster tiles?

I have an app that uses Leaflet for rendering, and Mapbox purely for its raster tiles (both plain maps and satellite required). Mapbox has been cheap for us, at about $50/mo. But with the new pricing structure taking effect in December, it's now about $450/mo. I believe Google and Bing are both more expensive than that.

I've been considering setting up OSM, but I'd like to avoid having to run and maintain it.

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...

Re:OpenLayers by sciurus on Tuesday December 10, 2019 @01:39PM (#21755407)
For anyone curious like me about Mapbox's new pricing structure taking effect now, they're at https://blog.mapbox.com/new-pricing-46b7c26166e7
Re:OpenLayers by baroffoos on Tuesday December 10, 2019 @11:49PM (#21759684)
Those prices look good. I remember last time I checked they had a very good free plan but you had to jump right up to the very expensive enterprise plan if you had an internal app even if it was tiny.
Re:OpenLayers by lukeqsee on Tuesday December 10, 2019 @06:40PM (#21758044)
We built Stadia Maps to save you the trouble and the expense.

https://stadiamaps.com

Happy to answer any questions! (I’m a cofounder.)

Re:OpenLayers by echelon on Tuesday December 10, 2019 @07:11PM (#21758230)
Really unfortunate that Google Stadia has a name collision with y'all. :(

You don't even show up in the "stadia" search results without the term "maps" added.

If it wasn't scary and expensive to sue Google for a name change, this seems like a case of Google (probably unwittingly) crushing your brand and trademark with their own.

Have y'all noticed a decrease in search traffic (or general brand/product awareness) since Google Stadia launched? And if so, do you plan to do anything about it?

Really cool product! Your maps look slick and super clean. :)

Re:OpenLayers by lukeqsee on Tuesday December 10, 2019 @07:33PM (#21758350)
Thanks for the kind words! We appreciate it.

> Have y'all noticed a decrease in search traffic (or general brand/product awareness) since Google Stadia launched?

We've actually seen an uptick because of badly placed keyword searches for Stadia.

We also aren't exactly sure the best way to counter it, but we're working on figuring out the best way. We don't really have a legal resource, either, given we didn't have a trademark before Google Stadia came along.

Re:OpenLayers by baroffoos on Tuesday December 10, 2019 @11:50PM (#21759689)
Its ok. Stadia is a google product, it wont exist by the end of 2020.
Re:OpenLayers by atombender on Tuesday December 10, 2019 @06:45PM (#21758082)
Cool, thanks. Pricing looks good. I'm not able to check out your product because your service appears to be down right now...?

  $ curl 'https://tiles.stadiamaps.com/styles/alidade_smooth.json'
  <html><body><h1>502 Bad Gateway</h1>
  The server returned an invalid or incomplete response.
  </body></html>
Tried from multiple locations to make sure.
Re:OpenLayers by lukeqsee on Tuesday December 10, 2019 @07:06PM (#21758194)
Yeah… :(

Very unfortunate timing there. We had a cache server wedge, and the failover mechanism didn't detect it quickly enough. We've diverted traffic manually and are working on bringing the bad region back into the mix after it went down.

Things should be working again now, at least.

Re:OpenLayers by atombender on Tuesday December 10, 2019 @07:07PM (#21758200)
Confirmed. Thanks!
Re:OpenLayers by CalRobert on Tuesday December 10, 2019 @04:34PM (#21757102)
I've been very happy with Thunderforest and they're pretty cheap. https://www.thunderforest.com/pricing/
Re:OpenLayers by ruffrey on Tuesday December 10, 2019 @03:24PM (#21756462)
We are hosting about 150GB of map data, raster and vector, with the following stack: - MapProxy with Redis cache - MapServer for rendering - PostGIS for data storage
Re:OpenLayers by mdasen on Tuesday December 10, 2019 @03:30PM (#21756530)
https://stadiamaps.com

Stadia Maps is pretty cheap. $25 gets you 25,000 map views per day or around 750k/month. $100 gets you 250k/day or around 7.5M per month.

Re:OpenLayers by Shakahs on Tuesday December 10, 2019 @03:07PM (#21756316)
I went through the various providers and ended up using MapTiler Cloud, it is the cheapest option I know of besides generating and serving your own tiles.

https://www.maptiler.com/cloud/plans/

Re:OpenLayers by joe-mapbox on Tuesday December 10, 2019 @03:41PM (#21756625)
Hey, @atombender.

Joe here from the Mapbox billing support team. Feel free to reach out to [email protected]. We can dig into your implementation with you to see if there are ways to limit your API consumption (and reduce your overall bills).

Things like limiting panning/zooming can help limit the number of tiles your end users load. Fewer tiles -> cheaper invoices

https://docs.mapbox.com/mapbox.js/example/v1.0.0/maxbounds/

There are other options as well. That said, it's hard to know exactly without taking a look at your map specifically. Let us know!

Re:OpenLayers by roelschroeven on Tuesday December 10, 2019 @03:24PM (#21756470)
You might have a look at HERE. If your needs fit comfortably in their Freemium plan, it should cost not very much at all.

Their website is quite confusing though, if you ask me. A starting point might be https://developer.here.com/sign-up?create=Freemium-Basic&kee...

Re:OpenLayers by durkie on Tuesday December 10, 2019 @03:24PM (#21756469)
I'm in a similar boat, looking to generate my own vector tile static images (basically raster tiles with fractional zoom levels). I use a fair amount of these, and there's no service that lets you cache them (of course). Seems like Mapbox and Maptiler are the only games in town.
Re:OpenLayers by geuis on Tuesday December 10, 2019 @02:27PM (#21755943)
Don’t know about cheaper, but Planet (planet.com) offers daily imagery. Worked there a few years ago.