FIX: show map icon for Google Map composer preview.

FIX: show map icon for Google Map composer preview.

diff --git a/lib/onebox/engine/google_maps_onebox.rb b/lib/onebox/engine/google_maps_onebox.rb
index f724403..c4a1d08 100644
--- a/lib/onebox/engine/google_maps_onebox.rb
+++ b/lib/onebox/engine/google_maps_onebox.rb
@@ -54,9 +54,7 @@ module Onebox
       end
 
       def placeholder_html
-        width  = @placeholder_width  || 690
-        height = @placeholder_height || 400
-        "<img src='#{@placeholder}' width='#{width}' height='#{height}'/>"
+        ::Onebox::Helpers.map_placeholder_html
       end
 
       private
diff --git a/lib/onebox/helpers.rb b/lib/onebox/helpers.rb
index 655669f..0d20d18 100644
--- a/lib/onebox/helpers.rb
+++ b/lib/onebox/helpers.rb
@@ -224,6 +224,10 @@ module Onebox
       "<div class='onebox-placeholder-container'><span class='placeholder-icon audio'></span></div>"
     end
 
+    def self.map_placeholder_html
+      "<div class='onebox-placeholder-container'><span class='placeholder-icon map'></span></div>"
+    end
+
     def self.generic_placeholder_html
       "<div class='onebox-placeholder-container'><span class='placeholder-icon generic'></span></div>"
     end

GitHub sha: 497b7476

1 Like