Syntax Highlighing:
comments, key words, predefined symbols, class members & methods, functions & classes
# VertexQry
# Line CartoScript to draw a circle symbol at
# each line vertex.
# Script from Using CartoScripts tutorial.
# Set parameters for circles marking vertices
radius = 5; dofill = 0;
# Draw solid black line
LineStyleSetLineWidth(3);
LineStyleSetColor(0,0,0);
LineStyleDrawLine();
# Draw red circle at beginning of line
LineStyleSetColor(225,0,0);
LineStyleDrawCircle(radius,dofill);
# While not at end of line, move to
# next vertex and draw green circle
LineStyleSetColor(0,225,0);
while ( LineStyleNextVertex() <> 1 ) {
LineStyleDrawCircle(radius,dofill);
}