• About Us
  • Blog
  • Basket
  • Account
  • Sign In
  •  

Forums

PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 18 Jan 2012 05:38 AM by  Murali Setty
(SOLVED) Map Error
 5 Replies
Sort:
Topic is locked
Author Messages

tderenthal



New Member


Posts:
New Member


--
03 Nov 2011 09:25 PM
    I am getting this error: [i]Latitude/Longitude value of '46.5487709' is not valid[/i] from a map control: <mob:MapID="Map1"runat="server"ControlsVisible="true"Latitude="46.5487709"Longitude="-87.4403747"BorderStyle="Solid"BackColor="#C5CCD2"BorderColor="#999999"BorderWidth="1px"> </mob:Map> This code used to work.
    0

    Tom Holmes



    New Member


    Posts:
    New Member


    --
    04 Nov 2011 10:01 AM
    Hi,

    We recently changed the Framework to use a string format for coordinates rather than decimal coordinates. In your instance you should use this:
    <mob:Map ID="Map1" runat="server" ControlsVisible="true" Latitude="46 32 55 N" Longitude="-87 26 25 W" BorderStyle="Solid" BackColor="#C5CCD2" BorderColor="#999999" BorderWidth="1px">         </mob:Map>

    You can see more at our user guide here.

    I hope this helps. Thanks,
    Tom
    0

    tderenthal



    New Member


    Posts:
    New Member


    --
    04 Nov 2011 07:34 PM
    LocationInfo.Latitude.DD MM, and SS will give me degrees minutes and seconds. How do I get N/S or E/W?

    0

    Murali Setty



    New Member


    Posts:
    New Member


    --
    05 Nov 2011 04:28 AM
    Hi,



    Please use LocationInfo.Latitude.ToString() and LocationInfo.Longitude.ToString() to get complete co-ordinate details including poles.



    Thanks,

    Murali

    0

    tderenthal



    New Member


    Posts:
    New Member


    --
    17 Jan 2012 10:44 PM
    I am using this now, but it throws an error saying that it cant convert to double from string.
    0

    Murali Setty



    New Member


    Posts:
    New Member


    --
    18 Jan 2012 05:38 AM
    Tom,

    Please assign double type values to the Map co-ordinate properties which are similar to the Google maps format. We have reverted the type change from string to double in the release 1.2.6.2.


    Thanks,
    Murali
    0
    Topic is locked