<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -961,7 +961,7 @@ Mapstraction.prototype.addJSON = function(json) {
  * @param {copyright_text} copyright text to use for the tile layer. (default=Mapstraction)
  * @param {min_zoom} Minimum (furtherest out) zoom level that tiles are available (default=1)
  * @param {max_zoom} Maximum (closest) zoom level that the tiles are available (default=18)
- * @param {map_type} Should the tile layer be a selectable map type in the layers palette (default=true)
+ * @param {map_type} Should the tile layer be a selectable map type in the layers palette (default=false)
  */
 Mapstraction.prototype.addTileLayer = function(tile_url, opacity, copyright_text, min_zoom, max_zoom, map_type) {
 	if(!tile_url) {
@@ -973,7 +973,7 @@ Mapstraction.prototype.addTileLayer = function(tile_url, opacity, copyright_text
 	copyright_text = copyright_text || &quot;Mapstraction&quot;;
 	min_zoom = min_zoom || 1;
 	max_zoom = max_zoom || 18;
-	map_type = map_type || true;
+	map_type = map_type || false;
 
 	return this.invoker.go('addTileLayer', [ tile_url, opacity, copyright_text, min_zoom, max_zoom, map_type] );
 };
@@ -1701,4 +1701,57 @@ Polyline.prototype.simplify = function(tolerance) {
 	this.points = reduced;
 };
 
+///////////////
+// Radius    //
+///////////////
+
+/**
+ * Creates a new radius object for drawing circles around a point, does a lot of initial calculation to increase load time
+ * @returns a new Radius
+ * @type Radius
+ * @constructor
+ * @classDescription Radius
+ * @param {Object} Center LatLonPoint of the radius
+ * @param {quality} Number of points that comprise the approximated circle (20 is a good starting point)
+ */
+var Radius = mxn.Radius = function(center, quality) {
+	this.center = center;
+	var latConv = center.latConv();
+	var lonConv = center.lonConv();
+
+	// Create Radian conversion constant
+	var rad = Math.PI / 180;
+	this.calcs = new Array();
+
+	for(var i = 0; i &lt; 360; i += quality)
+		this.calcs.push([Math.cos(i * rad) / latConv, Math.sin(i * rad) / lonConv]);
+}
+
+/**
+ * Returns polyline of a circle around the point based on new radius
+ * @param {Radius} radius
+ * @param {Colour} colour
+ * @returns {Polyline} Polyline
+ */
+Radius.prototype.getPolyline = function(radius, colour) {
+	var points = Array();
+
+	for(var i = 0; i &lt; this.calcs.length; i++){
+		var point = new LatLonPoint(
+			this.center.lat + (radius * this.calcs[i][0]),
+			this.center.lon + (radius * this.calcs[i][1])
+		);
+		points.push(point);
+	}
+
+	// Add first point
+	points.push(points[0]);
+
+	var line = new Polyline(points);
+	line.setColor(colour);
+
+	return line;
+};
+
+
 })();
\ No newline at end of file</diff>
      <filename>source/mxn.core.js</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>1f03cb643aef2422b5f5b62cbf85962e77eb3503</id>
    </parent>
    <parent>
      <id>f4df7bc1520e4c919b48b74761f01ffdcbef2379</id>
    </parent>
  </parents>
  <author>
    <name>Andrew Turner</name>
    <email>andrew@highearthorbit.com</email>
  </author>
  <url>http://github.com/mapstraction/mxn/commit/a9eac92e60ae3374e1bcce65a523858f6ca67aa7</url>
  <id>a9eac92e60ae3374e1bcce65a523858f6ca67aa7</id>
  <committed-date>2009-10-03T11:14:31-07:00</committed-date>
  <authored-date>2009-10-03T11:14:31-07:00</authored-date>
  <message>Merge branch 'master' of git@github.com:mapstraction/mxn</message>
  <tree>da02f3c411de50b9739e5999dafbc978b42f8e0a</tree>
  <committer>
    <name>Andrew Turner</name>
    <email>andrew@highearthorbit.com</email>
  </committer>
</commit>
