Select to view content in your preferred language

Show progress bar to Thematic load

729
3
01-16-2013 05:11 AM
MichelleGonzalez
Emerging Contributor
Hello,

I have developed a Silverlight Map Application that has a thematic button. It's base on the Atlas sample. The button works fine, but my problem is that I have a lot of data related to each thematic option and the load of the graphics on the map takes more time than the load of the legend. Because of this the users think that there was an error. I have managed to show a loading image in the legend's canvas, but of course when the legend loads it disappears and there are no graphics on the map. The graphics appear some 5 to 10 seconds later.
I want to show the map's progress bar while the new graphic layer is loading, but I can´t find a way to do so.

Is that possible??

Thanks for your help.

Michelle
0 Kudos
3 Replies
saurabhgupta2
Emerging Contributor
Hello

I am new to Silverlight development. I am trying to to create a thematic mapping  userControl in my Silverlight application.
Can anyone help me in this regard. How to add a thematic usercontrol step by step.

Thanks and regards

Saurabh
0 Kudos
AhmedEl-Sisi
Deactivated User
Hello

I am new to Silverlight development. I am trying to to create a thematic mapping  userControl in my Silverlight application.
Can anyone help me in this regard. How to add a thematic usercontrol step by step.

Thanks and regards

Saurabh


Hi Saurabh,
You can check Dynamic Layer Thematic sample from the following URL:
https://developers.arcgis.com/silverlight/sample-code/start.htm#DynamicLayerThematic

Regards,
0 Kudos
saurabhgupta2
Emerging Contributor
Hello cc4ever

Thanks for the reply . As I am new to development Silverlight Application i still cant figure out the steps through which i can integrate this sample code as a Widget or usercontrol in my existing Application .
I have tried to search online and found a sample way out for adding functionality to the existing application through usercontrol . But unfortunately its showing error "Object reference not set to an instance of an object".
Please find my code snippets

main page XAML : added reffernce to usercontrol

xmlns:widget="clr-namespace:ESRIStandardMapApplication2.Widget">

main page xaml:

<widget:ThematicMap x:Name="ThematicMap" Visibility="Collapsed">            
            </widget:ThematicMap>

MainPage.cs : Added this references

            ThematicMap.SetParent(this);
            ThematicMap.SetMap(MyMap);
            ThematicMap.SetGraphicsLayer("MyThematicGraphicsLayer");


In Thematic.cs

Created 3 functions to pass parent map and parent grid


Please help me where i am doing it wrong


Thanks and Regards

Saurabh
0 Kudos