From 206779e85f50a8ce90a1dfadf540b50afb85e76d Mon Sep 17 00:00:00 2001
From: johnv <johnv@591042.no-reply.drupal.org>
Date: Thu, 11 Apr 2013 20:39:16 +0300
Subject: [PATCH] Issue #1930424 by johnv | shenagarg: How to add animation to
 Gmap Markers?.

---
 gmap_plugin_style_gmap.inc | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/gmap_plugin_style_gmap.inc b/gmap_plugin_style_gmap.inc
index a10fb10..1688433 100755
--- a/gmap_plugin_style_gmap.inc
+++ b/gmap_plugin_style_gmap.inc
@@ -41,6 +41,8 @@ class gmap_plugin_style_gmap extends views_plugin_style {
 
     $options['center_on_proximityarg'] = array('default' => 0);
 
+    $options['animation'] = array('default' => 0);
+
     $options['highlight_nodearg'] = array('default' => 0);
     $options['highlight_nodearg_arg'] = array('default' => '');
     $options['highlight_nodearg_color'] = array('default' => '#FF0000');
@@ -252,6 +254,7 @@ class gmap_plugin_style_gmap extends views_plugin_style {
               'title' => $tooltip,
               'highlight' => (!empty($highlight_nid) && !empty($row_nid) && $highlight_nid == $row_nid) ? 1 : 0,
               'highlightcolor' => $this->options['highlight_nodearg_color'],
+              'animation' => $this->options['animation'],
             ),
           );
 
@@ -453,6 +456,14 @@ class gmap_plugin_style_gmap extends views_plugin_style {
       );
     }
 
+    // Use the values from google.maps.Animation. See https://developers.google.com/maps/documentation/javascript/reference
+    $form['animation'] = array(
+      '#type' => 'select',
+      '#options' => array(0 => 'None', 1 => 'Bounce', 2 => 'Drop'),
+      '#title' => t('Animation'),
+      '#default_value' => $this->options['animation'],
+      '#description' => t("Add animation to the markers."),
+    );
     $form['highlight_nodearg'] = array(
       '#type' => 'checkbox',
       '#title' => t('Highlight marker for node argument'),
-- 
GitLab