This example shows you how to render edge badges on the edges. Note how the rendering function skips the icons that are outside of the viewport.