Hi i'm having a problem with inclusion of javascripts specifically Google maps API.
I have a page for example that includes the library:
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&libraries=places,visualization"></script>
//some page contents
$this->widget('MyWidgetThatIncludesGoogleAPI',array(
..
));
The problem arises when I call my widget which also includes google maps api, and even if I don't initially include the maps api in this page. Calling the widget twice does the same.
I get an error saying that Google Maps API has been loaded multiple times, is there a programmatic way to handle duplicate inclusion of js?