Skip to content

read_osm #41

@andrewmaclachlan

Description

@andrewmaclachlan

Hi there, i am having issues with the argument type="osm". Other types like "esri" work. Sorry if this is something easy, but i can't work out what is going on.

library(tmap)
library(tmaptools)
library(sf)
#> Linking to GEOS 3.6.1, GDAL 2.2.3, PROJ 4.9.3
tmap_mode("plot")
#> tmap mode set to plotting
data(NLD_muni)
NLD_bb <- bb(st_transform(NLD_muni, 4326))
test <- read_osm(NLD_bb, type = "osm")
tm_shape(test) + tm_rgb()

Gives error: Error in osmtile(x%%nX, y, zoom, type) : could not obtain tile: 130 82 8

Changing type to 'esri' works!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions