Providing hints for GoogleMaps JavaScript API

Is there a way I can enable IDEA to show hints and perform auto-complete, etc. for Google Maps API classes and functions?

In my apps I load Google Maps in one of the following three ways:

1- Using jQuery's getScript: $.getScript("${googleMapsKey}");
2- Using a script element:

<script src=""

3- Using Google's Common Loader:

<script type="text/javascript" src=""></script>
google.load("maps","2", {"other_params":"client=gme-yourclientid&sensor=true_or_false"});

However IDEA does not recognize Google Maps API classes and functions, no matter in which way I load it.

This also holds true for any non-local JavaScript files I load from a content distribution network. For example, if I load jQuery from Google's CDN:

google.load("jquery", "1.4.2");

Google does not provide any hints for the jQuery API.

Is there a way to force IDEA to recognize JavaScript libraries in any of the cases mentioned above?

Please sign in to leave a comment.