[Mapserver-users] how to paste an image over the map image???
Stefan Schwarzer
stefan.schwarzer at grid.unep.ch
Wed Feb 19 23:23:20 PST 2003
--=====================_520375530==.ALT
Content-Type: text/plain; charset="us-ascii"; format=flowed
Andress,
is your image a static one? One that doesn't change?
I paste a couple of images over each other by using the <span>-tag. The
code looks like this:
<style>
span.absolute {position: absolute; top: 10px; left: 60px;}
span.absolute2 {position: absolute; top: 0px; left: 50px;}
span.absolute3 {position: absolute; top: 370px; left: 250px;}
</style>
<span class=absolute><input type=image name=map1 src=<? echo $url_ocean ?>
width=<? echo $mapWidth ?> height=350 onClick="javascript: findParam()"></span>
<span class=absolute2><input type=image name=border src="images/border.png"
width=520 height=370></span>
<span class=absolute3>......
Here is the URL: http://gridss.grid.unep.ch/europe/
Ciao,
Stefan
_______________________________________
Stefan Schwarzer
Consultant on GEO
UNEP/DEWA/GRID-Geneva
Chemin des Anemones 11
CH - 1219 Chatelaine
Switzerland
Tel: (+41) 22.917.83.49
Fax: (+41) 22.917.80.29
Email: stefan.schwarzer at grid.unep.ch
Internet: http://geodata.grid.unep.ch/
_______________________________________
>Hi!!
>
>I need to paste an image (a compass) over the map image:
>
>$compass = $mapa->prepareImage();
>$compass->image_path = "/ms_tmp/";
>$compass->image_url = "rosa_vientos.png";
>$compass->saveWebImage($format,0,0,-1);
>$image->pasteImage($compass,-1,0,0);
>
>$image_url = $image->saveWebImage($formato,0,0,-1);
>
>I tried with that code with out success. Can somebody tell me wich is the
>rigth way to paste an image over the image object that is generated by
>mapserver???
>
>thanks in advance
>
>Andress Garcia
>
>_________________________________________________________________
>
>
>_______________________________________________
>Mapserver-users mailing list
>Mapserver-users at lists.gis.umn.edu
>http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
--=====================_520375530==.ALT
Content-Type: text/html; charset="us-ascii"
<html>
<body>
<font size=3>Andress,<br><br>
is your image a static one? One that doesn't change?<br><br>
I paste a couple of images over each other by using the <span>-tag.
The code looks like this:<br><br>
<style><br>
<x-tab> </x-tab>span.absolute
{position: absolute; top: 10px; left: 60px;}<br>
<x-tab> </x-tab>span.absolute2
{position: absolute; top: 0px; left: 50px;}<br>
<x-tab> </x-tab>span.absolute3
{position: absolute; top: 370px; left: 250px;}<br>
</style><br><br>
<span class=absolute><input type=image name=map1 src=<? echo
$url_ocean ?> width=<? echo $mapWidth ?> height=350
onClick="javascript: findParam()"></span><br>
<span class=absolute2><input type=image name=border
src="images/border.png" width=520
height=370></span><br>
<span class=absolute3>......<br><br>
<br>
Here is the URL:
<a href="http://gridss.grid.unep.ch/europe/" eudora="autourl">http://gridss.grid.unep.ch/europe/</a><br><br>
Ciao,<br><br>
Stefan<br><br>
<x-tab> </x-tab>_______________________________________<br><br>
</font><font size=2><x-tab> </x-tab><b>Stefan
Schwarzer<br>
</b><x-tab> </x-tab>Consultant
on GEO<br><br>
<x-tab> </x-tab>UNEP/DEWA/GRID-Geneva<br>
<x-tab> </x-tab>Chemin des
Anemones 11<br>
<x-tab> </x-tab>CH - 1219
Chatelaine<br>
<x-tab> </x-tab>Switzerland<br><br>
<x-tab> </x-tab>Tel: (+41)
22.917.83.49<br>
<x-tab> </x-tab>Fax: (+41)
22.917.80.29<br><br>
<x-tab> </x-tab>Email:
stefan.schwarzer at grid.unep.ch<br>
<x-tab> </x-tab>Internet:
<a href="http://geodata.grid.unep.ch/" eudora="autourl">http://geodata.grid.unep.ch/</a><br>
</font><font size=3><x-tab> </x-tab>_______________________________________<br><br>
<br><br>
<blockquote type=cite class=cite cite>Hi!!<br><br>
I need to paste an image (a compass) over the map image:<br><br>
$compass = $mapa->prepareImage();<br>
$compass->image_path = "/ms_tmp/";<br>
$compass->image_url = "rosa_vientos.png";<br>
$compass->saveWebImage($format,0,0,-1);<br>
$image->pasteImage($compass,-1,0,0);<br><br>
$image_url = $image->saveWebImage($formato,0,0,-1);<br><br>
I tried with that code with out success. Can somebody tell me wich is the
rigth way to paste an image over the image object that is generated by
mapserver???<br><br>
thanks in advance<br><br>
Andress Garcia<br><br>
_________________________________________________________________<br><br>
<br>
_______________________________________________<br>
Mapserver-users mailing list<br>
Mapserver-users at lists.gis.umn.edu<br>
<a href="http://lists.gis.umn.edu/mailman/listinfo/mapserver-users" eudora="autourl">http://lists.gis.umn.edu/mailman/listinfo/mapserver-users</a></font></blockquote></body>
</html>
--=====================_520375530==.ALT--
More information about the MapServer-users
mailing list