20 ms·
Maplibre: community-driven Mapbox GL fork
- klokan 5y agoOpen-source mapping libraries for developers using JavaScript, Android, iOS and more...
- lukeqsee 5y agoI'm one of the folks behind the fork (and part of the initial steering committee). Happy to answer any questions!
- fatnoah 5y agoThe site mentions "additional functionality" vs. Mapbox Native. Is that additional functionality listed somewhere? (Apologies if it is and I missed it)
- TOMDM 5y agoMaybe not the best place for this, but hey it's a question. When adding clusters vs points to a map, filtering points is really simple, but I haven't found a simple way to filter clusters outside of filtering a data source and reapplying it to the clusters. If there a better way of doing this?
- sleepy_keita 5y agoIt's not perfect, but you can put counts of points in each cluster (maybe you have count = 5, A_count = 2, B_count = 3 which means that this particular cluster has 5 points total, 2 of which are A and 3 of which there are B). Then you can filter based on these attributes. The obvious downside of this is that the cluster positions aren't accurate because they're based on points that are supposed to be hidden, but it's fast and doesn't require recalculating.
- billfruit 5y agoDoes it support rendering of rasters? What about support on Desktop platforms?
- z77dj3kl 5y agoYes, you can render raster layers (tile sources). https://docs.mapbox.com/mapbox-gl-js/example/map-tiles/ https://docs.mapbox.com/mapbox-gl-js/example/map-tiles/
- tuukkah 5y agoAnd here's the forked version of that example: https://maplibre.org/maplibre-gl-js-docs/example/map-tiles/ https://maplibre.org/maplibre-gl-js-docs/example/map-tiles/
- lukeqsee 5y agoMapLibre GL Native supports server-side raster rendering via tileserver-gl or a custom server implementation (my company does this). Desktop support should be possible with some extra work with Native, but I'm not certain, for instance, if the QT bindings are fully working yet.
- mnutt 5y agoMy understanding is that mapbox-gl-native dropped node binding support prior to the fork; the code is still there but the build system can’t build it. I’m hoping to help maplibre bring it back up to a working state.
- loulouxiv 5y agoWhat would it take to display a map in a style as close as possible to the one used on openstreetmap.org ?
- lukeqsee 5y agoA few things: - A data source for vector tiles; there's a lot of options: https://stadiamaps.com https://stadiamaps.com (my company), https://maptiler.com/ https://maptiler.com/ & https://jawg.io https://jawg.io (other core contributing companies), among others. - A style that matches. I'm not aware of an open source style that closely mirrors OSM's style using MapLibre GL Styles (also forked from Mapbox). OSM Bright is pretty close: https://github.com/mapbox/osm-bright https://github.com/mapbox/osm-bright / https://github.com/openmaptiles/osm-bright-gl-style https://github.com/openmaptiles/osm-bright-gl-style.
- z77dj3kl 5y agoThe OSM style is here: https://github.com/gravitystorm/openstreetmap-carto https://github.com/gravitystorm/openstreetmap-carto There is an issue about converting it to vector: https://github.com/gravitystorm/openstreetmap-carto/issues/3201 https://github.com/gravitystorm/openstreetmap-carto/issues/3... Doesn't seem like there's any current vector versions of that style, but you could make one yourself using Maputnik or similar; you'd probably want to start with OpenMapTiles and maybe even one of the pre-existing styles for OMT like OSM bright.
- kylebarron 5y agoIt would take someone designing the same style in the vector format. This [0] is the closest I've seen to a vector port of the default OSM style. Demo [1] [0]: https://github.com/baremaps/openstreetmap-vecto https://github.com/baremaps/openstreetmap-vecto [1]: https://www.baremaps.com/assets/demo.html https://www.baremaps.com/assets/demo.html
- loulouxiv 5y agoIn the Github issue linked by z77dj3kl I found a link to this vector port by ESRI : http://esri.maps.arcgis.com/apps/View/index.html?appid=d6b18a2e774c4959ba855f6ac90952a2 http://esri.maps.arcgis.com/apps/View/index.html?appid=d6b18... Closed source but very impressive
- unknown_error 5y agoI've struggled to understand the relationship between Mapbox, Mapbox Studio, Mapbox GL, OpenStreetMap, and other libraries like OpenLayers or Leaflet. Could you please explain (in brief) the mapping "ecosystem" as it were, and where Maplibre fits into the picture?
- huy-nguyen 5y agoRough overview: Leaflet: fairly simple open source mapping library. Canvas-based. The original Mapbox (called MapboxJS) is based on this. Openlayers: open source mapping library that’s more capable (e.g many different protections) but also more complex. Can render to Canvas or SVG. Openstreetmap: public and free source of mapping data. Mapbox uses this as a default data source. MapboxGL: completely new implementation of a mapping library written in WebGL (should perform better). MapboxGL changed its license recently, prompting the creation of the libremap fork.
- lukeqsee 5y agoGood question! There's a lot of Map<thing>s and it's very unclear how they all fit together without prior experience. OpenStreetMap (OSM) is a community-driven, fully open and usable data library. It has usable data for almost the entire world for everything from cities, roads, houses, parks, country borders, and work. It's a database of everything you need to make map. They also have a website that renders that map, but it's not commercially usable. Mapbox is one of the first companies to take OSM's dataset and commercialize it. Along the way they created a lot of the wildly used mapping libraries, including renders, data formats, and styling tools. Mapbox Studio is one of Mapbox's proprietary tools for working with maps in their ecosystem. Mapbox GL is a suite of renderers, originally entirely open source, developed by Mapbox with the community to render map data (from many different sources). MapLibre GL is a community-driven fork of the Mapbox GL suite, after Mapbox closed the licenses to require payment if you use the latest versions. OpenLayers and Leaflet are both alternative, open source renderers with various levels of capabilities. Interestingly, the creator of Leaflet now works for Mapbox (if my facts are correct and current).
- apendleton 5y ago
- unknown_error 5y agoI noticed that Mapbox Studio has a way of creating & exporting styles (kinda like stylesheets but for maps). Do you know if those styles can be imported into a libre renderer like Maplibre, or if a similar tool/ecosystem exists for creating & sharing open-source map styles? Like if I wanted all roads to be rainbow-colored and rivers to be green. In Mapbox Studio, the features all seem to be semantically tagged (e.g. this is a road of type X, a POI of type Y) and it makes styling a cinch. I know OSM has its own set of tags for features. Are these compatible (not sure if Mapbox Studio is using OSM data underneath)? Is there an established standard for this type of thing? (ps TY again for answering my other question so thoroughly)
- lukeqsee 5y agohttps://maputnik.github.io https://maputnik.github.io is similar to Mapbox Studio, but isn't going to give you all you mentioned. All vector tile sources use tags in various ways, so Maputnik (and the resulting styles) do as well. There isn't a standard tagging schema (and all MVT sources tend to differ slightly), but OSM's tagging is often influential on the resulting schema.
- unknown_error 5y agoThat's exactly what I was hoping for. Thank you again!
- mourner 5y agoThe exported styles are compatible (if you don't use newer features like terrain & fog) because Maplibre is nearly identical to GL JS v1.13, there were no rendering changes since the fork.
- twelvechairs 5y agoIm curious as to integration with DeckGL which seems to be the emerging standard for 3d maps and also for interactivity. Do you know if maplibre will work the same with it as mapboxgl does?
- lukeqsee 5y agoI'm not sure as to specifics (as I haven't tried this), but if DeckGL worked with 1.x Mapbox GL JS, it should just work with MapLibre, with a few potential minor adjustments (e.g., nomenclature). Can't promise it though.
- billygoat 5y agoI can verify this: I upgraded my Deck.gl project from MapBox to MapLibre recently, and it was a simple matter of renaming some imports. This works absolutely seamlessly. I'm using Vue instead of the React integration and that's also working without any issues.
- kylebarron 5y agoYes. deck.gl has two ways of interfacing with Mapbox GL, either where deck.gl is a layer on top of Mapbox GL (with a separate WebGL context) or by sharing the same WebGL context. Sharing the same WebGL context allows e.g. Mapbox's 3D buildings to "pop" above deck.gl or to put Mapbox's labels above deck.gl layers. Those docs are here [0]. Either way, the recommended way of connecting deck.gl with Mapbox is through React Map GL. Those docs describe how to use Maplibre GL here [1] and here [2]. [0]: https://deck.gl/docs/get-started/using-with-map#using-deckgl-with-mapbox-gl-js https://deck.gl/docs/get-started/using-with-map#using-deckgl... [1]: https://visgl.github.io/react-map-gl/docs/get-started/mapbox-tokens#display-maps-without-a-mapbox-token https://visgl.github.io/react-map-gl/docs/get-started/mapbox... [2]: https://visgl.github.io/react-map-gl/docs/get-started/get-started#using-with-a-mapbox-gl-fork https://visgl.github.io/react-map-gl/docs/get-started/get-st...
- kylebarron 5y ago> Either way, the recommended way of connecting deck.gl with Mapbox is through React Map GL. I should note this is only the recommended way when you're using React
- KingOfCoders 5y agoHey Luke, another great one from you :-)
- lukeqsee 5y agoHey :) Thanks!
- petre 5y agoWhat is the additional functionality? I couldn't find any document comparing MapLibre GL to MapBox GL JS 1.x. We are using MapTiler along with MapBox GL JS. It seems that MapLibre GL JS is our next logical upgrade step. For one it's great that you have a Leaflet plugin under your github org.
- DrBenCarson 5y agoForgive me if obvious—where are you pulling the underlying data from? Is the data itself OS licensed?
- codetrotter 5y agoOpenStreetMaps probably. Mapbox uses data from OSM among others when they create their tiles. https://docs.mapbox.com/help/getting-started/mapbox-data/#core-tilesets https://docs.mapbox.com/help/getting-started/mapbox-data/#co...
- Freak_NL 5y agoOpenStreetMap* (no s at the end).
- codetrotter 5y agoSorry :p It’s ironic because I had a friend once—well we shared kitchen and bathroom in the student housing, flatmates of sorts—that used to refer to Google Maps as “Google Map” and I never corrected her because I just found that adorable for whatever reason. Lol.
- unknown_error 5y agoGood thing it's all digital. Unfolding one big Google Map would take a looooooong time...
- tuukkah 5y agoOpenStreetMap in the form of OpenMapTiles: https://openmaptiles.org/ https://openmaptiles.org/
- z77dj3kl 5y agoDoesn't need to be OMT though. That's just the de facto free & open source tile generator from OSM data.
- kennydude 5y agoThe smoothness on the demo (at least on my machine) is very nice. Good work :)
- deleted 5y ago[deleted]
- westnordost 5y agoIf it is true that Apple will soon drop OpenGL and only support Metal: Will the SDK also work on iOS and Mac then, i.e. has Metal support?
- lukeqsee 5y agoThere is active development on a Metal-supporting version, yes! https://github.com/maplibre/maplibre-gl-native/tree/metal-support https://github.com/maplibre/maplibre-gl-native/tree/metal-su... is the branch and https://github.com/maplibre/maplibre-gl-native/issues?q=is%3Aissue+is%3Aopen+label%3Ametal https://github.com/maplibre/maplibre-gl-native/issues?q=is%3... are associated issues.
- sulewicz 5y agoYes, we have a beta build of the SDK with Metal support (https://github.com/maplibre/maplibre-gl-native/tree/metal-support https://github.com/maplibre/maplibre-gl-native/tree/metal-su..., https://github.com/maplibre/maplibre-gl-native/releases/tag/ios-v5.12.0-pre.1 https://github.com/maplibre/maplibre-gl-native/releases/tag/...). There are some minor issues we are addressing in the new release. Contributors and brave souls willing to try out the build are more than welcome :).
- ldng 5y agoSame acceleration bug with Firefox under Linux that makes me hates Mapbox GL with passion ... Makes quite a lot of website unbearably unusable ... Would you please provide a way for the user to deactivate that terrible idea ? Thanks.
- mourner 5y agoCan you please report this on our issue queue? From a cursory search, it doesn't look like anyone complained about scroll zoom on Firefox under Linux before. We'd be happy to fix this after hearing more details. https://github.com/mapbox/mapbox-gl-js/issues https://github.com/mapbox/mapbox-gl-js/issues
- ldng 5y agoI have nothing concrete to report, I slide 2cm, it works, settle down, slide 2 more and it goes nuts or not. Impredictable UX. But it's cool and flashy. I just avoid sites using mapbox-gl as much as I can...
- mourner 5y agoOr, you could help us fix the issue so that all Mapbox maps work great for you? Could you record a screencap of this issue and submit a GitHub ticket? We honestly have never seen anything like this ever reported.
- sahkopoyta 5y agocare to elobrate a bit?
- deleted 5y ago[deleted]
- andrewljohnson 5y agoThis needs really solid Metal support or it won't be adopted on mobile.
- arsome 5y agoLast I checked there's no WebMetal.
- RandallBrown 5y agoDoes there need to be? https://github.com/maplibre/maplibre-gl-native https://github.com/maplibre/maplibre-gl-native
- lukeqsee 5y ago(Copied from another thread) There is active development on a Metal-supporting version. https://github.com/maplibre/maplibre-gl-native/tree/metal-su https://github.com/maplibre/maplibre-gl-native/tree/metal-su... is the branch and https://github.com/maplibre/maplibre-gl-native/issues?q=is%3 https://github.com/maplibre/maplibre-gl-native/issues?q=is%3... are associated issues.
- jeffbee 5y agoThis is going to be a good test of my rule that any project with "libre" in the name -- except, as my astute colleague pointed out, libreadline -- is doomed to failure.
- rapsey 5y agoLibreoffice is the main project now when they left openoffice.
- sneak 5y agoLibreoffice + syncthing was my recent attempt at replacing Google Drive/Docs. The latest mac version of Libreoffice is nearly unusably laggy even on brand new fast hardware with lots of ram, and it looks like garbage to boot.
- jeffbee 5y agoUsing LibreOffice is like being constantly insulted and abused by its authors. I think it is the outstanding example of "libre == junk".
- blendergeek 5y agoUmm. What? Insulted? Abused? What are you talking about?
- Talanes 5y agoCalibre seems to be doing fine.
- derekja 5y agoI don’t see any support for alternate projections. For my raster-based dataset (satellite data) of polar regions I don’t see any benefit over my current openlayers approach. Looks great for vector-based 4326/3857 projected data, though! Please let me know if I’ve overlooked projection support?
- ixfo 5y agoThis is definitely something I'd love to see. We have a lot of data in EPSG:27700 and having to reproject everything to 3857 to display to users is A) wrong and B) seriously messy and intensive for the backend servers, especially with raster tiles...