Map returns 403 error

2,412 views
Skip to first unread message

Kin Lun Yeung

unread,
Jan 14, 2011, 9:21:45 AM1/14/11
to google-map...@googlegroups.com
Hi guys, I'm new to the forum.

I have applied a google map with a list of locations to my website. It is on every page. When I was walking through the website for a while maybe a few hours. It started displaying the attached image (untitled.bmp) instead of the map. And the chrome console says it has a "failed to load resource the server responded with a status of 403". What are the possible reasons that it happens?

The site is in IP address not yet mapped.

I am sorry that I cannot include a link to the staging server as it has to be confidential.

Please let me know if I have to provided further information.
untitled.bmp

Kin Lun Yeung

unread,
Jan 14, 2011, 9:27:04 AM1/14/11
to google-map...@googlegroups.com
Here is the code for initialization


    <head>
        <script type="text/javascript">
            function initialize(){
                var image = '../images/mblue.png';

                     var latlng = new google.maps.LatLng(12, 13);
                    var myOptions = {
                        zoom: 15,
                        center: latlng,
                        mapTypeControl: true,
                        mapTypeControlOptions: {
                            position: google.maps.ControlPosition.RIGHT_BOTTOM
                        },
                        mapTypeId: google.maps.MapTypeId.ROADMAP
                    };
               
                    var map = new google.maps.Map(document.getElementById("googleMapInner"), myOptions);
                    var marker = new google.maps.Marker({
                        position: latlng,
                        map: map,
                        title: 'test',
                        icon: image
                    });
                    var infoWindow = new google.maps.InfoWindow({
                        content: "test"
                    });
   
                    google.maps.event.addListener(marker, 'click', function() {
                        infoWindow.open(map,marker);
                    });
   
                    idleListener = google.maps.event.addListener(map, 'idle', function() {
                        google.maps.event.trigger(marker, 'click');
                        google.maps.event.removeListener(idleListener);
                    });

            }
            jQuery(document).ready(function(){
                initialize();
            });
        </script>
        <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=true&language=en"></script>
    </head>
    <body>
        <div id="googleMapInner">
        </div>
    </body>

Chad Killingsworth

unread,
Jan 14, 2011, 9:27:47 AM1/14/11
to google-map...@googlegroups.com
It sounds like your IP address has been blocked by Google. Try opening one of the map tiles directly in your browser.

Other than that, we can't help without a link to your site. Unless you have a premier license, your map will eventually need to be public anyways or you will be violating the terms of service.

Chad Killingsworth

Kin Lun Yeung

unread,
Jan 14, 2011, 9:38:47 AM1/14/11
to google-map...@googlegroups.com
Thanks very much for your comments. I will try to see if mapping it will help. As the site is under development and the buyer doesn't allow it to be public until launch so .. lol

Regal

Andrew Leach

unread,
Jan 14, 2011, 9:43:57 AM1/14/11
to google-map...@googlegroups.com
On 14 January 2011 14:21, Kin Lun Yeung <ala...@gmail.com> wrote:
> When I was walking through the website for a while maybe a few hours. It
> started displaying the attached image (untitled.bmp) instead of the map.

That sounds to me (and the image looks) as though you have reached the
quota for Static Maps. Have you checked that?

Kin Lun Yeung

unread,
Jan 14, 2011, 10:02:31 AM1/14/11
to google-map...@googlegroups.com
I thought so but I read the FAQ and said it allows 500k loading per day? and we got only 4 developers I don't think we had that much.

BTW, how do I check how much we accessed?

Thanks,
Regal

Kin Lun Yeung

unread,
Jan 14, 2011, 10:04:58 AM1/14/11
to google-map...@googlegroups.com

geoco...@gmail.com

unread,
Jan 14, 2011, 10:08:20 AM1/14/11
to Google Maps JavaScript API v3
On Jan 14, 7:02 am, Kin Lun Yeung <alan...@gmail.com> wrote:
> I thought so but I read the FAQ and said it allows 500k loading per
> day? and we got only 4 developers I don't think we had that much.

Where did you see that?
http://code.google.com/apis/maps/documentation/staticmaps/#Limits

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.

-- Larry

Kin Lun Yeung

unread,
Jan 15, 2011, 3:45:55 AM1/15/11
to Google Maps JavaScript API v3
Thanks very very much,

I believe I was reading the other FAQ. Pretty much believe it happens
due to the high traffic.

Thanks,
Alan

On Jan 14, 11:08 pm, "geocode...@gmail.com" <geocode...@gmail.com>
wrote:
> On Jan 14, 7:02 am, Kin Lun Yeung <alan...@gmail.com> wrote:
>
> > I thought so but I read the FAQ and said it allows 500k loading per
> > day? and we got only 4 developers I don't think we had that much.
>
> Where did you see that?http://code.google.com/apis/maps/documentation/staticmaps/#Limits
Reply all
Reply to author
Forward
0 new messages