Your first map viewer


Home
Up
Downloads
templates
Schedule
Members
Archive
AXL (ESRI)
WMS (OGC)
GeoRSS
XML (Static)
Other tools
Discussions
Search
Contact Us


Up


Make your first map viewer.

This is a step by step aproach to make your first map. We asume you have downloaded "map_extention.mxp" and installed it using "Macromedia Extension Manager".

  1. Open Macromedia Flash
  2. Create a new Flash document.

If everything is well you should see a window like this. On the right you would normaly see the component window. (Otherwise press Ctrl+F7) There you should find a group called "Map Viewers" and inside the group the components called IMSConnector and Mapviewer.

Drag a component from each of them into the stage. Give the IMSConnector the instance name "my_conn" (See example). Notice the parameters servername and servicename. This are the parameters that point to the Mapserver you want to use. (leave them for now).

Click now on the map and give it the instance name "my_map". Inside the parameters you will find a parameter called "connector_instance". Enter the instance name of the IMSConnector "my_conn".

Now you are ready to compile the Movieclip by pressing Ctrl+Enter. After some seconds you should see the map.

Go back to the design mode and drag a couple of buttons from the component menu. Change the parameter "label" into "zoom in", "zoom out" and "pan".

Click on the zoom in button and go to the action script panel. (F9).

Type the following code:

on(click) {

_root.my_map.interaction = "zoomin";

}

Do the same for all other buttons but change "zoomin" into "zoomout" and "pan",Compile by Ctrl+Enter and you should see the following map.

Source for Macromedia Flash: sample1.fla


Home | Downloads | templates | Schedule | Members | Archive | AXL (ESRI) | WMS (OGC) | GeoRSS | XML (Static) | Other tools | Discussions | Search | Contact Us

Locations of visitors to this page

 All source code and components can be used freely by anybody.
For problems or questions regarding this Web site contact
[ProjectEmail].
Last updated: 05/10/07.