Skip to content

Releases: HomeBay/re-mapbox

v0.6.0

23 Dec 04:51
Compare
Choose a tag to compare

Now using v.1.2.0 of the mapbox-gl-draw package, which was the release where the maintainers converted it to ES6. Because of this, the package needed to be imported by this project in an ES6-friendly way (e.g. use the "default" export from the package).

v0.5.0

26 Oct 04:20
Compare
Choose a tag to compare

🚨 Breaking

  • Mapbox.GL.Map.source has been merged with Mapbox.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 to Mapbox.GL.Map.Event.t. The type is no longer just an alias for Js.Dict.t(Js.Json.t) but there are helpers to treat it as such.

✨ New

  • Map event helper functions (like onClick and onLayerMouseEnter) 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 layer on events and off handlers
  • Different types of event produce different payloads, so you can safely access fields like point and lngLat and Mouse and Touch events

v0.4.0

29 May 22:16
Compare
Choose a tag to compare

🚨 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

Release v0.3.0 with navigation controls

18 Mar 20:50
Compare
Choose a tag to compare

Slowly filling in more functionality and renaming things for consistency and to help avoid mistakes.

🚨 Breaking changes

  • Map.create and Map.createExn are now Map.make and Map.makeExn
  • Map.Options.LogoPosition is now Map.Options.Corner and it's used to control the placement of Control elements as well
  • The duration field is now durationMs to make the units more clear in AnimationOptions (but the compiled output is unchanged)

✨ New Features

  • Create NavigationControl components and add them to the map

Release 0.2.0

25 Jan 23:21
Compare
Choose a tag to compare
  • 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

v0.1.1

25 Jun 19:14
Compare
Choose a tag to compare

Add map##resize() method to forcefully redraw the map.

v0.1.0

22 Jun 20:53
d78f1da
Compare
Choose a tag to compare

Basic functionality allows for creating a Map and placing Markers on it.