[mapserver-users] Mapplet and Mapsize
    Stepan Kafka 
    stepan.kafka at centrum.cz
       
    Thu Mar  7 00:47:30 PST 2002
    
    
  
Hi,
   I am using sucessfuly this javascript code for changing the java applet
size without redrawing the page (I don´t use it for mapplet but I think it
will be functional for mapplet too):
mapplet.width = mapWidth;
mapplet.height = mapHeight;
mapplet.resize(mapWidth, mapHeight);
(mapWidth and mapHeight are the desired map sizes)
after it you must recalculate new map extent etc.. and redraw the map to
fill the new applet frame.
Good luck
Stepan Kafka
  -----Puvodní zpráva-----
  Od: owner-mapserver-users at lists.gis.umn.edu
[mailto:owner-mapserver-users at lists.gis.umn.edu]za uivatele Brian Fischer
  Odesláno: 6. brezna 2002 21:42
  Komu: mapserver-users at lists.gis.umn.edu
  Predmet: [mapserver-users] Mapplet and Mapsize
  Hi,
  I am trying to add a drop down menu to automatically change the size of
the map.  I am using Steve Limes mapplet and MapServ 3.5.  I can not seem
to get the width and height changed in the applet using JavaScript.  Is this
possible or do I have the syntax wrong?
  function changemapsize() {
    document.mapplet.width.value = "400" ;
    document.mapplet.height.value = "300" ;
    document.mapserv.submit();
    }
  <applet codebase="/tools/mapserv35/java/mapplet" code="mapplet.class"
name="mapplet" width="500" height="400" MAYSCRIPT >
               <param name="image"
value="http://[host]/tools/mapserv35/temp_mapserv/[img]">
               <param name="jitter" value="10">
               <param name="thickness" value="2">
               <param name="color" value="255,0,0">
               <param name="name" value="mapplet">
            </applet>
  Thanks,
  Brian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20020307/45c94f11/attachment.htm>
    
    
More information about the MapServer-users
mailing list