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...
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...
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...
I'm trying to get this behavior with gmaps4rails : User clicks link in the sidebar, corresponding marker on the map changes image/color in order to make the selected one stand out from the others.  I've tried with this code  Gmaps.map.callbac...
This is what I have for displaying the map with markers   <%= javascript_tag do%> var handler = Gmaps.build('Google'); handler.buildMap({ internal: {id: 'multi_markers'}}, function(){     var markers = handler.addMarkers(<%=r...
How can I add a callback function to the infowindow in Gmaps for Rails? I need to write an Ajax/JSON function for buttons inside that window.  Searching hasn't gotten me very far. Any help?  <script type='text/javascript'>   handler...
I'm running a rails 3 app, and have just installed gmaps4rails.  Everything works great in my development environment, but when I move it over to production no map is showing. In my production log, there isn't any error. In my javascript cons...
I wanted to have a modal pop up whenever I click on a marker in google maps. I was able to accomplish this with the following script code in javascript (in my view):  handler = Gmaps.build('Google', {           // builders: {           //   M...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.