Don't draw lines when stroke style is null

This commit is contained in:
Tom Payne
2013-11-07 19:44:48 +01:00
parent ce296aa1d1
commit 256237fee7

View File

@@ -30,6 +30,9 @@ ol.renderer.vector.renderFeature = function(batchGroup, feature, style) {
*/
ol.renderer.vector.renderLineStringGeometry_ =
function(batchGroup, geometry, style) {
if (goog.isNull(style.stroke)) {
return;
}
goog.asserts.assert(geometry instanceof ol.geom.LineString);
var lineStringGeometry = /** @type {ol.geom.LineString} */ (geometry);
window.console.log({batchingLineString: lineStringGeometry}); // FIXME