Could not update the google map lat and lng via javascript in rails

Hi all, I am facing issue with the lat and lng of google map.

the issue in my list.erb I have _list_map.erb(partial)
in my list.erb I am using below code

and in my partial

I am passing lat and lng from db.

but it is taking values from list.erb page only it is not taking the
values
which I am passing. Where did I go wrong can anyone help me.

Thanks in Advance