You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to update the model with the latitude and longitude from the geocoding service on the view? I am sending address to geocode, displaying on map. I would like to not make two calls to service to get the lat and long and update my form. @(Html.GoogleMap() .Name("map") .Width(200) .Height(200) .Center(c => c.Address(Model.Street + " " + Model.City + ", " + Model.State)) .Markers(m => m.Add().Title(Model.Street)) .Zoom(13)
I am new to MVC so I appreciate any help you can provide.
The text was updated successfully, but these errors were encountered:
Ok, so after going through all the issues, I can see that you can subscribe to event listeners. What I want to do is get the lat and long from a single marker and on dragend event show the lat and long on the form at dragend to save to database. the example I found was doing it server side, I want to handle this client side.
Is there a way to update the model with the latitude and longitude from the geocoding service on the view? I am sending address to geocode, displaying on map. I would like to not make two calls to service to get the lat and long and update my form.
@(Html.GoogleMap() .Name("map") .Width(200) .Height(200) .Center(c => c.Address(Model.Street + " " + Model.City + ", " + Model.State)) .Markers(m => m.Add().Title(Model.Street)) .Zoom(13)
I am new to MVC so I appreciate any help you can provide.
The text was updated successfully, but these errors were encountered: