Questions tagged [gmaps4rails]

gmaps4rails is a Ruby on Rails 3 gem, which provides a clear interface with GoogleMaps, OpenLayers, Bing and Mapquest

Enables easy display of items (taken from a Rails 3 model) with Google Map, OpenLayers, Bing or Mapquest.

Geocoding + Directions included.

Provides much options:

  • markers customization
  • infowindows
  • auto-adjusted zoom
  • polylines
  • polygons
  • circles
  • rich markers
  • multi maps etc...

See wiki for full description and examples.

700 questions
0
votes
1 answer

How to show the infowindow on mouseOver event

I'm upgrading an old Rails 2.1 app and am replacing the google_maps plugin with the Gmaps4Rails gem. The conversion has been pretty straight forward so far. The remaining task is to programmatically show and hide the markers infowindows on…
Sam Schroeder
  • 107
  • 1
  • 7
0
votes
1 answer

Circle Radius is not coming for gmaps4rails

Gmaps4Rails.circles = [{"lat":50.44444444 , "lon":8.3333333}]; Gmaps4Rails.create_circles(); when i retrieve the hashMap @circle then only lat and long is coming ....So i am not able to draw the circle ....can anyOne help me Out of this...
0
votes
1 answer

Does the gmaps4rails gem for Rails 3.1 allow use of a Google Maps API Key?

The documentation says that a provider key is not needed when using Google Maps. However, I want to use my Google API Key so that I can track my usage. From the _scripts.html.erb file in the gem, it appears that there is no built-in support for…
Scott W
  • 202
  • 2
  • 12
0
votes
2 answers

JS load order of Gmaps4Rails in rails 3.2 using asset pipeline

I've been trying to get gmaps4rails working for hours. I think it's the load order, I even tried cloning a demo app using rails 3.2 and ruby 1.9.3-- still showing a blank map with no markers. My JSON is correct from the model. …
kinet
  • 1,790
  • 3
  • 20
  • 32
-1
votes
1 answer

Google Maps rails 5

I have a CRUD for "Imovels" (properties), so in the data base I have the address in different fields. That is: <%= f.text_field :logradouro %> # street name <%= f.number_field :numero %> # number <%= f.collection_select :bairro_id, @bairros, :id,…
SuBzer0
  • 45
  • 10
-1
votes
1 answer

How to add an id to markers if it's not built into the gem?

I grabbed the code from the wiki for "Adding an id to markers and access them later." It looks like this: markers = ... // Fetch markers Gmaps.store.markers = markers.map(function(m) { marker = handler.addMarker(m); …
Joshua Plicque
  • 418
  • 7
  • 10
-1
votes
2 answers

Drag and update location - how to do this?

I'm trying to follow the information on your wiki, stackExchange, etc to make this work. The idea is to create a new location for the user. The app displays a map, put a marker on the 0,0 location and then the user drag this marker to any place and…
Fernando
  • 325
  • 2
  • 13
-1
votes
2 answers

No route matches {:action=>"show", :controller=>"restaurants"}

If I want to go with my home page clicking on the map localhost:3000/maps gets out this error No route matches {:action=>"show", :controller=>"restaurants"} controllers/maps_controller.rb def index @maps = Map.all @json =…
Sivard
  • 35
  • 1
  • 7
-2
votes
1 answer

How use a image as map instead of google map

Hello is that it is possible to use an image map instead of google map. how can we do Thank you for any help
-2
votes
2 answers

how restrict zoom-out level Google maps?

We try to restrict zoom out level of world map in my application and my application build on Ruby on rails 3. We used "gmap4rails" gem for Google map but problem was world map will repeat multiple time on map area as you can see in attached…
1 2 3
46
47