I'm using Google Maps in my Rails app and I face some difficulties. I want to show an infowindow when a user clicks on a circle. It works fine when he clicks on a marker but now that I have circles it does not work.  Here is my code:    markers_j...
I´m developing an website in ROR  I am using gem 'gmaps4rails'.  In localhost the map is showed, but when i put on a production server (DigitalOcean) gives me this error: Uncaught ReferenceError: Gmaps is not defined  i have this script in m...
My objective is to add circles in place of markers to show the general area of the location  of the each tool in the Tool model.  I was able to add circles based on other answers on SO, however using the following code I get the error in the title of...
Hello I building Live bus tracking Rails app. I displayed very well my markers from the database on my Google Map in Rails 4 with the gmaps4rails gem.  Controller:  @hash = Gmaps4rails.build_markers(@vehicle_trackings) do |track, marker|       marker...
stack details ruby 1.9.2p180, rails 3.0.9, gmaps4rails 1.0.2, jquery.json-2.3.min.js  Background I am a newbie to gmaps4rails and really like the gem. All is working well so far, but I am trying to update markers dynamically for the first time. I am...
I'm using gmaps4rails to add a map to my rails app. I'm trying to log the age of a user by clicking on marker.   In my index action I have -        @json = User.all.to_gmaps4rails do |user, marker|       marker.json({ :id => user.id, :age...
I'm having trouble implementing a custom infobox on rails using the Google Maps 4 Rails gem. I've added the infobox plugin to the top of the page and tried the code snippet in the docs, but still no custom infobox or a class of "yellow...
Im trying to add some callback to my code, so when clicking on a picture outside the map, the maps get centered to the position that image contains, so I try this.  Gmaps4Rails.callback = function() {   var event = document.getElementsByClassName(...
This question already has answers here:...
I have application where gps info are extracted from photo with gps data. When I want to update position by edit action, I would like to drag a marker, replace it and save new position. When I click to map, old marker is still there, so there are two...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.