Since 0.10.0, you can choose your map API from the following:
Google Maps (of course...)
Openlayers
Mapquest
Bing
tell me what map provider you use
<%= gmaps("markers" => {"data" => @json}, "map_options" => { "provider" => "openlayers"}) %>
For bing and mapquest, you need to provide an API key. Simply pass it as an argument:
<%= gmaps("markers" => {"data" => @json}, "map_options" => { "provider" => "mapquest", "provider_key" => MAPQUEST_KEY, "auto_adjust" => true,"center_on_user" => true }) %>
Or:
<%= gmaps("markers" => {"data" => @json}, "map_options" => { "zoom" => 5, "provider" => "bing", "provider_key" => BING_KEY, "auto_adjust" => true,"center_on_user" => true }) %>
Not every method I created for google maps is implemented in the other APIs. See current state of other APIs implementation
There was an error while loading. Please reload this page.