angular-google-maps icon indicating copy to clipboard operation
angular-google-maps copied to clipboard

Recently App is getting error in about LatLngLiteral

Open Nick-t-go opened this issue 8 years ago • 1 comments

My app in dev was working fine, didn't really change anything pertaining to the map and recently started getting this error:

js?libraries=geometry:30 InvalidValueError: setCenter: not a LatLng or LatLngLiteral: in property lat: not a number

I am using the geometry library so i was wondering if there was an update in that library that is now causing issues with the ui-gmap-google-map directive. It is showing the error with no markers loaded on the map and the second the map appears. Other than this error the map and everything is functioning fine.

Has anyone had this issue pop up recently as well? I know the error is saying that it is recieving a value that isn't a number only thing is I spent the time making sure all the variables were infact numbers. So I have no clue what the cause is. Any advice on tracking down the root of this?

In the console the error just links to angular, gmaps geometry and google angular like so: _.bb @ js?libraries=geometry:30 _.Eb @ js?libraries=geometry:34 (anonymous function) @ js?libraries=geometry:44 _.m.setValues @ js?libraries=geometry:86 _.m.setValues @ js?libraries=geometry:86 _.Wf @ js?libraries=geometry:75 (anonymous function) @ angular-google-maps.js:6514 processQueue @ angular.js:15054 (anonymous function) @ angular.js:15070 Scope.$eval @ angular.js:16321 Scope.$digest @ angular.js:16139 Scope.$apply @ angular.js:16429 done @ angular.js:10823 completeRequest @ angular.js:11021 requestLoaded @ angular.js:10962

Not much help since geometry library is minified. Anyway, anyone got anything on this one or some advice on how to track it down?

Nick-t-go avatar Dec 11 '15 03:12 Nick-t-go

Did you ever figure this out? I'm seeing this error as well. I'm only using the places library.

uberspeck avatar Sep 01 '16 15:09 uberspeck