MapCompose icon indicating copy to clipboard operation
MapCompose copied to clipboard

Expose onDoubleClick() callback

Open mkmckenna opened this issue 5 months ago • 3 comments

This exposes an onDoubleClick() callback function allowing the user to override the default functionality of MapCompose.

This is a proposed solution to #149

I have included a small demo example, however this can be removed before merging.

mkmckenna avatar Jun 25 '26 08:06 mkmckenna

Thanks but I had a different idea in mind. Something like what is done for ClusterClickBehavior. i.e the ability to set a custom callback but also retain the default behavior, optionally.

p-lr avatar Jun 25 '26 16:06 p-lr

To be more precise, with having this api:

fun MapState.onDoubleTap(withDefaultBehavior: Boolean, doubleTapCb: (x: Double, y: Double) -> Unit) {
    this.doubleTapCb = doubleTapCb
}

p-lr avatar Jun 25 '26 16:06 p-lr

No problem. I'll keep an eye on the issue.

mkmckenna avatar Jun 25 '26 17:06 mkmckenna