skip drawing if extent width is infinity
clean up
make some property widgets gray out if the layer is for debug
add layer by double click