Skip to content

Mini map click zoom in #536

@KirilCycle

Description

@KirilCycle

Feature Overview

Is there a way to catch a click on the MiniMap component and then, for the TransformComponent, move the zoom to the corresponding position where the click was made on the minimap?

Custom Approach

Currently, to achieve this behavior, I convert the x and y of the click on the MiniMap and then set an invisible div with position absolute at the corresponding x and y on the main map. Then I simply use zoomToElement with the div to zoom into the needed area.

Library Support

Is this functionality already implemented in the library? I did not find this functionality. If it is implemented, can somebody point to it? Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions