When using ng-map, I get this error after I click a custom button that I've implemented to get the user's current location:
InvalidValueError: setCenter: not a LatLng or LatLngLiteral: not an Object
I'm not doing 'setCenter' explicitly, and the error only occurs after I do a check on the user's current location using:
navigator.geolocation.getCurrentPosition
I have other custom buttons, and clicking them doesn't cause the error - the issue is specifically related to the 'current location' button somehow. What could be causing this? I know that this can be called if a null or incorrectly formed value is passed for lat and long, but I'm not doing anything to explicitly center the map on a specified lat and long.