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