Skip to content

Marker Image doesn't match its hitbox after updating the SDK (3.3.0) #185

@FabioMartignoni89

Description

@FabioMartignoni89

Hi,
After updating the SDK (3.3.0), when I add an icon by specifying the anchor, the hitbox triggered on the MCIconLayerCallbackInterface is now vertically inverted, so it only works correctly if the anchor is set to the center of the icon.

For example, given the following marker, with the anchor set to the bottom center of the icon, the hitbox area is now below the icon.

...
let anchor = MCVec2F(x: 0.5, y: 1)
let icon = MCIconFactory.createIcon(withAnchor: id, coordinate: location, texture: texture, iconSize: iconSize, scale: MCIconType.INVARIANT, blendMode: MCBlendMode.NORMAL, iconAnchor: anchor)
Image

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