map doesn't load

3 posts, 1 answers
  1. Andreas Ladis
    Andreas Ladis avatar
    17 posts
    Member since:
    Mar 2009

    Posted 16 Jun 2010 Link to this post

    Hi,

    I am using a Bing Map for my Rad Map. When the page loads (with the map) i see the image (first.jpg). I do not see the map.
    I have to zoom in with the mouse wheel in order to see the map.(second.jpg). The code i am using to load the ma is the following:

     <my:RadMap x:Name="RadMap1"  Grid.Row="2" Grid.Column="0" > 
     
     
                <maps:InformationLayer  Name="informationLayer"
          
                </maps:InformationLayer> 
     
            </my:RadMap> 

      Public Sub New() 
            InitializeComponent() 
            mService.GetPointsAsync() 
            cService.GetGategoriesAsync() 
     
            Me.RadMap1.Provider = New BingMapProvider(MapMode.Aerial, True"AvOK-6UJ8YBzZq5De6nvkuEFWh7xS8y3de2ZtXpc3ZL64eTMZ7a4wsOBE1nDLkfT"
            RadMap1.Center = New Location(37.966667, 23.716667) 
            RadMap1.ZoomLevel = 9 
         
        End Sub 




    What is wrong and the map doesn't load on page load?
    Can anyone help me?

    Regards,
    Eleni
  2. Answer
    Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 17 Jun 2010 Link to this post

    Hi Andreas Ladis,

    I’m sorry, we could not reproduce your problem. Could you, please create small Silverlight application which we could use to reproduce the problem?

    As a quick suggestions:
    1. Please, check that you are using latest available build of the RadControls library.
    2. I would recommend that you move the calls to your services to the RadMap.InitializeCompleted event handler:
      <my:RadMap x:Name="RadMap1" InitializeCompleted="MapInitializeCompleted">
          <my:InformationLayer  Name="informationLayer">
          </my:InformationLayer>
      </my:RadMap>
      Private Sub MapInitializeCompleted(ByVal sender As System.Object, ByVal e As System.EventArgs)
          mService.GetPointsAsync()
          cService.GetGategoriesAsync()
      End Sub
    3. I would recommend that you call your services one-by-one. I mean call the second service when first request is completed.
    Best wishes,
    Andrey Murzov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. DevCraft banner
  4. Andreas Ladis
    Andreas Ladis avatar
    17 posts
    Member since:
    Mar 2009

    Posted 17 Jun 2010 Link to this post

    Hi,

    Regards for the help. I updated to the newer version and the problem was resolved.

    E.
Back to Top