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

kml and markers together with a specific zoom don't work #346

Closed gmgp closed 10 years ago

gmgp commented 11 years ago

First tanks for this Great Gem!

index,html.haml


   = gmaps(kml: {data:  '[{url:"https://maps.google.it/maps/ms?....04de5602338e1e25d8c"}]'},
         map_options:  { language: I18n.locale, 
                container_class: "map_container_index" , 
                auto_zoom: false, 
                zoom: 8}, 
        "markers" => { "data" => @json, 
                "options" => { "randomize" => true, "max_random_distance" => 10, "clusterer_maxZoom" => 20, "clusterer_gridSize" => 25} }) 

zoom don't work


   = gmaps(map_options:  { language: I18n.locale, :container_class => "map_container_index" , auto_zoom: false, "zoom" => 8}, "markers" => { "data" => @json, "options" => { "randomize" => true, "max_random_distance" => 10, "clusterer_maxZoom" => 20, "clusterer_gridSize" => 25} }) 

simple work why?

apneadiving commented 10 years ago

because kml tend to take the lead on map. Should be handled in a callback