Skip to content
Prev 24112 / 29559 Next

resolution of openmap() raster layers

I get an error at installing from github on MacOSX10.9.5 that I have reported
to https://github.com/environmentalinformatics-marburg/mapview/issues
and it is being dealt there.

With the cran version mapview_1.0.0, I have problems to select the
type of map, I always get the OSM one. I've tried both
nica <- getData("GADM", country="NIC", level=0)
spplot(mapView(nica["ISO"]),colorkey=FALSE,
       map.type="Thunderforest.Landscape")
as in your example and
spplot(mapView(nica["ISO"],map.types="Thunderforest.Landscape"),
     colorkey=FALSE)

Note that mapView() selects the correct map:
mapView(nica,map.types="Thunderforest.Landscape" )

Also, it seems to me that the mapView() display is always projected
(perhaps Pseudo Mercator epsg:3857 ?) even if the spatial object used
in mapView() has another CRS.
In other words
mapView(nica)
is displayed on Pseudo Mercator even if
projection(nica)
[1] "+proj=longlat +datum=WGS84 +no_defs +ellps=WGS84 +towgs84=0,0,0"

Am I wrong?

Finally, is there a way of including an scale bar? Actually, this
option would be interesting even for interactive display.

Thanks
Agus

On Fri, Feb 26, 2016 at 3:32 PM, Chris Reudenbach
<reudenbach at uni-marburg.de> wrote: