Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Fredrik Liljemark 52 posts 74 karma points
    Apr 11, 2012 @ 22:20
    Fredrik Liljemark
    0

    The value is not valid for Initial Latitude and Longitude.

    Hi,

    Thanks for your contribution.

    I have tried to get a Bing Map to work but i keeps telling me that the latittude and longitude is not valid.

    The format i have tried is as follows: 14.26261831726034
    I have also tried with a , instead of . but no luck...

    Any ideas?

  • Warren Buckley 2106 posts 4836 karma points MVP ∞ admin hq c-trib
    Apr 13, 2012 @ 11:30
    Warren Buckley
    0

    Hi Frederik,
    I am wondering if it is a localzation issue as it expects a decimal format for it to be valid, but i have only found out that a decimal could be localized.

    Let me know what language/region your machine or server is running please.
    So we can try and figure this out.

    Cheers,
    Warren 

  • Fredrik Liljemark 52 posts 74 karma points
    Apr 13, 2012 @ 12:54
    Fredrik Liljemark
    0

    I think you have a good guess there since i am in Sweden.

    so: se sv.

  • Warren Buckley 2106 posts 4836 karma points MVP ∞ admin hq c-trib
    Apr 13, 2012 @ 15:25
    Warren Buckley
    0

    So what is the default way to format a decimal in Sweden then?

  • Fredrik Liljemark 52 posts 74 karma points
    Apr 13, 2012 @ 15:36
    Fredrik Liljemark
    0

    Haha, sorry Warren,

    it is with , and not  .

  • Matt Brailsford 4124 posts 22215 karma points MVP 9x c-trib
    Apr 17, 2012 @ 17:19
    Matt Brailsford
    0

    The numeric property editor uses decimal.TryParse to deserialize the passed in value from the data store, so it would seem this doesn't take into consideration. I'd suggest you raise an issue on issues.umbraco.org and we'll take a look as soon as we can.

    Untill then, it might be best to use a string.

    Matt

Please Sign in or register to post replies

Write your reply to:

Draft