Commit new version of MVS, nasa turned off by default.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@830 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -41,6 +41,7 @@ function getArgs() {
|
||||
|
||||
|
||||
function runMVS() {
|
||||
OpenLayers.ProxyHost = '/proxy/?url=';
|
||||
if (document.location.protocol != "file:") {
|
||||
theArgs = getArgs();
|
||||
} else {
|
||||
@@ -49,7 +50,7 @@ function runMVS() {
|
||||
theArgs.zoom = "0";
|
||||
theArgs.data = "textfile.txt";
|
||||
theArgs.controls = ['panzoom','mouse'];
|
||||
theArgs.layers = ['openlayers', 'nasa'];
|
||||
theArgs.layers = ['openlayers'];
|
||||
}
|
||||
|
||||
|
||||
@@ -61,7 +62,7 @@ function runMVS() {
|
||||
var DEFAULT_LON = 0;
|
||||
var DEFAULT_ZOOM_LEVEL = 0;
|
||||
var DEFAULT_CONTROLS = ['panzoom','mouse'];
|
||||
var DEFAULT_LAYERS = ['openlayers', 'nasa'];
|
||||
var DEFAULT_LAYERS = ['openlayers'];
|
||||
|
||||
var IDX_LAT = 0;
|
||||
var IDX_LON = 1;
|
||||
@@ -84,9 +85,9 @@ function runMVS() {
|
||||
theArgs.layers.split(",") : DEFAULT_LAYERS;
|
||||
|
||||
safeArgs.data = theArgs.data; // TODO: Make this "safe".
|
||||
|
||||
|
||||
// -----
|
||||
var theMVS = new OpenLayers.Map($('map'), {controls: []});
|
||||
var theMVS = new OpenLayers.Map($('map'), {controls: [], maxResolution: 'auto'});
|
||||
for(var i = 0; i < safeArgs.controls.length; i++) {
|
||||
switch(safeArgs.controls[i]) {
|
||||
case 'panzoombar':
|
||||
|
||||
Reference in New Issue
Block a user