[Mapserver-users] Mapserver and flash

Geoffrey Rowland geoffrey.rowland at noaa.gov
Tue Aug 19 09:56:39 EDT 2003


I was playing around with this a bit the other day.  Is there a way to 
identify features in the swf file?  for example if I am displaying a 
county layer (from a shapefile), and I want to get the names of the 
counties....is that possible using the swf output?

Thanks,
Geoff


William A. Bronsema, C.E.T. wrote:

> Lars-Göran,
>
> It is fairly easy to view the SWF output using actionscript.  Set the 
> outputformat in the map file to the following:
>
>   OUTPUTFORMAT
>     NAME swf
>     MIMETYPE "application/x-shockwave-flash"
>     DRIVER swf
>     IMAGEMODE PC256
>
>     # the following line is used to output all layers in one swf
>     FORMATOPTION "OUTPUT_MOVIE=SINGLE"
>
>     # the following line is used to output all layers individually
>     #FORMATOPTION "OUTPUT_MOVIE=MULTIPLE"
>   END
>
>
> After mapserver has generated the temp swf file(s) you can use the 
> "loadMovie" actionscript function to load the swf file into a 
> pre-existing container.  For example, create a new swf file with a 
> movie clip called "clip1" and add the following line in actionscript:
>
> loadMovie ( "http://url/to/swf/mymap.swf", "clip1" );
>
> I use PHP and php_mapscript to help manage the files on the fly and 
> Flash to manage my actionscript.
>
> I hope this quick overview helps.
>
> Regards,
> Bill
>
> Lars-goran Edholm wrote:
>
>> Hi!
>> Does anybody have an example of using Mapserver with swf vector output.
>> How do i use the swf-actionscript file to view the layers?
>>
>>
>>  Mvh
>> Lars-Göran Edholm    tel 026/24 14 36
>> 1:e byggnadsinspektör
>> Bygg- och miljökontoret
>> 811 80 Sandviken
>> lars-goran.edholm at sandviken.se
>>
>>
>> _______________________________________________
>> Mapserver-users mailing list
>> Mapserver-users at lists.gis.umn.edu
>> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>>
>
>

-- 
Geoffrey Rowland
Technical Officer
Climate Information Project
NOAA Research
Office of  Global Programs
http://www.cip.ogp.noaa.gov
Contractor, 
RGII Technologies, Inc., a Computer Horizons Company
http://www.rg2.com
Phone: 301-427-2089x186
Fax : 301-427-2082
geoffrey.rowland at noaa.gov

















More information about the mapserver-users mailing list