 
       @glyph              = @build_glyph(@mget("glyph"))
 
+      # XXX: this will be slow (see later in this file), perhaps reuse @glyph.
       @selection_glyph    = @build_glyph(@mget("selection_glyph")    or @mget("glyph"))
       @nonselection_glyph = @build_glyph(@mget("nonselection_glyph") or @mget("glyph"))
 


      @glyph._map_data()

      if @_mask_data? and not (@plot_view.x_range instanceof FactorRange.Model) \
                      and not (@plot_view.y_range instanceof FactorRange.Model)
        indices = @_mask_data()

    draw_legend: (ctx, x0, x1, y0, y1) ->
      @glyph.draw_legend(ctx, x0, x1, y0, y1)

    hit_test: (geometry) ->
      @glyph.hit_test(geometry)

  class GlyphRenderer extends HasParent
    default_view: GlyphRendererView
    type: 'GlyphRenderer'
