how do the map load count?

1,270 views
Skip to first unread message

joe lau

unread,
Jan 11, 2012, 11:32:18 PM1/11/12
to google-map...@googlegroups.com
As there is the usage limits apply to the Maps API
I want to ask how it count the map load.
It add one when the GMap object was created?
Or add one when the Google Maps JavaScript API was load in the page?

Ralph

unread,
Jan 11, 2012, 11:48:57 PM1/11/12
to google-map...@googlegroups.com
http://code.google.com/apis/maps/documentation/javascript/usage.html#usage_limits

> --
> You received this message because you are subscribed to the Google
> Groups "Google Maps JavaScript API v3" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-maps-js-api-v3/-/W1oPUxdOstcJ.
> 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.

joe lau

unread,
Jan 12, 2012, 1:08:53 AM1/12/12
to google-map...@googlegroups.com
thanks for your help.
I want to ask more detail that, if I include the Google Maps JavaScript API inside the page.
And I have a map icon that onclick to call the map initialize function.

If i not click on the icon, it will not count any map load.
Until I click on the icon, it will count one?

geoco...@gmail.com

unread,
Jan 12, 2012, 5:29:01 AM1/12/12
to Google Maps JavaScript API v3
http://code.google.com/apis/maps/faq.html#usage_mapload

But I think at one point it was counting rhe load of the API as
displaying a map; but perhaps one of the google engineers can confirm
which it is (and maybe that has been fixed).

-- Larry

Andrew Leach

unread,
Jan 12, 2012, 5:34:10 AM1/12/12
to google-map...@googlegroups.com

I would suggest that if you don't want a map displayed initially (and
may never want one, if the user doesn't click the button), you don't
load the API. Load the API using the AJAX loader when the user clicks
the button. That way it doesn't matter how it's counted: it can't be
counted if you haven't loaded it.

Reply all
Reply to author
Forward
0 new messages