开发者

how to redraw google map with jQuery (Ruby on Rails 3)

开发者 https://www.devze.com 2023-03-17 12:00 出处:网络
i have fields: <%= f.label :address %> <%= f.text_field :address %> <%= f.label :city %>

i have fields:

 <%= f.label :address %>
 <%= f.text_field :address %>
 <%= f.label :city %>
 <%= f.text_field :city %>
 <%= f.label :state %>
 <%= f.text_field :state %>
 <%= f.label :country %>
 <%= f.text_field :country %>

and script:

 $("#addr").focusout(function() { 
var param = $("#user_address").val(开发者_高级运维);
 // code
 });

what code must be in function to redraw map with new address?


you should check geocoder or here

0

精彩评论

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