You are hereMDS Foundation Map
 Text/HTML
Minimize

Welcome to the MDS Foundation Map


View the FAQ       

This page outlines what is required in gaining access to the MDS Foundation Map through the ArcGIS Server Web APIs. These base maps have been created for you, enabling you to concentrate on the information to be displayed.

The sample code provided is simply a starting point to help you incorporate the MDS Foundation Map in to your own client-side web applications using the ESRI Web APIs.

 

 Click on the map for a demonstration

 

To begin using the MDS Foundation Map within your web environments, you will have contacted MDS' Client Services and received an email, licence agreement and URL.   

Instructions

  1. Read the FAQ
  2. Download the zip file containing all the class files for Flex V1.3 & V2.0, Silverlight V1.2 and JavaScript.
  3. Follow the instructions below to include the URL within the appropriate class file
  4. Add the code to all of your web environments ensuring you include the attribution. 

 

Javascript API

Open up the JavaScript sample in a text editor or IDE. The sample includes a custom class that builds on the standard ArcGISTileMapServiceLayer to allow your application to consume tiles from the MDS Foundation Map.

All that is required to make this sample functional is to modify the line of code shown below that sets up the URLs that will be used to access the map tiles.

          // URL(s) for MDS Foundation Map Tile Servers specified here 
             mdsurls = "********* INSERT MDS Foundation Map Tile Server URL(s) here ************";

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:-  

          // URL(s) for MDS Foundation Map Tile Servers specified here
mdsurls = “http://ur1l,http://url2,http://url3,http://url4”

The copyright attribution that needs to be displayed on top of the map is created using a <DIV> tag inside the ESRI map object <DIV>. This needs to be included in every application that uses this custom layer and the MDS Foundation Map.

             <div id="map" class="tundra" style="position:relative;width:1013px; height:617px; border:1px solid #000;">
                          <!-- As part of the MDS Foundation Map license, this copyright attribution must be displayed -->
                                <div id="copyright" style="position:absolute;right:150px;bottom:15px;z-index:99;font-size:11px;">
                   Map Data &copy; 2010 MapData Sciences Pty Ltd (MDS), PSMA
                                </div>
             </div>

 

Flex API

There are two samples in this package - one based on Flex 3 and Version 1.3 of the ESRI Flex API, and the other based on Flex 4 and Version 2.0 of the ESRI Flex API.  Both samples include a custom class that builds on the standard ArcGISTileMapServiceLayer to allow your application to consume tiles from the MDS Foundation Map.

All that is required to make the samples functional is to modify the line of code in the file FlexFoundationMap.mxml shown below that sets up the URLs that will be used to access the map tiles.

 

             <customlayers:MDSTiledMapServiceLayer id="MDSTiles
                  urllist=” http://ur1l,http://url2,http://url3,http://url4"
                  fadeInFrameCount="12"
              />

 

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:-

 

              <customlayers:MDSTiledMapServiceLayer id="MDSTiles
                  urllist="********* INSERT MDS Foundation Map Tile Server URL(s) here ************"
                  fadeInFrameCount="12"
              />

 

Now build and run the application. These sample applications are just designed to illustrate how the custom class defined in src/customlayers/ MDSTiledMapServiceLayer.as can be incorporated into an application.

If you locate the file MDSTiledMapServiceLayer.as in a different location than src/customlayers, you will need to modify the namespace declaration in your mxml accordingly.

 

             <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
                   xmlns:esri=http://www.esri.com/2008/ags
                   xmlns:customlayers="customlayers.*"     <---------------
                   pageTitle="MDS Foundation Map - Flex API Sample">

 

The copyright attribution that needs to be displayed on top of the map is created using a <mx:Label> tag inside the same container (Canvas) as the ESRI map class This needs to be included in every application that uses this custom layer and the MDS Foundation Map.

 

             <mx:Label text="Map Data © 2010 MapData Sciences Pty Ltd (MDS), PSMA" right="110" bottom="24" width="365" fontSize="11"/>

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.

  

| Legal Information |Privacy Policy |Contact MapData |
Email the Webmaster with questions or comments about this site. Copyright © 2010 MapData Sciences Pty Ltd