lib-open-swiss-maps-sdk
lib-open-swiss-maps-sdk copied to clipboard
Marker Image doesn't match its hitbox after updating the SDK (3.3.0)
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)