Show Google Maps as a card

Using the generic camera platform you can present any image on the internet as a camera. Starting release 0.27 these URLs can also be based on a template. This example uses this functionality to point a generic camera at the Google Maps static image API and pass in the location of a device.

As of June 2018, Google has changed the API limits for static maps. You now need to have a Google Maps API key. Instructions for registering a key can be found here. Replace YOUR_API_KEY with the key you registered.

It also leverages the limit_refetch_to_url_change option to ensure that we do not make a lot of requests to the Google Maps API.