Answers.Body: <p>Drawing the map is multiple API calls. And interacting with the map uses additional API calls.</p>
  <p>I opened the Inspector (in Firefox here), and you can see a ton of calls to maps.google.com - see all the file calls <code>vt?pb...</code> - each one is a block of the map background.</p>
  <p><a href="https://i.sstatic.net/p84zR.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/p84zR.png" alt="enter image description here" /></a></p>
  <p>And then, as you drag the map around, zoom, etc, it's making additional calls to get the portions of the map it doesn't have. And you can see them pop-up in the inspector.</p>
  <p>So, a bunch of calls to draw the map, and more as you change your view of the map.</p>
  <p>You could try the static image map <code>{{ craft.smartMap.img(locations, options) }}</code> instead of the standard <code>{{ craft.smartMap.map(locations, options) }}</code></p>
  <p>Alternative ideas, disable 'zoomable' and/or 'scrollable' in your map settings (<a href="https://plugins.doublesecretagency.com/smart-map/customizing-the-map-in-twig/" rel="nofollow noreferrer">more about those options here</a>) - less interaction = less api calls.</p>
  <p>The static map loads a lot less API resources, but takes a longer to generate (and just isn't as good).</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-02-23T17:52:06.803Z
Answers.LastActivityDate: 2021-01-01T06:58:43.773Z
Answers.LastEditDate: 2021-01-01T06:58:43.773Z
Answers.UserDisplayName: SamC
Body: <p>I have a Smart Map setup and <a href="https://missionthriftstore.com/store/find" rel="nofollow noreferrer">installed it on a site</a>. </p>
  
  <p>The section averages 300 page views per day according to Google Analytics, but Google API is maxing out the 2500 requests on the free plan. I've bumped up to a paid plan, but does anyone know why there are so many requests?</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2018-02-23T16:21:33.947Z
Comments.Text: Is this for Craft 2 or Craft 3? Which version of Smart Map are you running?
Comments.UserDisplayName: Lindsey D
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2018-02-24T22:32:17.100Z
Comments.Text: I'm on Craft 2, Smart Map 2.4.0. Thanks!
Comments.UserDisplayName: jeremyhoover
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2018-02-26T05:24:15.340Z
Comments.Text: Sounds like @SamC nailed it. I’ve also seen some recent indications that Google has adjusted how they are counting API calls, so that may be relevant as well.
Comments.UserDisplayName: Lindsey D
Tags: <plugin-smartmap>
Title: High amount of API calls from Smart Map
ThreadText: # High amount of API calls from Smart Map
  
  (Asked by: username_0 on 2018-02-23)
  
  I have a Smart Map setup and [installed it on a site](https://missionthriftstore.com/store/find).
  
  The section averages 300 page views per day according to Google Analytics, but Google API is maxing out the 2500 requests on the free plan. I've bumped up to a paid plan, but does anyone know why there are so many requests?
  
  **Tags:** plugin-smartmap
  
  > **Comments:**
  > **username_1**: Is this for Craft 2 or Craft 3? Which version of Smart Map are you running?  
  > **username_0**: I'm on Craft 2, Smart Map 2.4.0. Thanks!  
  > **username_1**: Sounds like @username_2 nailed it. I’ve also seen some recent indications that Google has adjusted how they are counting API calls, so that may be relevant as well.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2018-02-23. Score: 2 | Accepted answer
  
  Drawing the map is multiple API calls. And interacting with the map uses additional API calls.
  
  I opened the Inspector (in Firefox here), and you can see a ton of calls to maps.google.com - see all the file calls `vt?pb...` - each one is a block of the map background.
  
  [![enter image description here](https://i.sstatic.net/p84zR.png)](https://i.sstatic.net/p84zR.png)
  
  And then, as you drag the map around, zoom, etc, it's making additional calls to get the portions of the map it doesn't have. And you can see them pop-up in the inspector.
  
  So, a bunch of calls to draw the map, and more as you change your view of the map.
  
  You could try the static image map `{{ craft.smartMap.img(locations, options) }}` instead of the standard `{{ craft.smartMap.map(locations, options) }}`
  
  Alternative ideas, disable 'zoomable' and/or 'scrollable' in your map settings ([more about those options here](https://plugins.doublesecretagency.com/smart-map/customizing-the-map-in-twig/)) - less interaction = less api calls.
  
  The static map loads a lot less API resources, but takes a longer to generate (and just isn't as good).
  
  
  ---
  
  