Skip to content

module 'gmaps' has no attribute 'symbol' #363

@WillMcCall

Description

@WillMcCall

I was able to run this same code using a heatmap layer instead of using a symbol but for some reason when I try to run it using a symbol it returns "module 'gmaps' has no attribute 'symbol'". I'm running this on a Jupyter Notebook and I have the latest version of gmaps which I installed using conda. I'm not sure what I've done wrong exactly (sorry if this is silly, I'm trying to learn coding for my new job).

 import gmaps
  
  gmaps.configure(api_key="***")
  
  locations = [(42.5, 88.3), (40.3, 90.2)]
  
  fig = gmaps.figure()
  marker_layer = gmaps.symbol(
      locations, fill_color="purple", stroke_color="purple",scale=5
  )
  fig.add_layer(marker_layer)
  fig

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions