title: Google Maps API MissingKeyMapError via Magento Plugin
body: <p>I've had a look through the forum already, but can't seem to find an answer for my specific problem.</p>
  
  <p>So, I've installed a third party 'store locator' plugin on my Magento store but I keep getting a js error message about MissingKeyMapError. I've already applied for an API key - but my problem is I'm not sure where in the code I should put this key.</p>
  
  <p><a href="http://i.stack.imgur.com/gkDId.png" rel="nofollow">API Key</a></p>
  
  <p>I'm in <a href="http://i.stack.imgur.com/xtstz.png" rel="nofollow">Googlemap.php</a> in the app folder for this particular plugin and I <em>think</em> it should go in here somewhere but not entirely sure.</p>
  
  <p>This is what's contained in Googlemap.php:</p>
  
  <pre><code>class Clarion_Storelocator_Block_Adminhtml_Storelocator_Edit_Tab_Googlemap       extends Mage_Adminhtml_Block_Widget_Form
  {
      protected function _prepareForm()
      {
          $model = Mage::registry('storelocator_data');
  
      $form = new Varien_Data_Form();
      $this-&gt;setForm($form);
      $fieldset = $form-&gt;addFieldset('form_General_Googlemap', array('legend'=&gt;Mage::helper('clarion_storelocator')-&gt;__('Google Map')));
  
      $radiusConfigValue = Mage::getStoreConfig('clarion_storelocator_general_setting/clarion_storelocator_display_setting/default_radius');
      $fieldset-&gt;addField('radius', 'text', array(
        'label'     =&gt; Mage::helper('clarion_storelocator')-&gt;__('Radius'),
        'note'  =&gt; Mage::helper('clarion_storelocator')-&gt;__('Radius is in miles. If kept blank then default configured radius will be used (System &gt; Configuration &gt; Store Locator)'),
        'name'      =&gt; 'radius',
        'value'      =&gt; $radiusConfigValue,
      ));
  
      $fieldset-&gt;addField('latitude', 'text', array(
        'label'     =&gt; Mage::helper('clarion_storelocator')-&gt;__('Latitude'),
        'class'     =&gt; 'validate-number',
        'required'  =&gt; true,
        'name'      =&gt; 'latitude',
      ));
  
      $fieldset-&gt;addField('longitude', 'text', array(
        'label'     =&gt; Mage::helper('clarion_storelocator')-&gt;__('Longitude'),
        'class'     =&gt; 'validate-number',
        'required'  =&gt; true,
        'name'      =&gt; 'longitude',
      ));
  
      $zoomLevelConfigValue = Mage::getStoreConfig('clarion_storelocator_general_setting/clarion_storelocator_display_setting/zoom_level');
      $fieldset-&gt;addField('zoom_level', 'text', array(
        'label'     =&gt; Mage::helper('clarion_storelocator')-&gt;__('Zoom Level '),
        'note'  =&gt; Mage::helper('clarion_storelocator')-&gt;__('If kept blank then default configured zoom level will be used (System &gt; Configuration &gt; Store Locator)'),
        'name'      =&gt; 'zoom_level',
        'value'      =&gt; $zoomLevelConfigValue,
      ));
  
      $data = $model-&gt;getData();
      if(!empty($data)) {
          $form-&gt;setValues($data);
      }
     return parent::_prepareForm();
  }
  }**
  </code></pre>
  
  <p>Any help/suggestions would be much appreciated!</p>
  
  <p>Thanks in advance,
  Letitia</p>