html - How to draw a marker in middle of path? -


i have path (which line). able draw arrowhead of marker-end attribute of path. want make + sign in middle of path. think purpose, marker-mid should used.

here code , output when use marker-end. enter image description here

here code , output when use marker-mid. enter image description here

marker-mid specifies marker type should placed points in path not first or last point.

in other words, if have path consists of 4 points (thus 3 lines), marker-mid markers placed on middle 2 points.

there no way automatically place markers in middle of line segment wish. need either place appropriate shape @ point yourself, or split line 2 half-lines.

svg 2, still in development, have feature, can't yet.


Comments

Popular posts from this blog

facebook - android ACTION_SEND to share with specific application only -

python - Creating a new virtualenv gives a permissions error -

javascript - cocos2d-js draw circle not instantly -