Add support for TMS layers

Add bool TMS parameter to base layers to indicate that they are in TMS format.