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
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".
The text was updated successfully, but these errors were encountered:
etpinard
changed the title
Scattergeo annotations don't use lat/lon
Implement lat/lon data-referenced annotations on geo and mapbox subplots
May 6, 2019
Hi - we are currently trying to tidy up Plotly's public repositories to help us focus our efforts on things that will help users most. Since this issue has been sitting for several years, I'm going to close it. If it's still a concern, we'd be grateful if you could open a new issue (with a short reproducible example if appropriate) so that we can add it to our backlog. Thanks for your help - @gvwilson
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.
}
The text was updated successfully, but these errors were encountered: