@@ -41,7 +41,7 @@ ol.renderer.canvas.VectorLayer = function(mapRenderer, layer) {
|
||||
* @type {CanvasRenderingContext2D}
|
||||
*/
|
||||
this.context_ = /** @type {CanvasRenderingContext2D} */
|
||||
this.canvas_.getContext('2d');
|
||||
(this.canvas_.getContext('2d'));
|
||||
|
||||
/**
|
||||
* @private
|
||||
@@ -254,7 +254,7 @@ ol.renderer.canvas.VectorLayer.prototype.renderFrame =
|
||||
|
||||
if (goog.isNull(this.tileArchetype_)) {
|
||||
this.tileArchetype_ = /** @type {HTMLCanvasElement} */
|
||||
goog.dom.createElement(goog.dom.TagName.CANVAS);
|
||||
(goog.dom.createElement(goog.dom.TagName.CANVAS));
|
||||
this.tileArchetype_.width = tileSize.width;
|
||||
this.tileArchetype_.height = tileSize.height;
|
||||
}
|
||||
@@ -363,7 +363,7 @@ ol.renderer.canvas.VectorLayer.prototype.renderFrame =
|
||||
tile = /** @type {HTMLCanvasElement} */ (this.tileCache_.get(key));
|
||||
} else {
|
||||
tile = /** @type {HTMLCanvasElement} */
|
||||
this.tileArchetype_.cloneNode(false);
|
||||
(this.tileArchetype_.cloneNode(false));
|
||||
tile.getContext('2d').drawImage(sketchCanvas,
|
||||
(tileRange.minX - tileCoord.x) * tileSize.width,
|
||||
(tileCoord.y - tileRange.maxY) * tileSize.height);
|
||||
|
||||
@@ -133,7 +133,7 @@ ol.structs.RTreeNode_.prototype.divide = function() {
|
||||
goog.object.extend(this.types, node.types);
|
||||
this.children.push(node);
|
||||
}
|
||||
child.parent = /** @type {ol.structs.RTreeNode_} */ node;
|
||||
child.parent = /** @type {ol.structs.RTreeNode_} */ (node);
|
||||
goog.object.extend(node.types, child.types);
|
||||
node.children.push(child);
|
||||
node.extend(child);
|
||||
@@ -164,7 +164,7 @@ ol.structs.RTree = function() {
|
||||
* @return {Object.<string, Object>} Results for the passed bounding box.
|
||||
*/
|
||||
ol.structs.RTree.prototype.find = function(bounds, opt_type) {
|
||||
var results = /** @type {Object.<string, Object>} */ {};
|
||||
var results = /** @type {Object.<string, Object>} */ ({});
|
||||
this.root_.find(bounds, results, opt_type);
|
||||
return results;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user