Skip to content
This repository has been archived by the owner on Nov 30, 2018. It is now read-only.
William Rummler edited this page Jul 20, 2015 · 6 revisions

Frequently Asked Questions

Please also check the website's FAQ list.

If you feel like anything's missing or could be clarified, or if you'd like to add a new Q&A to the FAQ list, please contribute!

Why am I getting an error when evaluating control.getGMap()? Why is control.getGMap undefined?

All control objects are guaranteed to be augmented with their control methods only when the uiGmapIsReady service's promise has resolved.

Note that the uiGmapGoogleMapApi service/promise does not signal that control objects have been augmented with their control methods. Its purpose is to signal that the Google Maps JS API has been loaded (i.e. that the google.maps global object is available).

Please see the API reference for details on uiGmapIsReady.

Why doesn't my ui-gmap-window InfoWindow with a nested template show all of its content?

When you provide a window directive with a nested template, it currently (AOTW) uses only the first child element from that nested template. See the showWindow method in WindowChildModel, as well as issues #1340 and #1310. This behavior may eventually change so that all child elements are used by the directive.

For now, if you have more than one top-level element in your nested template, place all those elements inside a single div and make that div the only child of your ui-gmap-window directive element.

Clone this wiki locally