문제

  • 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?

도움이 되었습니까?

해결책

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 } });
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top