[Mapserver-users] Combining images from several mapfiles

Jan Hartmann jhart at frw.uva.nl
Fri May 16 07:47:28 EDT 2003


Oh, and by the way, you can even set tranparency of the different images 
within the browser in the style items:

Mozilla: <img style="-moz-Opacity:0.5">
IE       <img style="filter:alpha(opacity=50)">

I think both browsers will accept a combined style item:

<img style="-moz-opacity:0.5;filter:alpha(opacity=50)">

Of course, this way you are doing *two* Mapserver requests for one map, 
which requires much more server processing than one map with two layers.

Jan

-------------------------------------------------------------------------


One solution would be to use stacked images in the browser:

<img id=i1 style="position:absolute;left:0;top:0">
<img id=i2 style="position:absolute;left:0;top:0">

<script>
img1 = document.getElementById("i1")
img2 = document.getElementById("i2")
img1.src = "http://.../mapserv?map=first.map&mode=map"
img2.src = "http://.../mapserv?map=second.map&mode=map"
</script>

Of course img2 has to be transparent for img1 to show through.
Marco Ferrari wrote:
> Hi,
> Is it possible to display more than map files in the same browser window?
> I am using a map file with many layers and so I thought to use more than map files.
> According to you, is correct?
> Thanks.
>  
> 
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> 




More information about the mapserver-users mailing list