Releases: HomeBay/re-mapbox
Releases · HomeBay/re-mapbox
v0.6.0
v0.5.0
🚨 Breaking
Mapbox.GL.Map.source
has been merged withMapbox.GL.Style.Source.t
. You can still access all the same fields via functions and values there (instead of##
notation)Mapbox.GL.Map.eventData
has been moved toMapbox.GL.Map.Event.t
. The type is no longer just an alias forJs.Dict.t(Js.Json.t)
but there are helpers to treat it as such.
✨ New
- Map event helper functions (like
onClick
andonLayerMouseEnter
) are now zero-cost bindings - Way more of those are now included -- all of the map-specific
on
events -- but there's still some work left to be done for layeron
events andoff
handlers - Different types of event produce different payloads, so you can safely access fields like
point
andlngLat
and Mouse and Touch events
v0.4.0
🚨 Breaking changes
Mapbox.GL.Marker
now uses abstract types for its bindings, rather than Js.t objects. This makes it consistent with all of the other types- The GeoJSON interop has been moved out of here and into a separate repository with more complete tests, more accurate encoding, and decoding built in
✨ New features
- Support for the draw plugin is now included
Release v0.3.0 with navigation controls
Slowly filling in more functionality and renaming things for consistency and to help avoid mistakes.
🚨 Breaking changes
Map.create
andMap.createExn
are nowMap.make
andMap.makeExn
Map.Options.LogoPosition
is nowMap.Options.Corner
and it's used to control the placement ofControl
elements as well- The
duration
field is nowdurationMs
to make the units more clear inAnimationOptions
(but the compiled output is unchanged)
✨ New Features
- Create NavigationControl components and add them to the map
Release 0.2.0
- Bump underlying Mapbox version to
0.52
- Remove runtime cost of converting map config to the format Mapbox wants
- Add several new config properties, including the ability to set initial map bounds