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...
I am developing a web app in Rails. When I open a marker, a modal pops up with a street view in a box. I can open one or two markers, but after that I get an error that WebGL has hit a snag. I have tried to look online for resources but nothing makes...
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...
After reading this answer, I'm still having trouble with getting the marker to show at the center of the page.  My code is as follows;  In the view  <div class="Flexible-container"> <!--Google Maps Div-->           <div id=...
I'm using the amazing gem gmaps4rails in a Rails project. It works just fine on my local machine, but once deployed on Heroku's Cedar stack the javascript throws an error at window.onload = function() { Gmaps.triggerOldOnload(); Gmaps.loadMap...
I am using the Gmaps4Rails gem and by following the wiki/readme, I have successfully created a map with points (pins).   The javascript looks like this:    handler = Gmaps.build('Google');   handler.buildMap({     provider: {      },     inte...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.