mapview for shiny
问题 I create an interactive map using mapView the mapview() function works fine with my gridded data ( SpatialPixelsDataFrame ): Code: library(sp) library(ggplot2) library(gstat) library(rgdal) library(mapview) library(RMySQL) con <- dbConnect(MySQL(), user="root", password="", host="127.0.0.1", dbname="rstudio") data<-dbReadTable(con,"data") on.exit(dbDisconnect(con)) data_test <- data data_test$x <- data$long data_test$y <- data$lat coordinates(data_test) = ~x + y x.range <- as.numeric(c(-5.99,