I get the same error reproducibly.
I think this is due to the zoom=... specification. This argument is interpreted differently depending on the source . When you specify source="osm" , the call will be redirected to get_openstreetmap(...) . According to the documentation for this function:
... if you get an error when loading openstreetmap, an error is due to an incorrect scale specification ...
The zoom parameter affects the specification of the scale if scale="auto" (default). So basically, if zoom too large, the call will throw an error. I get errors with an increase> 13 for the Forbidden City, but this works:
qmap("Forbidden city",zoom=13, source="osm")
jlhoward
source share