         if x > 0 and x < width and y > 0 and y < height
           segmentSymbols.push(point)
 
-    geo.selectAll('.segmentSymbol').data(segmentSymbols)
+    symbols.selectAll('.segmentSymbol').data(segmentSymbols)
       .enter().append('g')
         .attr('class', 'symbol segmentSymbol')
         .each (d) ->

    updateSymbols()

  updateSymbols = ->
    geo.selectAll('.symbol')
        .attr 'transform', (d) ->
          "translate(#{d3.round(d) for d in projection(d.geometry.coordinates)})"



  svg = d3.select('body').append('svg')

  ways = svg.append('g')
  symbols = svg.append('g')

  svg.append('rect')
      .attr('class', 'zoomrect')
      .call(zoom)

  ways.selectAll('.way')
      .data(segmentLayer)
    .enter().append('path')
      .attr('class', 'way')
