Jump to content

The ultimate community for Ruby on Rails developers.


Using Gmaps and need to migrate from markers to circles

Rails Google Maps JS

  • Please log in to reply
No replies to this topic

#1 tjsherrill



  • Members
  • 11 posts

Posted 01 April 2014 - 08:28 PM

I created a gist to include my code more cleanly: https://gist.github....Ravenna/9922375


I am creating a basic app that shows a list of locations but instead of markers showing exact locations, I want to use circles with a radius of say 1000 meters.  The goal is to add a slight bit of privacy to the locations.  Text on the page would be something to the effect of: "circles on map reflect approximate location of other users".  while privacy is not hyper critical, I don't want random people looking at the map and knowing the address of other users.


I am using two gems: Geocoder and Gmaps4rails.  The geocoding works fine.  The Markers work fine, but I can't figure out how to move to circles.


The gmaps4rails dev noted (https://github.com/a...ls/wiki/Circles) that circles are possible, I am just unsure of what to change.


Thanks in advance for the help.

Also tagged with one or more of these keywords: Rails, Google Maps, JS

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users