Location viewer problem

Jan 17, 2012 at 9:04 PM


I have played around with MobilePack and like it alot. Now I´m trying to set up locations on a location viewer page is it´s works fine (when it is english pages). When i try to switch to create Swedish versions of the page the google map flips and show me Greenland or north america. The "Show my location" also stops to work. I can see that the browser is loading something and the page stops working. After a minute my browser shows me a message about a long running script is running and ask me if I want to cancel the script.

Does anyone know what the problem is?

Kind regards


Jan 18, 2012 at 2:37 PM

Me again

I found the problem and solved it. It where a culture problem, when get the latiude and longitude, the swedish culture change 17.1234 to 17,1234. I did the following to get it right: gml.Latitude => gml.Latitude.ToString(CultureInfo.InvariantCulture).