codesite-noreply at google.com
2009-Oct-03 18:13 UTC
[Mapstraction] [mapstraction] r41 committed - Default tile layers to standard overlays, not map types
Revision: 41
Author: ajturner
Date: Sat Oct 3 11:12:59 2009
Log: Default tile layers to standard overlays, not map types
http://code.google.com/p/mapstraction/source/detail?r=41
Modified:
/trunk/source/mxn.core.js
======================================--- /trunk/source/mxn.core.js Sat Oct 3
09:29:49 2009
+++ /trunk/source/mxn.core.js Sat Oct 3 11:12:59 2009
@@ -961,7 +961,7 @@
* @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 @@
copyright_text = copyright_text || "Mapstraction";
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] );
};