Question

I have a list of locations and values, and i am trying to add these locations to a map.
To do this I am using the get_map function from the ggmap package to download maps from google.
This is my code:

ggmap(get_map(location = c(left = 35.13, bottom = 31.72, right = 35.25 , top = 31.84)))

This is what i get: enter image description here

Was it helpful?

Solution

I think this is related to: https://stackoverflow.com/questions/21411178/google-static-terrain-maps-with-black-rectangles and seems to be an issue with the Google Static Maps api which ggmaps uses to generate these maps. I'm guessing the layer data is unavailable for some reason and it's defaulting to black.

A bug report has been started by the poster of that question which you can add your example to.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top