Skip to content
This repository has been archived by the owner on Mar 3, 2024. It is now read-only.

BHM::GoogleMaps::StaticMap ignores :zoom, :format, and more #4

Open
wtnabe opened this issue Mar 30, 2011 · 0 comments
Open

BHM::GoogleMaps::StaticMap ignores :zoom, :format, and more #4

wtnabe opened this issue Mar 30, 2011 · 0 comments

Comments

@wtnabe
Copy link

wtnabe commented Mar 30, 2011

Thanks for nice library !

I need give params :zoom and :format. But BHM::GoogleMaps::StaticMap's constructor ignore these params. I patched as below:

@@ -12,6 +12,8 @@
           p[:sensor]  = false
           p[:size]    = "#{@width}x#{@height}"
           p[:maptype] = options.fetch(:type, "roadmap")
+          p[:format]  = options.fetch(:format)
+          p[:zoom]    = options.fetch(:zoom)
         end
       end

Could you merge this ?

Thank you.

wtnabe

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant