Closed inetufo closed 13 years ago
Damn, I lost my windows computer few months ago... Will need a VM soon.
Did you even try a basic map?
As for your second problem, you simply forgot :last_map => false
The basic map seems right in ie8
<%= gmaps() %>
This works
<%= gmaps({
:map_options => {:container_class => "map_container", :id => "map1", :class => "gmaps4rails_map", :last_map => false}
}) %>
<%= gmaps({
:map_options => {:container_class => "map_container", :id => "map2", :class => "gmaps4rails_map", :last_map => false }
}) %>
You mean this , i've just tried, but still only one map displayed
Mmm did you create the proper css for your custom map?
What version of the gem do you use?
css class "map_container" and "gmaps4rails_map" is the default css class, i tried this in chrome, but only one map displayed
I use the latest gem 1.0.2. You can have a try
Yep will try once at home
A little weired, this time without :last_map option two maps displayed ...
it should have been:
<%= gmaps({
:map_options => {:container_class => "map_container", :id => "map1", :class => "gmaps4rails_map"},
:last_map => false
}) %>
<%= gmaps({
:map_options => {:container_class => "map_container", :id => "map2", :class => "gmaps4rails_map" }
}) %>
Like in the wiki.
It may work without this option according to the browser's way of handling multiple window.onload
so weird: it happened IE 8 didn't like this line:
Gmaps.map.map_options.class = 'gmaps4rails_map';
But other lines like:
Gmaps.map.map_options.id = 'map';
Are fine...
With the latest code, when i use the above three options the map doesn't display, but in chrome or firefox it's ok.I think it's the compatibility of the js with the browser. Another issue is when i write this
only one map displayed