Permalink
Browse files

Unused var and some notes

  • Loading branch information...
tschaub committed Jan 22, 2013
1 parent 4e6b864 commit 35f6984e69601215681781ab698b1743deba3713
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/ol/renderer/canvas/canvasvectorlayerrenderer.js
@@ -88,8 +88,6 @@ ol.renderer.canvas.VectorLayer.prototype.getTransform = function() {
ol.renderer.canvas.VectorLayer.prototype.renderFrame =
function(frameState, layerState) {
- var view2DState = frameState.view2DState;
-
var layer = this.getVectorLayer();
var source = layer.getVectorSource();
var extent = frameState.extent;
@@ -123,7 +121,8 @@ ol.renderer.canvas.VectorLayer.prototype.renderFrame =
var canvasRenderer = new ol.renderer.canvas.Renderer(
canvas, frameState.coordinateToPixelMatrix);
- // TODO: get these elsewhere
+ // TODO: implement layer.setStyle(style) where style is a set of rules
+ // and a rule has a filter and array of symbolizers
var symbolizers = {};
symbolizers[ol.geom.GeometryType.POINT] = new ol.style.LiteralShape({
type: ol.style.ShapeType.CIRCLE,
@@ -155,6 +154,7 @@ ol.renderer.canvas.VectorLayer.prototype.renderFrame =
type = filter.getType();
features = source.getFeatures(filter);
if (features.length) {
+ // TODO: layer.getSymbolizerLiterals(features) or similar
symbolizer = symbolizers[type];
canvasRenderer.renderFeaturesByGeometryType(type, features, symbolizer);
}

0 comments on commit 35f6984

Please sign in to comment.