olImageLoadError css class added to prevent broken WMTS tiles
zoom to layer record now works on WMTS layers too
minor code optimization