Live data from Hacker News

OpenLayers

openlayers.org

41–50 of 89 posts

Re: OpenLayers

#41
I like OpenLayers. We built a rather complex image annotation tool around it and OpenLayers worked well with all the features we added over the years, recently even a full-blown video annotation tool. The community is nice and active, too. Best of all: It's still compatible with our old school way of JS development. The only thing I'm missing is the API documentation of older versions which they seem to have dropped at some point.

Re: OpenLayers

#42

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…

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

#43

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

#44

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…

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

#45

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…

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

#46

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…

Hey, @atombender.

Joe here from the Mapbox billing support team. Feel free to reach out to help@mapbox.com. 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

#47
post #40
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…

Thanks for creating Leaflet and Mapbox GL! Do you have any specific examples of "complex GIS stuff" (Uses OpenLayers) or a "highly interactive app" (Uses MapBox GL)? Are there any big feature gaps from leaflet->mapbox-gl that developers should consider when choosing a mapping library?

Note: I didn't create Mapbox GL, I'm just a part of the core team: https://github.com/mapbox/mapbox-gl-js/graphs/contributors

Don't have any particular OpenLayers examples in mind at the moment but it's very heavily used in government, enterprise and academics — sectors that often need advanced projections, use various obscure formats / protocols and prefer all the features to be packed in one product and maintained consistently by one team.

For Mapbox, here's a showcase https://www.mapbox.com/showcase. It especially shines in apps that need to render hundreds of thousands of features at once, maximum customization in how the map looks and feels, updating map appearance dynamically in real time, or some cool animations.

In terms of features, Leaflet has a huge plugin community and there's a plugin for pretty much any feature since it has been around for 8 years, although their quality varies (the core is top-notch though). Mapbox GL will need to catch up on that front certainly, but on the other hand, there are things that are simply not possible with raster-based mapping libraries — things like making any feature you see interactive, changing the map appearance in real time, rendering millions of features (with high perf viz features like clustering, heatmaps, advanced labeling etc.), and general smoothness of user experience (smooth zoom transitions, labels adjusting to rotation and pitch, etc.).

Re: OpenLayers

#48
post #40
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…

Thanks for creating Leaflet and Mapbox GL! Do you have any specific examples of "complex GIS stuff" (Uses OpenLayers) or a "highly interactive app" (Uses MapBox GL)? Are there any big feature gaps from leaflet->mapbox-gl that developers should consider when choosing a mapping library?

To answer your question: Leaflet.draw is superior to mapbox-gl-draw. mapbox-gl-draw is very lightly maintained and is not as full featured as Leaflet.draw. mapbox-gl-draw sounds like it may also be no longer maintained by Mapbox in the future either - refer to the recent GitHub issue on the repos that hints at this.

There are mapbox-gl-draw plugins to make it comparable to Leaflet.draw but these are features IMO that mapbox-gl-draw probably should have had in the first place.

So, as someone who works with mapbox-gl-js a lot, that is something I see as a gap.

Re: OpenLayers

#49
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

Re: OpenLayers

#50

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!

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

Post reply on HN