×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Jul 2013
    Posts
    2

    TileSources working on emulator but not on real device

    Hi,
    I'm trying to add WMS TileSource to my WP8 application but i have a small problem.
    When adding my custom tile source to the build in map control with myMapControl.TileSources.Add(new WmsTileSource()) i can visualize it on the emulator.
    But when the application is deployed on my device (nokia lumia 820) the map is displayed, but the TileSource isn't displayed :'(

    Someone can help me ?

  2. #2
    Registered User
    Join Date
    Jul 2013
    Posts
    2

    Re: TileSources working on emulator but not on real device

    Found the problem ! Emulator is in en-US culture and my device in fr-FR.
    Double String.Format produce , for double values incompatible with the Uri that require .

  3. #3
    Nokia Developer Moderator
    Join Date
    Feb 2011
    Location
    Portugal
    Posts
    935

    Re: TileSources working on emulator but not on real device

    Quote Originally Posted by slouge View Post
    Found the problem ! Emulator is in en-US culture and my device in fr-FR.
    Double String.Format produce , for double values incompatible with the Uri that require .
    Thanks for sharing

  4. #4
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,166

    Re: TileSources working on emulator but not on real device

    And if you want to get it always right, use the invariant culture on forming the string from double: string doubleStr = doubleNum.ToString(System.Globalization.CultureInfo.InvariantCulture);

Similar Threads

  1. Replies: 24
    Last Post: 2009-05-29, 07:12
  2. Replies: 2
    Last Post: 2007-02-12, 21:19
  3. http connection in J2me(working fine in emulator but not in real device)???
    By prasad767 in forum Mobile Java Networking & Messaging & Security
    Replies: 2
    Last Post: 2006-11-29, 05:14
  4. working in emulator but not real mobile device
    By mmc18 in forum Bluetooth Technology
    Replies: 1
    Last Post: 2006-04-24, 10:36
  5. working in emulator but not real mobile device
    By mmc18 in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2006-03-27, 17:56

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×