Command Text
CommandVerb¶
'drawFeature'
Parameters
Name | Type | Description |
---|
DrawFeatures | DrawFeature[] | An Array of features to be drawn on the map |
DoClearFirst | bool | Clears all existing geometry before new geometry is drawn. |
HueShift | double | Sets how much to shift the hue. |
NameKey | string | The key of the attribute that is the name field for a feature. |
SymbolType | string | Sets the symbol type for drawing |
SymbolFillColor | string | The fill color for the drawing |
SymbolUrl | string | The url for the marker symbol image. |
SymbolStrokeColor | string | Sets the stroke color for the drawing |
Code Sample
FDOT.Map.executeCommand('drawFeature',
{
SymbolUrl: 'http://tlbstws3.dot.state.fl.us/gisframework/Images/Icons/Weather/Hurricane.png',
NameKey: '1',
DrawFeatures: [
{
Geometry: { x: -9510601.92, y: 3067495.62 },
Attributes: { "1": "1", "2": "2" }
},
{
Geometry: { x: -9510601.92, y: 3267495.62 },
Attributes: { "1": "http://www.google.com", "2": "3" }
}, {
Geometry: { x: -9510601.92, y: 3167495.62 },
Attributes: { "1": "3", "2": "http://www.google.com/||GOOGLE" }
}
]
}
);
See Also