开发者

Gmaps4rails make marker draggable and get its coordinates

开发者 https://www.devze.com 2023-03-03 04:51 出处:网络
Is it pos开发者_如何学Gosible to make a marker draggable and to get its coordinates in gmaps4rails, that the user could drag marker to choose the point he wants and get his chosen point coordinates?It

Is it pos开发者_如何学Gosible to make a marker draggable and to get its coordinates in gmaps4rails, that the user could drag marker to choose the point he wants and get his chosen point coordinates?


It's not implemented in the gem.

But don't forget that you have access to all objects created. Example, the map could be retrieved with: Gmaps4Rails.map

You could take inspiration from: https://github.com/apneadiving/Google-Maps-for-Rails/wiki/Javascript-goodies

0

精彩评论

暂无评论...
验证码 换一张
取 消