From a28871e6896c300b5d3d0a2d96d5cfe6deb45df6 Mon Sep 17 00:00:00 2001
From: vagrant <hogseruj1@gmail.com>
Date: Sun, 2 Nov 2014 11:52:09 +0000
Subject: [PATCH 1/5] #348804| edit help file, add handler example.

---
 help/extending.html | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/help/extending.html b/help/extending.html
index 0e393f2..137af2f 100644
--- a/help/extending.html
+++ b/help/extending.html
@@ -41,6 +41,17 @@
 <p>(TODO)</p>
 <p>GMap uses a custom event system to pass data and events around.</p>
 <h3></h3>
+<p>To use this handlers create a js file and use insert this example code. This example prints a alert, everytime a user clicks on a marker.</p>
+<pre>
+  // Add a gmap handler
+  Drupal.gmap.addHandler('gmap', function(elem) {
+		var obj = this;
+		obj.bind('zoom', function() {
+			var zoom = obj.vars.zoom;
+			alert('user zoomed');
+		});
+	});
+</pre>
 
 <h2>Extending GMap Views</h2>
 <p>(TODO)</p>

From ef71be561082186ca62efd451d393b1513626f48 Mon Sep 17 00:00:00 2001
From: vagrant <hogseruj1@gmail.com>
Date: Sun, 2 Nov 2014 13:22:16 +0000
Subject: [PATCH 2/5] #463356 | applying patches to provide theme functions for
 popups.

---
 gmap.module | 18 ++++++++++++++++--
 1 file changed, 16 insertions(+), 2 deletions(-)

diff --git a/gmap.module b/gmap.module
index a022826..8f4bd13 100755
--- a/gmap.module
+++ b/gmap.module
@@ -47,8 +47,10 @@ function gmap_theme() {
     // 'gmap_overlay_edit' => array('render element' => 'element'),
     // 'gmap_macrotext' => array('render element' => 'element'),
     'gmap_dimension' => array('render element' => 'element'),
-    // 'gmap_address' => array('render element' => 'element'),
-    // 'gmap_align' => array('render element' => 'element'),
+    'gmap_address' => array('render element' => 'element'),
+    'gmap_align' => array('render element' => 'element'),
+    'gmap_style' => array('render element' => array('element')),
+    'gmap_popup' => array('render element' => array('marker')),
     'gmap' => array('render element' => 'element'),
   );
 }
@@ -1507,3 +1509,15 @@ function template_preprocess_gmap_view_gmap(&$vars) {
 function gmap_views_protocol() {
   return (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? 'https' : 'http';
 }
+
+
+function theme_gmap_style($element) {
+}
+ 
+/**
+ * Theme a gmap marker popup.
+ */
+function theme_gmap_popup($marker) {
+  return '<div class="gmap-popup">' . $marker['text'] . '</div>';
+}
+

From 7a46a47d3f114d82d98eabb68f93263186ee5570 Mon Sep 17 00:00:00 2001
From: HOG <hogseruj1@gmail.com>
Date: Sun, 2 Nov 2014 13:33:16 +0000
Subject: [PATCH 3/5] #348804| fix codding stndarts.

---
 help/extending.html | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/help/extending.html b/help/extending.html
index 137af2f..754b0f4 100644
--- a/help/extending.html
+++ b/help/extending.html
@@ -43,8 +43,8 @@
 <h3></h3>
 <p>To use this handlers create a js file and use insert this example code. This example prints a alert, everytime a user clicks on a marker.</p>
 <pre>
-  // Add a gmap handler
-  Drupal.gmap.addHandler('gmap', function(elem) {
+	// Add a gmap handler
+	Drupal.gmap.addHandler('gmap', function(elem) {
 		var obj = this;
 		obj.bind('zoom', function() {
 			var zoom = obj.vars.zoom;

From c762b6f84e1bca3b0bbf517844cd9ee520feae40 Mon Sep 17 00:00:00 2001
From: HOG <hogseruj1@gmail.com>
Date: Sun, 2 Nov 2014 13:40:38 +0000
Subject: [PATCH 4/5] #348804| fix codding stndarts.

---
 help/extending.html | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/help/extending.html b/help/extending.html
index 754b0f4..3dc5946 100644
--- a/help/extending.html
+++ b/help/extending.html
@@ -43,14 +43,14 @@
 <h3></h3>
 <p>To use this handlers create a js file and use insert this example code. This example prints a alert, everytime a user clicks on a marker.</p>
 <pre>
-	// Add a gmap handler
-	Drupal.gmap.addHandler('gmap', function(elem) {
-		var obj = this;
-		obj.bind('zoom', function() {
-			var zoom = obj.vars.zoom;
-			alert('user zoomed');
-		});
-	});
+  // Add a gmap handler
+  Drupal.gmap.addHandler('gmap', function(elem) {
+    var obj = this;
+    obj.bind('zoom', function() {
+      var zoom = obj.vars.zoom;
+      alert('user zoomed');
+    });
+  });
 </pre>
 
 <h2>Extending GMap Views</h2>

From 8cc972b0c90e9f389f89082678ec5f4eb8ab7918 Mon Sep 17 00:00:00 2001
From: HOG <hogseruj1@gmail.com>
Date: Sun, 2 Nov 2014 14:45:56 +0000
Subject: [PATCH 5/5] #463356 | fix codding standarts.

---
 gmap.module | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/gmap.module b/gmap.module
index 8f4bd13..2467444 100755
--- a/gmap.module
+++ b/gmap.module
@@ -1510,14 +1510,15 @@ function gmap_views_protocol() {
   return (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? 'https' : 'http';
 }
 
-
+/**
+ * Gmap style.
+ */
 function theme_gmap_style($element) {
 }
- 
+
 /**
  * Theme a gmap marker popup.
  */
 function theme_gmap_popup($marker) {
   return '<div class="gmap-popup">' . $marker['text'] . '</div>';
 }
-
