Closed Derpalus closed 6 years ago
this is actually something i've thought about and have not implemented, and probably won't for v2, but probably will for v3.
honestly, i'd suggest just forking and hacking the core for now, and modifying MarkerLayout.onLayout
... v2 isn't going to get a ton of updates anymore, as my efforts will be almost exclusively on v3, so you really don't lose much by forking.
that said, if you want to add it, it should be fairly simple (check out MarkerLayout
) and i'd probably accept a well-formatted and reasonably sane PR.
this is in the latest release
Hello,
I wonder if there is a way to use absolue anchor positions for markers?
My problem is that I have a marker which is a nine-patch so it changes size. And this works fine with the relative positions as long as the nine-patch changes size symmetrically, but it just so happens that mine doesn't. In my case the ancor point lies 32px in from the left side of the marker, but the marker only changes size in the right half.
Currently I'm solving this by:
but this does not give exactly correct sizes (probably because it's a nine-patch that hasn't been inflated correctly).