Show a map by using static images.

This example shows you how to use the map components that open static images.

Any macromedia flash capable file format can be used as an image. (.jpg,.gif,.swf or .png for Flash8)

Put the image inside a folder and create an init.xml file that looks like this.

<?xml version="1.0" encoding="UTF-8"?>
<services>
<service name="test" version="1.0.0" >
<envelope name="Initial_Extent" minx="2400000" miny="1602090.90909091" maxx="7300000" maxy="5147909.09090909" />
<layer layerid="clc" visible="true">
<tile
minx="2400000" miny="1602090.90909091" maxx="7300000" maxy="5147909.09090909"
src="Landcover_2000_full.jpg"
width="550" height="398"
keep="true"
/>
</layer>
</service>
</services>

Drag an xmlComponent on the stage and a mapComponent, hook them up in the same way as described in example 1. Inside the xmlComponent you will find two properties. Enter a relative path inside the folderName (relative path towards the movieclip you make). Type the name of the service you specified in the xml inside the "serverName" tag. (In this case test) and comile.

 

You can download the following example.

Download the followin this example