Loading the Secure API via Google Loader

99 views
Skip to first unread message

Doug

unread,
Apr 9, 2011, 5:33:14 PM4/9/11
to google-map...@googlegroups.com

Good Afternoon All,

Can anyone tell me what the parm(s) are to load the secure version of the Google Maps API via Google Loader?  Today, to load the non-secure version I call “google.load('maps', '3', { callback: GoMap, other_params:'sensor=false&language=en'});”  I would like to update my code to load the secure version of the API now that it is available, but I am not sure how to update my code to do that.  I checked the doc for the Google Loader API, but it states that it only support the 2.x version of the Maps API.  (since the API is loading the v3 library I would assume the doc us just needs to be updated.)

 

Thanks,
Doug  

Chris Broadfoot

unread,
Apr 10, 2011, 10:36:01 PM4/10/11
to google-map...@googlegroups.com
Simply load the JS Loader from https://www.google.com/jsapi.

<script type="text/javascript" src="https://www.google.com/jsapi"></script>
<script type="text/javascript">
  google.load('maps', '3', {
    other_params: 'sensor=false',
    callback: function() {
      // maps loaded with SSL
    }
  });
</script>

--
You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group.
To post to this group, send email to google-map...@googlegroups.com.
To unsubscribe from this group, send email to google-maps-js-a...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.



--
http://twitter.com/broady
Reply all
Reply to author
Forward
0 new messages