A fast, memory efficient Jetpack Compose library to display tiled maps, with support for markers, paths, and rotation.
APACHE-2.0 License
Bot releases are visible (Hide)
fillColor
parameter of addPath
api. The path then looks like a filled polygon. However, click handling is unchanged. So even if fillColor
is set, click gestures are only handled along the path.Published by p-lr 8 months ago
Published by p-lr 9 months ago
reloadTiles
apiPublished by p-lr 10 months ago
onMarkerLongPress
and onPathLongPress
onPathClickTraversal
api is renamed onPathHitTraversal
which takes an additional HitType
parameter. Usages are straightforward to fix.Published by p-lr 10 months ago
Published by p-lr 10 months ago
Published by p-lr 11 months ago
This is a bug fix release.
Published by p-lr 11 months ago
Published by p-lr 12 months ago
MapState.idleStateFlow()
Published by p-lr 12 months ago
Published by p-lr about 1 year ago
Published by p-lr about 1 year ago
Published by p-lr about 1 year ago
Published by p-lr about 1 year ago
updatePath
api: the zIndex
parameter is null
by defaultPublished by p-lr about 1 year ago
zIndex
property for pathsisPathWithinRange
path api. Useful to check whether or not a point is a near a path.allPaths
helper api to loop over all pathsPublished by p-lr about 1 year ago
updatePath
with different PathData
instancesPublished by p-lr over 1 year ago
addPath
and updatePath
apis accept a new clickable
parameter.onPathClick
api works the same way as onMarkerClick
:fun MapState.onPathClick(cb: (id: String, x: Double, y: Double) -> Unit)
On path click, the registered callback provides the id of the path, and the relative coordinates of the clicked point on the path.
onPathClick
api.Published by p-lr over 1 year ago
2.7.1 only slightly changes path join (now having rounded corners).
2.7.0 release notes are important and are reported below:
This feature release is mainly focused on path apis.
mapState.addPath("pathId", width = 12.dp) { .. }
The path, which was 12px wide in previous versions of the library, will now appear much thicker than it should be.
So after updating, you should set the desired width in dp. The default is 4.dp.
simplify
parameter for addPath
and updatePath
apis.cap
parameter for path apis allows for customizing path start and end cap. The default is Cap.Round
.addPath
, taking a builder block with a PathDataBuilder
as receiver. This simplifies path creation. The demo is updated.Published by p-lr over 1 year ago
This feature release is mainly focused on path apis.
mapState.addPath("pathId", width = 12.dp) { .. }
The path, which was 12px wide in previous versions of the library, will now appear much thicker than it should be.
So after updating, you should set the desired width in dp. The default is 4.dp.
simplify
parameter for addPath
and updatePath
apis.cap
parameter for path apis allows for customizing path start and end cap. The default is Cap.Round
.addPath
, taking a builder block with a PathDataBuilder
as receiver. This simplifies path creation. The demo is updated.Published by p-lr over 1 year ago
onMarkerClick
callback is no longer invoked for clusterskotlinx.coroutines
to 1.7.0api
.