Skip to content

Error 401 when running the example #10

@SimonCoulombe

Description

@SimonCoulombe
library(sf)
library(ggplot2)
library(snapbox)

area <- st_bbox(
  c(xmin = 147, ymin = -43, xmax = 147.7, ymax = -42.65),
  crs = 4326
)

ggplot() +
  layer_mapbox(area, scale_ratio = 0.5)

Error in get_map_image(bbox = mercator_bbox, map_style = map_style, width = width,  : 
  The remote server returned status code 401 in response to the image request

All packages are up to date. Running on kubuntu 20.04

edit: guess it's an issue of setting up a mapbox token, just not sure where to do it.

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