Live data from Hacker News

OpenLayers

openlayers.org

71–80 of 89 posts

Re: OpenLayers

#71
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…

I'm gonna hop on the bandwagon and thank you as well. My senior project was built with Leaflet.

Re: OpenLayers

#72
just did a port from a custom D3 map solution to OL due to mobile requirements. I can say the OL's mobile support is first class.

Re: OpenLayers

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

What country and how did you get their listings?

Re: OpenLayers

#74

When compared to the other two major OSS libraries I would say: - Leaflet. Widely known, suitable for mostly simple use cases. - Mapbox GL JS. State of the art library based on WebGL. Mapbox started off with a fork/extension of Leaflet called Mapbox.js but over time has moved on and created the Mapbox GL JS library from the ground up. Very fast, but requires a GPU due to WebGL. - OpenLayers. Often used by more profes…

What do you mean requires a gpu? Doesn't all computing with a gui require some kind of GPU?

Re: OpenLayers

#75
post #12

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…

For anyone curious like me about Mapbox's new pricing structure taking effect now, they're at https://blog.mapbox.com/new-pricing-46b7c26166e7

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

#76
post #69

Earlier quoted context omitted.

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) sinc…

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 t…

Its ok. Stadia is a google product, it wont exist by the end of 2020.

Re: OpenLayers

#77

Earlier quoted context omitted.

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.

You can find free OSM PBF data sets. eg. https://download.geofabrik.de/north-america/us/california.ht...

Re: OpenLayers

#78
post #51

Earlier quoted context omitted.

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.

I didn't compress an actual image from 216GB to 17GB. Instead, I created the highest resolution image already as a set of tiles (each one 5000x10000 px). Then I tiled them further in two additional zoom levels, until I got 4x8 square tiles of 1250x1250px. From there I worked backwards merging chunks of 2x2 tiles.

The figure 217 GB comes from the cumulative size of all the pandas DataFrames containing the whole dataset (as mgspack files). The lossless compressed figure comes from the total size of the highest zoom level.

It didn't take that long, it was mostly done overnight (so around 10 hours in a i7 server with 24 GB RAM).

Re: OpenLayers

#79
I used OpenLayers back in 2008-2011 for mapping-heavy web application. It was of very high quality, and had great API documentation (using DoxyGen, iirc). Taught me some things about pre-modern-craze Javascript programming (i.e. how to correctly implement inheritance in JS)

Re: OpenLayers

#80

When compared to the other two major OSS libraries I would say: - Leaflet. Widely known, suitable for mostly simple use cases. - Mapbox GL JS. State of the art library based on WebGL. Mapbox started off with a fork/extension of Leaflet called Mapbox.js but over time has moved on and created the Mapbox GL JS library from the ground up. Very fast, but requires a GPU due to WebGL. - OpenLayers. Often used by more profes…

What do you mean requires a gpu? Doesn't all computing with a gui require some kind of GPU?

He means a GPU with 3D acceleration.
Post reply on HN