The most significant addition in jGoBoard 2.0 is the ability to place markers on the board. This enables applications utilizing jGoBoard to display about 99,5 % of SGF files out there. Markers can also be used to indicate the last move, or a ko that is taking place.
Basic design decision in jGoBoard 2 was to create separate layers above the board:
- Top layer that contains the markers
- Middle layer that contains the stones
- Bottom layer that contains the shadows cast by stones
So how to create a marker? It’s very simple. Remember how we made the board object: