Silverlight API
The Silverlight sample consists of a Visual Studio 2010 solution that includes three projects – the custom class to communicate with the MDS Foundation Map (SLMDSFoundationMapClasses), a Silverlight project that hosts the map (SLMDSFoundationMap), and a test web project (SLMDSFoundationMap.Web).
To make the sample functional, open the file MainPage.xaml in the SLMDSFoundationMap project , and locate the line of code that defines the MDSTiledMapServiceLayer (see below):-
<esri:Map x:Name="Map" Background="White">
<mds:MDSTiledMapServiceLayer ID="basemap" urlList="[insert urls from MDS here]"></mds:MDSTiledMapServiceLayer>
</esri:Map>
Replace the text between the quotes in this line with the list of URLs that were provided with your welcome email. Make sure the URLs are separated by commas and there are no spaces in the string. The code will look something like this:-
<esri:Map x:Name="Map" Background="White">
<mds:MDSTiledMapServiceLayer ID="basemap" urlList="http://ur1l,http://url2,http://url3,http://url4"></mds:MDSTiledMapServiceLayer>
</esri:Map>
The copyright attribution that needs to be displayed on top of the map is created using a <TextBlock> element in the same layout Grid as the map control. This needs to be included in every application that uses this custom layer and the MDS Foundation Map.
<TextBlock Height="23" HorizontalAlignment="Right" Name="txtCopyRight"
Text="Map Data © 2010 MapData Sciences Pty Ltd (MDS), PSMA"
VerticalAlignment="Bottom"
Padding="0,0,150,20" Width="400"
/>
If you do not have an email from MDS' Client Services, please email or call +61 2 8436 2800.