diff --git a/salsa_event/salsa_event.module b/salsa_event/salsa_event.module
index 05760fc..55f3a53 100644
--- a/salsa_event/salsa_event.module
+++ b/salsa_event/salsa_event.module
@@ -329,7 +329,7 @@ function salsa_event_form($form, &$form_state, $event, $view_mode = 'full') {
     // Show google map.
     if (module_exists('gmap3_tools') && $event->Latitude && $event->Longitude && $event->Hide_Standard_Map != 'true') {
       $form['Map'] = array(
-        '#markup' => salsa_event_get_map($event),
+        '#markup' => salsa_event_get_map($event, $form),
       );
     }
 
@@ -910,14 +910,14 @@ function salsa_event_action_url($form_state) {
 /**
  * Helper function that calls gmap3_tools module.
  */
-function salsa_event_get_map($event) {
+function salsa_event_get_map($event, &$form) {
   module_load_include('inc', 'gmap3_tools');
 
   $marker_content = '<strong>' . $event->Location_Common_Name . '</strong><br />';
   $marker_content .= $event->Address . '<br />';
   $marker_content .= $event->City . ', ' . $event->State . ' ' . $event->Zip;
 
-  gmap3_tools_add_map(array(
+  gmap3_tools_attach_js(array(
     'mapId' => 'map-canvas',
     'mapOptions' => array(
       'zoom' => 12,
@@ -928,7 +928,7 @@ function salsa_event_get_map($event) {
     'gmap3ToolsOptions' => array(
       'defaultMarkersPosition' => GMAP3_TOOLS_DEFAULT_MARKERS_POSITION_CENTER,
     ),
-  ));
+  ), $form);
 
   return '<div id="map-canvas" style="width:100%; height:400px"></div>';
 }
