looks like the theArgs controls and layers should be initialized as comma separated string values, rather than arrays. also remove repeated line
git-svn-id: http://svn.openlayers.org/trunk/openlayers@854 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -24,8 +24,8 @@ function runMVS() {
|
||||
theArgs.center = "0,0";
|
||||
theArgs.zoom = "0";
|
||||
theArgs.data = "textfile.txt";
|
||||
theArgs.controls = ['panzoom','mouse'];
|
||||
theArgs.layers = ['openlayers'];
|
||||
theArgs.controls = 'panzoom,mouse';
|
||||
theArgs.layers = 'openlayers';
|
||||
}
|
||||
|
||||
|
||||
@@ -53,9 +53,6 @@ function runMVS() {
|
||||
safeArgs.controls = theArgs.controls ?
|
||||
theArgs.controls.split(",") : DEFAULT_CONTROLS;
|
||||
|
||||
safeArgs.controls = theArgs.controls ?
|
||||
theArgs.controls.split(",") : DEFAULT_CONTROLS;
|
||||
|
||||
safeArgs.layers = theArgs.layers ?
|
||||
theArgs.layers.split(",") : DEFAULT_LAYERS;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user