From 4d565653e66b1b05d972cf7db6798c2f5f30b407 Mon Sep 17 00:00:00 2001
From: Nathanael Dewhurst <nathanael@dewhur.st>
Date: Thu, 28 Jul 2016 12:50:41 -0400
Subject: [PATCH] Issue #1482608 by recrit, ThomasH, attisan, malcolm_p,
 ndewhurst: Support for styled maps.

---
 js/gmap.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/js/gmap.js b/js/gmap.js
index d9b9e7a..aa943c6 100644
--- a/js/gmap.js
+++ b/js/gmap.js
@@ -374,7 +374,7 @@ Drupal.gmap.addHandler('gmap', function (elem) {
 
         // Map styles.
         if (obj.vars.mapstyles) {
-            obj.opts.styles = obj.vars.mapstyles;
+            obj.opts.styles = JSON.parse(obj.vars.mapstyles);
         }
     });
 
-- 
2.7.4 (Apple Git-66)

