Question: I sat down to work on my google maps RoR map and it suddendly stopped working today. Both my local repository and the heroku "production" app are not displaying google maps. Both are giving me error in chrome console : 

> 
> InvalidValueError: setCenter: not a LatLng or LatLngLiteral with >finite coordinates: in property lat: NaN is not an accepted value
> 
> 
> 

I've looked around but most responses seem to be connected to the malformed LatLong data while specifying center. I am doing no such thing. Relevant code snippet:

```
function init(){

      handler = Gmaps.build('Google')

      var map = handler.buildMap(
        { 
          provider: {
                zoom: 4,
                maxZoom: 15,
                minZoom: 11,
                mapTypeId: google.maps.MapTypeId.ROADMAP,
                mapTypeControl: false
            },
            internal: {id: 'map'}
            }, function(){
              handler.getMap().addListener( 'click', function(e){
              console.log('Click!')
              laceMarkerAndPanTo(e.latLng, handler.getMap());
      })
(...)

```

I'd be very thankful for either solution or workaround

Answer: 
I think this was (is) an issue with a google map update. I was experiencing the same issue yesterday (25/7/19) but it seems ok now.
in my case its because variable Latitude and Longitude is undefined when using latLng to panTo the map.