You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Add centerOffset and calloutOffset properties to MGLAnnotation #2151
We will hopefully be passing bitmap imagery across the wire instead of relying on pre-made sprite sheets, so this point is moot. At that point, since you are supplying imagery at runtime (which might be created on-the-fly anyway), passing things like calloutOffset and centerOffset is much more natural.
This should probably happen in conjunction with fixing #1504.
In #3135 for OS X, I’ve eschewed the mbgl::Map methods in favor of looking up the annotation images’ alignment rects directly (since every NSImage has an alignment rect). Eventually, I’d like to reverse it so that MGLAnnotationImage keeps an anchorPoint and calloutEdge, by analogy with -[NSCursor hotspot].
By way of an update, #3261 introduced support for alignment insets in annotation images, so the “center offset” effect can be achieved by padding the annotation image and insetting it to the visible portion.
@BFTE We're quite happy to help, but in general please create a new issue or post on one that relates to the bug/problem as closely as you can manage. We love fresh bug reports. 😀
Activity
incanus commentedon Aug 24, 2015
We can maybe leverage the GL style spec's
translateproperty here.1ec5 commentedon Nov 30, 2015
In #3135 for OS X, I’ve eschewed the mbgl::Map methods in favor of looking up the annotation images’ alignment rects directly (since every NSImage has an alignment rect). Eventually, I’d like to reverse it so that MGLAnnotationImage keeps an
anchorPointandcalloutEdge, by analogy with-[NSCursor hotspot].RomainQuidet commentedon Dec 2, 2015
Hi,
I'd like to work on this feature.
RomainQuidet commentedon Dec 7, 2015
center offset for annotations is done, need to offset the touch event and the callout too.
RomainQuidet commentedon Dec 8, 2015
checkout pull request #3220 for this to work (core + iOS code)
1ec5 commentedon Jan 14, 2016
By way of an update, #3261 introduced support for alignment insets in annotation images, so the “center offset” effect can be achieved by padding the annotation image and insetting it to the visible portion.
[MV-81] re enabling markers offset while waiting for official solutio…
friedbunny commentedon Feb 10, 2016
@BFTE We're quite happy to help, but in general please create a new issue or post on one that relates to the bug/problem as closely as you can manage. We love fresh bug reports. 😀
stale commentedon Nov 20, 2018
This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.