I display google map with markers on it.
When selected language is English it’s ok, but when I change language map is not displayed and I think it is because lat/lng is written differently:
English: 44.012/22.098
Other: 44,012/22,098
What should I do in this case?
I get coordinates from database and store it in thees properties:
public double Longitude { get; set; }
public double Latitude { get; set; }
Here I get NAN, NAN
var c = new google.maps.LatLng(latitude, longitude);
Google maps expects lat lng values in a format like this:
41.112469So if your values contain comma character, replace them with a dot and create yourLatLngobjects with that value.