Pregunta

  • Rails 4.0.1
  • geocoder 1.1.9
  • gmaps4rails 2.1.1

Anyone got such strange issue for this gem? I make everything in video tutorial. I need GMaps to show concrete address of place, but it's showing something "near" and always randomize location about 500 meters(as i saw)

That's how it looks in google maps: enter image description here

That how it looks in my app: enter image description here

And after Ctrl+r it looks very different: enter image description here

Maybe i made something wrong or you have the same issue?

¿Fue útil?

Solución

Its a feature to prevent overlapping. Its documented in the code here.

You can customise or remove the behaviour, example:

handler = Gmaps.build('Google', { markers: { maxRandomDistance: null } });
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top