dymanic extent in php-mapscript (returning -1,-1,-1,-1)

James Sohr jms4 at PO.CWRU.EDU
Mon Apr 18 12:40:49 EDT 2005


You cannot change the extent by simply assigning a new rectangle object to
map->extent.  In fact, you can't even change it by directly changing the
map->extent values.  Instead, use the setextent method:


$map->setextent($ext->minx, $ext->miny, $ext->maxx, $ext->maxy);



HTH,
  James



More information about the mapserver-users mailing list