Select to view content in your preferred language

Migrating the Overview Map to Flex 2.0

627
0
07-26-2010 08:43 AM
MattWilliams
Emerging Contributor
After searching in earnest for a post concerning updating the Overview Map to Flex 2.0 and finding none, I decided to post how I got it to work for me. Sorry if this has been posted previously.

This is based on the Overview Map from the old code gallery: http://resources.esri.com/arcgisserver/apis/flex/index.cfm?fa=codeGalleryDetails&scriptID=15873

Pretty simple actually. In the import statements at the beginning of the script change
       
        import com.esri.ags.symbol.FillSymbol;
 import com.esri.ags.symbol.SimpleFillSymbol;
 import com.esri.ags.symbol.SimpleLineSymbol;

To:
         // import com.esri.ags.symbol.FillSymbol; (or delete this line)
 import com.esri.ags.symbols.SimpleFillSymbol;      // add an "s" to the end of ".symbol"
 import com.esri.ags.symbols.SimpleLineSymbol;


Now search through the entire code and change everywhere where the data type is ":FillSymbol" change that to ":SimpleFillSymbol"

Make sure you have your extent settings correct and off you go.
Tags (2)
0 Kudos
0 Replies