yendrisrogelio
Hi all,
I’ve just released the first version of MaplibreX, which exposes MapLibre GL JS as declarative LiveView components. The map follows your assigns, and map interactions come back as ordinary handle_event/3 callbacks.
A few things that might be of interest:
- 32 components — layers, sources, controls, markers, popups, 3D terrain,
deck.gl, and custom WebGL layers with your own GLSL shaders. - Map commands are Phoenix.LiveView.JS structs. fly_to, fit_bounds
and friends run entirely on the client, no server round-trip. - maplibre-gl is a peer dependency, not bundled. The published bundle is
65 KB (12 KB gzipped), and an app that already uses MapLibre never ends up
with two copies of it on the page. - deck.gl is imported dynamically on first use, so pages without it pay
nothing for the ~600 KB. - map:moved is debounced client-side, so panning doesn’t flood the socket.
Requires Elixir 1.15+ and LiveView 1.0+ (tested through 1.2).
Known limitation in 0.1.0: <.deckgl_layer> needs maplibre-gl v5.
@deck.gl/mapbox still reads the internal map.transform that v6 removed, and no published version has stopped — including the 9.4 alphas. Every other component works on both majors, and the library raises a message naming the constraint instead of failing somewhere inside deck.gl.
- Hex: maplibrex | Hex
- Docs: MaplibreX v0.1.0 — Documentation
- Demo app, nine pages each a single LiveView:
GitHub - CountlinkX-Solutions/maplibrex_demo · GitHub - Source:
It’s a 0.1.0 and the component API will likely move as people actually use
it, so feedback is very welcome — particularly on the shape of the API.
Trending in Announcing
Other Trending Topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixirconf-us
- #ai
- #blog-post
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #hex
- #security
- #metaprogramming










Most Liked- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
alvinkatojr
Once again, the members of this community have blown me away. You guys are on a rampage!
Great project, @yendrisrogelio! Mapping is something that has been neglected or under the radar, so this is very much needed. I can’t wait to dive into the source and put this to good use!
Thanks for the good work!
yendrisrogelio
Thanks, @alvinkatojr! Really appreciate the kind words.
Definitely let me know how it goes once you test it out or if you run into any rough edges. Feedback and PRs/issues are more than welcome!
Last Post!
alvinkatojr
Will definitely do so. Thanks again!