Meaningful variable names

This commit is contained in:
Frederic Junod
2013-06-20 16:56:59 +02:00
parent 22adf354e2
commit 4217c5e47a
2 changed files with 13 additions and 13 deletions

View File

@@ -8,11 +8,11 @@ goog.require('ol.layer.TileLayer');
goog.require('ol.source.OSM');
var control = new ol.control.ScaleLine();
var scaleLineControl = new ol.control.ScaleLine();
var map = new ol.Map({
controls: ol.control.defaults({}, [
control
scaleLineControl
]),
layers: [
new ol.layer.TileLayer({
@@ -28,5 +28,5 @@ var map = new ol.Map({
});
var units = new ol.dom.Input(document.getElementById('units'));
units.bindTo('value', control, 'units');
var unitsSelect = new ol.dom.Input(document.getElementById('units'));
unitsSelect.bindTo('value', scaleLineControl, 'units');