apneadiving / Google-Maps-for-Rails

Enables easy Google map + overlays creation in Ruby apps
https://apneadiving.github.io/
MIT License
2.26k stars 382 forks source link

Top and Left side markers not repositioning map to center view. SouthWest works fine... #324

Closed melmore closed 10 years ago

melmore commented 11 years ago

Hey,

I'm using gmap rails in my project and everything works fine accept for infoBox NorthEast (Top/Left) marker position is not repositioning the map on click. SouthWest() works fine.

How can I fix this issue. infobox_position

<%= gmaps("markers" => { "data" => @fundings_for_map, "options" => { "clusterer_gridSize" => 50, "do_clustering" => true, "clusterer_maxZoom" => 12, "cluster_minzoom" =>10, "custom_cluster_pictures" => true, "custom_infowindow_class" => 'tiptool_business' } }, "map_options" => { "center_latitude" => 37, "center_longitude" => -97, "detect_location" => false, "center_on_user" => false, "auto_adjust" => false, "auto_zoom" => true, "zoom" => 4, "maxZoom" => 12, "minZoom" => 3, "raw" => raw_map_options } ) %>
``` <%= yield :scripts %> ```

Please help, Thanks...

apneadiving commented 11 years ago

did you disable spanning somehow?

melmore commented 11 years ago

spanning?? What do you mean in the css?

apneadiving commented 11 years ago

sorry panning. can you move the map?

On Mar 7, 2013, at 8:39 PM, melmore notifications@github.com wrote:

spanning?? What do you mean in the css?

— Reply to this email directly or view it on GitHub.

melmore commented 11 years ago

Yes. The bottom and right side works when I click on a marker close to the edge but the top left doesn't reposition.

melmore commented 11 years ago

Using gmaps4rails.base.js.coffee and gmaps4rails.googlemaps.js.coffee

melmore commented 11 years ago

Also using twitter bootstrap for styling the page rows and span. div class="row" div class="span12" gmap map here /div /div

apneadiving commented 11 years ago

issues with bootstrap have been reported but I can't help on these.

Sorry.

Please bring your feedback if you find out.

On Mar 7, 2013, at 8:49 PM, melmore notifications@github.com wrote:

Also using twitter bootstrap for styling the page rows and span.

gmap map here

— Reply to this email directly or view it on GitHub.

melmore commented 11 years ago

So this could be a bootstrap span left issue maybe? Also can I see the bootstrap issue comments?

Thanks..

melmore commented 11 years ago

I was thinking can I use the class name .infobox and check position of tiptool with Jquery then reposition to the center but when I try the infobox may have a low z-index to the container.