check viewParams for null: refs #1588
fix zoom params
fix Z-order