Fix wrong setDimensions call (dimensions is a method on Layers)

This commit is contained in:
Bryan Housel
2016-09-08 22:35:36 -04:00
parent 15b3a44c9a
commit 41b2122efe
+3 -4
View File
@@ -54,7 +54,7 @@ export function restrictions(field, context) {
.translate([c[0] - s[0], c[1] - s[1]])
.clipExtent([[0, 0], d]);
var drawLayers = setDimensions(Layers(projection, context).only('osm'), d),
var drawLayers = Layers(projection, context).only('osm').dimensions(d),
drawVertices = Vertices(projection, context),
drawLines = Lines(projection, context),
drawTurns = Turns(projection, context);
@@ -65,9 +65,8 @@ export function restrictions(field, context) {
.call(hover);
var surface = wrap.selectAll('.surface');
setDimensions(surface, d)
var surface = wrap.selectAll('.surface')
.call(setDimensions, d)
.call(drawVertices, graph, [vertex], filter, extent, z)
.call(drawLines, graph, intersection.ways, filter)
.call(drawTurns, graph, intersection.turns(fromNodeID));