Welcome Guest, you are in: Login

FDOT Wiki

RSS RSS

GisFramework



Search the wiki
»

DrawCommand

RSS
Modified on Wednesday, 30 November 2011 09:56 AM by 156.75.200.43 Categorized as Commands
The drawCommand allows geometry to drawn on the map and can optionally zoom to the geometry.


CommandVerb

"Draw"

Parameters

NameTypeDescription
DrawingObjectsGeometry[]The list of geometry that should be drawn.
DoClearFirstboolClears all existing geometry before new geometry is drawn.
DoShowLabelsboolSets if the measurement labels are shown.
DoPanboolSets if the map should pan to the geometry.
DoZoomboolSets if the map should zoom to the geometry.
HueShiftdoubleSets how much to shift the hue.
SymbolTypestringSets the symbol type for drawing
SymbolFillColorstringThe fill color for the drawing
SymbolStrokeColorstringSets the stroke color for the drawing

Symbol Types

This the list of symbol types that can be used for drawing points.
SymbolTypeExample
CircleImage
SquareImage
TriangleImage
PentagonImage
HexagonImage
OctagonImage
CrossImage
StrobeImage
RotatingImage

Code Sample


FDOT.Map.executeCommand("draw",
{
    "symbolType":"rotating",
    "symbolFillColor":"#FF000000",
    "symbolStrokeColor":"#FFFFFFFF",
    "DrawingObjects":
    [
        {
            "x":-9391697.881,
            "y":2949365.74568
        }
    ]
});

See Also

  Name Size
- circle.PNG 295 B
- cross.PNG 201 B
- hexagon.PNG 346 B
- octagon.PNG 318 B
- pentagon.PNG 445 B
- rotating.PNG 1012 B
- square.PNG 186 B
- strobe.PNG 1.31 KB
- triangle.PNG 399 B
Any Questions or Comments? Email
Some of the icons created by FamFamFam.