This entry is old and may contain information that is not up-to-date.

Preventing black screens and unreachable locations

Due to the recent google update, black screen and broken locations are occurring too often and it's very annoying.
There's actually a way to prevent this using google.maps.StreetViewService() => getPanorama.
This service doesn't require any key so you won't be charged for using it. I use this service to repair broken locations on custom maps. I included in a loop making thousand of requests per second and i didn't have any issue, so i assume you won't have any problem using it at a large scale.
Before loading a random location you could check if the location is found by the API, if not, the location is temporarily unreachable or broken, then you can load a new one.

I hope you could implement this.

Add your comment or create a new post

Your name and post can be seen by everyone.Your e-mail will never be shown publicly.