MapCompose

A fast, memory efficient Jetpack Compose library to display tiled maps, with support for markers, paths, and rotation.

APACHE-2.0 License

Stars
207

Bot releases are hidden (Show)

MapCompose - 2.5.0

Published by p-lr over 1 year ago

  • Update Compose BOM to 2023.03.00, and Kotlin 1.8.10. The application code needs to be updated as well.
  • New overload for centerOnMarker api:
suspend fun MapState.centerOnMarker(
    id: String,
    destScale: Float,
    destAngle: AngleDegree,
    animationSpec: AnimationSpec<Float> = SpringSpec(stiffness = Spring.StiffnessLow)
)

This allows for scaling, rotating, and scrolling the map at the same time while centering on a marker.

  • The setVisibleAreaPadding api with Dp inputs is no longer a @Composable function. The "VisibleAreaPadding" demo is updated.
MapCompose - 2.4.1

Published by p-lr over 1 year ago

  • Update Kotlin 1.8.0
  • Use Compose BOM 2023.01
  • Compose compiler 1.4.0
  • clipShape parameter of addMarker api is made no-op and deprecated.
MapCompose - 2.4.0

Published by p-lr almost 2 years ago

  • Behavior change: when fully zoomed out (especially when using MinimumScaleMode.Fit), it's possible to scroll the map freely within the screen bounds. This new behavior ensures a consistent scrolling experience when scrolling in and out.
  • Proper support for setScrollOffsetRatio api.
  • Performance improvements. The internals have changed: the layout no longer applies padding to position its children.
MapCompose - 2.3.1

Published by p-lr almost 2 years ago

Fix an issue with release build of apps using MapCompose

MapCompose - 2.3.0

Published by p-lr almost 2 years ago

Update Kotlin 1.7.20 and Compose 1.3.0

MapCompose - 2.2.5

Published by p-lr about 2 years ago

Slight improvement of zoom fling gesture, which now better reflects intent based on motion intensity

MapCompose - 2.2.4

Published by p-lr about 2 years ago

  • Fix double-tap to zoom gesture, which could misbehave under some circumstances
  • Enhance zoom fling gesture detection
MapCompose - 2.2.3

Published by p-lr about 2 years ago

  • Add fling to double tap to zoom gesture (#77)
  • Update Kotlin 1.7.10 and Compose compiler 1.3.0
MapCompose - 2.2.2

Published by p-lr about 2 years ago

  • Scroll fling is now consistent across devices with various screen densities
  • Fix #76 : Two fingers tap is now better detected
  • Add an API to customize zoom fling at initialisation
MapCompose - 2.2.1

Published by p-lr about 2 years ago

This version has important gesture changes.

  • Add support for zoom fling. New apis enableFlingZoom and disableFlingZoom where added to respectively enable and disable this new feature
  • Add support for two-fingers tap to zoom out
  • Fix a long standing issue which could cause a fling after a pinch to zoom gesture
MapCompose - 2.2.0

Published by p-lr about 2 years ago

  • New gesture: One finger zooming by double tapping but not releasing on the second tap, and then sliding the finger up to zoom out, or down to zoom in.
  • Behavior change: long-press isn't detected anymore after the second tap, and a double-tap can no-longer timeout.
  • Update Compose libs 1.2.1
Package Rankings
Top 31.69% on Repo1.maven.org
Badges
Extracted from project README
Maven Central GitHub License
Related Projects