Skip to content

Implement lat/lon data-referenced annotations on geo and mapbox subplots #3834

Open
@RichardNeill

Description

@RichardNeill

If annotating a point in a scattergeo plot, we should be able to refer to the co-ordinate of the point we must refer to in terms of "lat,lon". In fact, the annotation is required to be "x,y".
This is quite problematic: even when using a conversion factor as below, because when the map is zoomed, the annotations don't remain attached to the plot. We should be able to annotate "the lat-lon point that is associated with the marker", rather than "the x-y point on the screen".

annotation = {
text: "my_annotation",
x: (data.points[i].lon + 180)/360,
y: (data.points[i].lat/200) + 0.5 //yes, 200 not 180.
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3backlogfeaturesomething new

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions