<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="MSHTML 5.00.2614.3500" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hello all,</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I have a problem with a CGI script - in zooming 
in/out.&nbsp; I am drawing layers from a map file, 2 of the layers being created 
on the fly from a flat file of point labels and co-ordinates.&nbsp; One of the 
'dynamic' layers is a line shape and can be added as a feature to the layer, the 
other is a set of points and labels, each of which has to be drawn separately 
(there may be another way of doing it but I haven't discovered it 
yet).</FONT></DIV>
<DIV><FONT face=Arial size=2>My set_extent subroutine seems to work in that the 
map extent is changed, but when the map is drawn it presents as a little map in 
the top left hand corner if I am zooming in - it's like the exent is working but 
the scale of the map is not changing.&nbsp; What am I missing?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Thanks in anticipation of any help 
offered.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Regards</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Marie</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Extract from the code:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&amp;set_extent($zoomdir, $zoomsize, $imgx, $imgy, 
@image_extent);</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial 
size=2>$shape_layer-&gt;addFeature($shape);<BR>$shape_layer-&gt;close();</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2># Now draw all the map layers.&nbsp; Point layer 
with labels will be drawn separately after this<BR>for my $i (0 
..($map-&gt;{numlayers}-1))<BR>{ <BR>&nbsp;&nbsp; my $layer = 
$map-&gt;getLayer($i);<BR>&nbsp;&nbsp; $success = $layer-&gt;draw($map, 
$image);<BR>&nbsp;&nbsp; print DBG "Drew layer $layer-&gt;{name} --------- $i 
------ $success\n"; <BR>}<BR></FONT></DIV>
<DIV><FONT face=Arial size=2>$num_stops = @stops_list -1;<BR>for my $i (0 .. 
$num_stops)<BR>{<BR>&nbsp;&nbsp; $display_count = $i + 1;<BR>&nbsp;&nbsp; my 
($x, $y, $desc) = split(/\t/, $stops_list[$i]);<BR>&nbsp;&nbsp; if ($i==0) { 
$desc="[ $display_count ] START," . $desc; }<BR>&nbsp;&nbsp; if ($i== 
($num_stops)) { $desc = "[ $display_count ] FINISH," . $desc; }<BR>&nbsp;&nbsp; 
if ($i &gt; 0 &amp;&amp; $i &lt; ($num_stops)) { $desc = "[ $display_count ]"; 
}<BR>&nbsp;&nbsp; print DBG "$stops_list[$i] ... $i ... $desc 
\n";<BR>&nbsp;&nbsp; $draw_pt1=new pointObj();<BR>&nbsp;&nbsp; $draw_pt1-&gt;{x} 
= $x;<BR>&nbsp;&nbsp; $draw_pt1-&gt;{y} = $y;<BR>&nbsp;&nbsp; 
$draw_pt1-&gt;draw($map, $pt_label, $image, undef, "$desc"); <BR>&nbsp;&nbsp; 
$draw_pt2=new pointObj();<BR>&nbsp;&nbsp; $draw_pt2-&gt;{x} = 
$x;<BR>&nbsp;&nbsp; $draw_pt2-&gt;{y} = $y;<BR>&nbsp;&nbsp; 
$draw_pt2-&gt;draw($map, $pt_layer, $image, undef, undef); <BR>&nbsp;&nbsp; 
$i++;<BR>}</FONT></DIV></BODY></HTML>