-
Notifications
You must be signed in to change notification settings - Fork 152
Description
Hi, I have a shiny app which is using googleVis package in R. I am using gvisMap to plot some latlong. The app runs fine on my local machine without any issues but he same app loads the MAP for some seconds and than dis-appears citing a java script error: Google Maps API error: MissingKeyMapError.
I have gone through the googleVis documentation and there is no way to provide an API key. Can someone help me. Here is the code in R that is generating the the map output.
output$chart1 <- renderGvis({
if(input$state=="All"){
gvisMap(cplex_user_state, "latlong" , "num_users",
options=list(showTip=TRUE,
showLine=TRUE,
enableScrollWheel=TRUE,
mapType='terrain',
useMapTypeControl=TRUE,width=600,height=400))
} else {
gvisMap(filter(cplex_user_state,state==input$state), "latlong" , "num_users",
options=list(showTip=TRUE,
showLine=TRUE,
enableScrollWheel=TRUE,
mapType='terrain',
useMapTypeControl=TRUE,width=600,height=400))
}
})