I am very happy to see the ability to edit external libraries and dependencies after the latest update.
I am having an issue getting the following to load:
https://maps.googleapis.com/maps/api/...
I have gone into App settings and added it as an external lib that is not global with a shim enabled and a dependency on gmaps.
name: google_maps_geometry
url: https://maps.googleapis.com/maps/api/...
type: External lib
Enabled: Yes
global: no
shim: yes
shim export: [BLANK]
shim init code: [BLANK]
deps: gmaps
When I then try to call a function in this library:
codevar distance = google.maps.geometry.spherical.computeDistanceBetween(map.center,$scope.map.lastCenter );/code
I am getting this error:
codeCannot read property 'spherical' of undefined/code
I can console.log(google.maps) and everything is there but the geometry library.
Any idea why it is not loading the "geometry" functions? I assume it is something with my external lib setup.