This is a migrated thread and some comments may be shown as answers.
map doesn't load
2 Answers 44 Views
Map
This is a migrated thread and some comments may be shown as answers.
Andreas Ladis
Top achievements
Rank 1
Andreas Ladis asked on 16 Jun 2010, 10:09 AM
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 Answers, 1 is accepted

Sort by
0
Accepted
Andrey
Telerik team
answered on 17 Jun 2010, 10:27 AM
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.
0
Andreas Ladis
Top achievements
Rank 1
answered on 17 Jun 2010, 10:51 AM
Hi,

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

E.
Tags
Map
Asked by
Andreas Ladis
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Andreas Ladis
Top achievements
Rank 1
Share this question
or