Nuria Gonz?lez wrote:
> Hi,
> 
> I'm using pmapper 2.0.
> 
> How can I change the size of reference map? I changed the map size in 
> map.phtml, but I don't know how to change the refbox size.

in the map file. refbox size should be adapted automatically. There's a 
small bug in map.phtml for the background of the refmap. Change in line 
236 the part

     height:150px
to
     <?php echo (" height:{$refH}px") ?>"


> 
> Other question: I want that two layers are always activated (DEM and rivers 
> layers), but you can't see them in the legend. I got this in this way: I put 
> in these layers  STATUS DEFAULT in .map file. In config.ini I didn't define 
> these layers in allGroups and defGroups, but I had to define a layer in 
> defGroups because if not I got an error, but I don't want to have any 
> activated layer in the legend in the init.
> If I don't defined defGroups, all layers are switched on, but if I defined 
> defGroups > want.
> Have you got any idea about this?
> 

Take the attached toc.js and substitute the existing one with it. This 
should avoid errors in some strange cases anyway.
Then in initmap.php at line 182 change from
        
     $defGroups to
     $defGroups 

armin

-------------- next part --------------
A non-text attachment was scrubbed...
Name: toc.zip
Type: application/x-zip-compressed
Size: 2909 bytes
Desc: not available
Url : 
http://faunalia.it/pipermail/pmapper-users/attachments/20060801/1ce7d161/attachment.bin
 

Reply via email to