I've implemented the other_params setting when loading the 'maps' module.
So I would expect your use of other_params will be processed correctly,
whereas it has been ignored so far (in the new loader).

I will be updating the loader very soon, for the update of Google Charts so
that 'upcoming' will be version '48'.  This update will also support the
other_params setting for 'maps', though not for any other modules (at this
time).

On Sun, Apr 26, 2020 at 6:51 PM Xiao Lin Liu <[email protected]> wrote:

> Hi Daniel,
>
> I'm posting here the code to replicate the scenario with only 2 files, in
> case someone has spotted the same issue.
> Did you have the chance to look at this and see if this will be solved by
> the fix deployed on Monday? Any idea, when it will be deployed on Monday?
>
> the html page
> <!DOCTYPE html>
> <html>
>
> <head>
>   <title>Simple Map</title>
>   <meta name="viewport" content="initial-scale=1.0">
>   <meta charset="utf-8">
>   <style>
>     /* Always set the map height explicitly to define the size of the div
>        * element that contains the map. */
>     #map {
>       height: 100%;
>       width: 100%;
>     }
>
>     /* Optional: Makes the sample page fill the window. */
>     html,
>     body {
>       height: 100%;
>       margin: 0;
>       padding: 0;
>     }
>   </style>
> </head>
>
> <body>
>   <div style="display: flex;flex-direction: row;height: 100%;width: 100%;">
>     <div id="map"></div>
>   </div>
>   <script src="mapUtil.js"></script>
>   <script>
>     function afterAll() {
>       var uluru = {lat: -25.363, lng: 131.044};
>                     this.newmap = new
> google.maps.Map(document.getElementById('map'), {
>                         center: uluru,
>                         zoom: 8
>                       });
>       console.log("Everything is loaded");
>     }
>     MapUtil.loadApi(afterAll);
>   </script>
> </body>
>
> </html>
>
> and the javascript file
> var MapUtil = /** @class */ (function () {
>     function MapUtil() {
>     }
>     MapUtil.loadApi = function (callback) {
>         if (callback === void 0) { callback = null; }
>         if (MapUtil.loaded) {
>             callback();
>         }
>         else {
>             var script = document.createElement("script");
>             script.src = "
> https://www.google.com/jsapi?callback=MapUtil.googleLoaderCallback";;
>             script.type = "text/javascript";
>             document.getElementsByTagName("head")[0].appendChild(script);
>             MapUtil.loadApiCallback = callback;
>         }
>     };
>     MapUtil.googleLoaderCallback = function () {
>         MapUtil.loaded = true;
>         var credentials = "PUTCREDENTIALSHERE";
>         var client = "PUTCLIENTHERE";
>         var a;
>         google.load("maps", "3", {
>             "other_params": "client=" + credentials +
> "&sensor=false&channel=" + client +
> "&libraries=geometry,visualization,places,drawing ",
>             "callback": function () {
>                 MapUtil.loadApiCallback();
>             }
>         });
>     };
>     MapUtil.loaded = false;
>     return MapUtil;
> }());
>
> Running and refreshing this page, we can see that sometimes the callback
> is completed and something is never reached.
>
> Again, thanks for your help on this issue and I do apologize for
> disturbing with this but this issue is being critical on our product and we
> need to check all the options and how to solve it asap.
>
> Regards
>
> Xiao
>
>> --
> You received this message because you are subscribed to the Google Groups
> "Google Visualization API" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-visualization-api/6bdf6b07-cab1-46cc-9b01-278eb338b52e%40googlegroups.com
> <https://groups.google.com/d/msgid/google-visualization-api/6bdf6b07-cab1-46cc-9b01-278eb338b52e%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2>
[email protected] <[email protected]>   Cambridge MA

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/CAOtcSJMU2t1DtiTMbVCSJS3W_Yt93zYe52swBwji%3Dn3E%3DbiHeg%40mail.gmail.com.

Reply via email to