Further to this, I have eliminated the "req id" error in Chrome by 
replacing the jsapi autoload:

        <script type="text/javascript" src=
'https://www.google.com/jsapi?autoload={
            "modules":[{
                "name":"visualization",
                "version":"1"
            }]
        }'></script>
        
        <script type="text/javascript">
            google.charts.load("current", {packages:["map"]});
            google.setOnLoadCallback(drawVisualization);
            var wrap;

with the following:

<script type="text/javascript" src="https://www.google.com/jsapi";></script>
        
        <script type="text/javascript">
            google.load("visualization", "1");
            google.charts.load("current", {packages:["map"]});
            google.setOnLoadCallback(drawVisualization);
            var wrap;



However, this now causes the intermittent occurrence of the error : "You 
called the draw() method with the wrong type of data rather than a 
DataTable or DataView".

This seems to be entirely down to network response time - reloading (or 
shift reloading) will result in the map appearing rather than the error. 
This is completely reproducible.

Here is a link to the page using the new code that doesn't trigger the 
Chrome console warning about missing req id but instead has the 
intermittent new error:

http://web.org.uk/tmp/barrowmap/v13.html

>From this I surmise that the Chrome "req id" error is related to the 
autoload mechanism for jsapi

So I have swapped one error (req id) for a different, intermittent, one 
(wrong type of data). Is there a way to correct this new error?

If there is, perhaps we can return to my original query :-)

Regards
Simon

-- 
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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/84cebc91-b127-47f0-b7cf-d6d937d5bec8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • [visualization-api] Chart... 'Simon Banton' via Google Visualization API
    • Re: [visualization-a... 'Sergey Grabkovsky' via Google Visualization API
      • Re: [visualizati... 'Simon Banton' via Google Visualization API
        • Re: [visuali... 'Sergey Grabkovsky' via Google Visualization API
          • Re: [vis... 'Simon Banton' via Google Visualization API
            • Re:... 'Simon Banton' via Google Visualization API
              • ... 'Daniel LaLiberte' via Google Visualization API
                • ... 'Simon Banton' via Google Visualization API
                • ... 'Simon Banton' via Google Visualization API
                • ... 'Daniel LaLiberte' via Google Visualization API
                • ... 'Simon Banton' via Google Visualization API
                • ... 'Simon Banton' via Google Visualization API
                • ... 'Daniel LaLiberte' via Google Visualization API
                • ... 'Simon Banton' via Google Visualization API
                • ... 'Daniel LaLiberte' via Google Visualization API
                • ... 'Sergey Grabkovsky' via Google Visualization API

Reply via email to