Skip to content

Unable to change the color of symbols like "triangle" in scattermap trace #5153

Description

@satheesh22g

Description:

When using symbols like "triangle" (or other shapes) in a scattermap trace, I am unable to change the color of the symbol. Despite setting the marker color, the symbol color remains unchanged.

Steps to Reproduce:

  1. Create a scattermap trace with a symbol, such as a triangle.
  2. Set the marker parameter with a color.
  3. Notice that the symbol (triangle) color does not change as expected.

Expected Behavior:

The color of the symbol (e.g., triangle, square) should change according to the marker.color settings.

Actual Behavior:

The symbol does not change color when the marker.color is set, even though it should.

Code Snippet:

import plotly.graph_objs as go

fig = go.Figure(go.Scattermap(
    lat=[40.748817],
    lon=[-73.985428],
    mode='markers',
    marker=dict(size=14, symbol='triangle', color='red'),
    text="Sample Point"
))

fig.update_layout(
    map_style="open-street-map",
    map_center={"lat": 40.748817, "lon": -73.985428},
    map_zoom=10
)

fig.show()
Image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3backlogbugsomething broken

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions