Live data from Hacker News

OpenLayers

openlayers.org

51–60 of 89 posts

Re: OpenLayers

#51
post #34

What a coincidence! I discovered OpenLayers yesterday when looking for a way to display a 1 Terapixel image. I got it up and running in a few hours. Kudos to the developers!

Are you serving it as a "static image" or using a different method? https://openlayers.org/en/latest/examples/static-image.html

I followed a tiled based approach, as explained here: https://openlayers.org/en/latest/examples/localized-openstre...

Although the image is not a map at all, I tiled it and served it as a custom map layer. You can view it at https://finance.alisio-computing.eu

Re: OpenLayers

#52
post #32

Leaflet author here! Just wanted to note that if you haven't looked into OpenLayers in a few years, you absolutely should — it's astonishing how much it progressed: from something that I was so frustrated with that it prompted me to write Leaflet in the first place (11 years ago) to a modern, fast, well-engineered and lovingly maintained library. It's especially great when you're doing complex GIS stuff and need a to…

Thank you so much for all the work you put into creating and maintaining Leaflet. It’s pretty remarkable how much time and energy you (and others, of course) put into making something so complex so intuitive.

Re: OpenLayers

#53
post #32

Leaflet author here! Just wanted to note that if you haven't looked into OpenLayers in a few years, you absolutely should — it's astonishing how much it progressed: from something that I was so frustrated with that it prompted me to write Leaflet in the first place (11 years ago) to a modern, fast, well-engineered and lovingly maintained library. It's especially great when you're doing complex GIS stuff and need a to…

Thank you for building leaflet. It (and scrapy) are how I wound up finding the house I live in now - a quirky, dirt cheap cottage I'd never have taken note of without the tools to filter and visualize a whole country's listings.

Re: OpenLayers

#54

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…

I've been very happy with Thunderforest and they're pretty cheap. https://www.thunderforest.com/pricing/

Re: OpenLayers

#55
post #51

Earlier quoted context omitted.

Are you serving it as a "static image" or using a different method? https://openlayers.org/en/latest/examples/static-image.html

I followed a tiled based approach, as explained here: https://openlayers.org/en/latest/examples/localized-openstre... Although the image is not a map at all, I tiled it and served it as a custom map layer. You can view it at https://finance.alisio-computing.eu

Thanks for sharing! One more curiosity - what PNG compression tool was used and how long did it take to crunch 216GB to 17GB? I'm surprised it didn't crash.

Re: OpenLayers

#56

Earlier quoted context omitted.

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.

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!

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

#57

Earlier quoted context omitted.

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.

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/

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

#58

Earlier quoted context omitted.

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/

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

Awesome, thanks!

Re: OpenLayers

#59

Earlier quoted context omitted.

Could you send an example of a great looking map?

Mapbox's tiles are very good. I particularly like the hybrid terrain + road mode, which you can see here: https://homes.stltoday.com/search

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

#60

Earlier quoted context omitted.

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!

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

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.
Post reply on HN