Lint and names

This commit is contained in:
Tim Schaub
2013-02-18 22:20:50 -07:00
parent ce4b95f960
commit 46e31f9f9a

View File

@@ -18,6 +18,7 @@ goog.require('ol.style.LiteralLine');
goog.require('ol.style.LiteralPolygon'); goog.require('ol.style.LiteralPolygon');
goog.require('ol.style.LiteralShape'); goog.require('ol.style.LiteralShape');
goog.require('ol.style.ShapeType'); goog.require('ol.style.ShapeType');
goog.require('ol.tilegrid.TileGrid');
@@ -150,7 +151,7 @@ ol.renderer.canvas.VectorLayer = function(mapRenderer, layer) {
* lazily so we have access to the view projection. * lazily so we have access to the view projection.
* *
* @private * @private
* @type {ol.TileGrid} * @type {ol.tilegrid.TileGrid}
*/ */
this.tileGrid_ = null; this.tileGrid_ = null;
@@ -200,7 +201,7 @@ ol.renderer.canvas.VectorLayer.prototype.renderFrame =
if (goog.isNull(tileGrid)) { if (goog.isNull(tileGrid)) {
// lazy tile source creation to match the view projection // lazy tile source creation to match the view projection
tileGrid = ol.tilegrid.createForProjection( tileGrid = ol.tilegrid.createForProjection(
view2DState.projection, view2DState.projection,
22, // should be no harm in going big here - ideally, it would be ∞ 22, // should be no harm in going big here - ideally, it would be ∞
new ol.Size(512, 512)); new ol.Size(512, 512));
this.tileGrid_ = tileGrid; this.tileGrid_ = tileGrid;
@@ -294,7 +295,7 @@ ol.renderer.canvas.VectorLayer.prototype.renderFrame =
// render features by geometry type // render features by geometry type
var filters = this.geometryFilters_, var filters = this.geometryFilters_,
numFilters = filters.length, numFilters = filters.length,
i, spatialFilter, extentFilter, type, features, symbolizer; i, geomFilter, extentFilter, type, features, symbolizer;
for (x = tileRange.minX; x <= tileRange.maxX; ++x) { for (x = tileRange.minX; x <= tileRange.maxX; ++x) {
for (y = tileRange.minY; y <= tileRange.maxY; ++y) { for (y = tileRange.minY; y <= tileRange.maxY; ++y) {
tileCoord = new ol.TileCoord(z, x, y); tileCoord = new ol.TileCoord(z, x, y);
@@ -306,10 +307,10 @@ ol.renderer.canvas.VectorLayer.prototype.renderFrame =
extentFilter = new ol.filter.Extent( extentFilter = new ol.filter.Extent(
tileGrid.getTileCoordExtent(tileCoord)); tileGrid.getTileCoordExtent(tileCoord));
for (i = 0; i < numFilters; ++i) { for (i = 0; i < numFilters; ++i) {
spatialFilter = filters[i]; geomFilter = filters[i];
type = spatialFilter.getType(); type = geomFilter.getType();
features = source.getFeatures(new ol.filter.Logical( features = source.getFeatures(new ol.filter.Logical(
[spatialFilter, extentFilter], ol.filter.LogicalOperator.AND)); [geomFilter, extentFilter], ol.filter.LogicalOperator.AND));
if (features.length) { if (features.length) {
// TODO: layer.getSymbolizerLiterals(features) or similar // TODO: layer.getSymbolizerLiterals(features) or similar
symbolizer = this.symbolizers_[type]; symbolizer = this.symbolizers_[type];