diff --git a/includes/layer_types/js/tms.js b/includes/layer_types/js/tms.js
index 3250c83..ba13a1b 100644
--- a/includes/layer_types/js/tms.js
+++ b/includes/layer_types/js/tms.js
@@ -9,6 +9,7 @@
  */
 Drupal.openlayers.layer.tms = function(title, map, options) {
   var styleMap = Drupal.openlayers.getStyleMap(map, options.drupalID);
+  options.isBaseLayer = options.baselayer;
     if (options.maxExtent !== undefined) {
       options.maxExtent = new OpenLayers.Bounds.fromArray(options.maxExtent);
     }
diff --git a/includes/layer_types/tms.inc b/includes/layer_types/tms.inc
index ad86f24..616c3a5 100644
--- a/includes/layer_types/tms.inc
+++ b/includes/layer_types/tms.inc
@@ -51,6 +51,12 @@ class openlayers_layer_type_tms extends openlayers_layer_type {
         '#default_value' => isset($this->data['layername']) ?
           $this->data['layername'] : ''
       ),
+      'baselayer' => array(
+        '#type' => 'checkbox',
+        '#default_value' => $this->data['baselayer'],
+        '#title' => t('BaseLayer'),
+        '#description' => t('Uncheck to make this map an overlay')
+      ),
       'type' => array(
         '#type' => 'select',
         '#title' => t('File Format'),
