To display at browser the mapserver generated flash movies, a flash viewer is needed! Glenn Brauen contributed such a viewer in in his great Demo for Mapservre Flash Maps. The following work further did some improvement by porting the Glenn Brauen's MultiViewer.swf (.fla) to php/libming based MultiViewPro.swf (.php). Thus users could have a complete open source package for flash mapping!
The MultiViewerPro.swf exactly has the same functions as MultiViewer.swf, but it is smaller (less than 3k) and has no limitation on multi-layers rendering. Reading php source code at MultiViwerPro.php or downloading swf binary at MultiViwerPro.swf.
1 Testing Online Examples First
Glenn Brauen's MultiViewer.swf example
http://aris.cseas.kyoto-u.ac.jp/cgi-bin/mapserv442?map=/usr/local/apache2/htdocs/fmv/fmv.map&mode=browse
The MultiViewerPro.swf example (six vector layers)
http://aris.cseas.kyoto-u.ac.jp/cgi-bin/mapserv442?map=/usr/local/apache2/htdocs/fmv/fmvpro.map&mode=browse
The MultiViewerPro.swf example (one wms layer and five vector layers)
http://aris.cseas.kyoto-u.ac.jp/cgi-bin/mapserv442?map=/usr/local/apache2/htdocs/fmv/fmvpro_wms.map&mode=browse
2 Downloading New Flash Mapping Example at CSEAS, Kyoto University
MultiViewerPro.php plus new dataset(phnom penh,cambodia)
New Demo for Mapserver Flash Maps
3 Installing the Demo
assuming: php/libming is installed apache's htdocs path is '/usr/local/apache2/htdocs' mapserv cgi is named as 'mapserv442' and placed in '/usr/local/apache2/cgi-bin' !!! mapserver4.4.2 should be compiled with the configuration '--with-wmsclient --with-ming' $su #cd /usr/local/apache2/htdocs/ #tar xfzv fmvpro.tar.gz #cd fmvpro #php MultiViewPro.php //generating MultiViewPro.swf binary #chmod 777 tmp //making 'tmp' writable ! #exit $ testing your installation by typing 'http://localhost/cgi-bin/mapserv442?map=/usr/local/apache2/htdocs/fmvpro/fmvpro.map&mode=browse' or 'http://localhost/cgi-bin/mapserv442?map=/usr/local/apache2/htdocs/fmvpro/fmvpro_wms.map&mode=browse' Note: to make your mapserver run the second typing smoothly, you need to download one modified mapserver file (mapdraw.c) before compling your mapservre 4.4.2. http://aris.cseas.kyoto-u.ac.jp/fmv/mapdraw.c You may use the 'diff' command to check the difference between two file. The explaination for this modification could be found at http://aris.cseas.kyoto-u.ac.jp/fmv/tojeff.txt