Skip to content

How to set Marker anchors? #26

@squashmode

Description

@squashmode

I'm using markers on my flutter_map, using the built-in Icon class as the child, and they are drawn with the anchor at the top-left corner of the icon. This is different than the FlutterLogo() that is used in the examples that has its anchor at the middle of the logo (and therefore is centered on the location of the marker). I've played with Container alignment, Align class, etc, but cannot seem to change the anchor location of the drawn marker.

Following the leaflet.js implementation, it would be great to be able to change the anchor of the drawn marker. See, e.g., http://leafletjs.com/examples/custom-icons/. for a good example.

Can this currently be done? If so, how, and if not, do you plan to add support for that?

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