On Oct 19, 3:44 pm, Rowan <[email protected]> wrote: > > http://www.transportscotland.gov.uk/about-us/location > > At the moment I see the error pic but this problem is intermittent. > I'm using the API key I was given and I doubt the traffic to our site > would be a problem. Can anyone suggest what I might be doing wrong?
Including the key is unnecessary; and I can't see why sensor is true rather than false. They are truly static maps, aren't they: everyone viewing that page gets exactly the same image. That means that there is effectively no limit to how often those maps can be viewed: "Use of the Google Static Maps API is subject to a query limit of 1000 unique (different) image requests per viewer per day. Since this restriction is a quota per viewer, most developers should not need to worry about exceeding their quota. However, note that we enforce an additional request rate limit to prevent abuse of the service. Requests of identical images, in general, do not count towards this limit beyond the original request." So it's possible that you are falling foul of the rate limit. That has definitely been an issue where there are, say, over 30 maps on the page, because all those requests arrive practically simultaneously. I'd be surprised if two images triggered it, although who can say what else is going on on the server? > We use a Drupal CMS so I can't embed Javascript, unfortunately Really? http://drupal.org/node/98354 Include the API <script> element, and another <script src=...> referencing your code in an external file. And then just trigger the mapping functions with something like <script>window.onload=function(){window.onload;initalize();}</script> -- You received this message because you are subscribed to the Google Groups "Google Maps API V2" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.
