Welcome Guest, you are in: Login

FDOT Wiki

RSS RSS

GisFramework



Search the wiki
»

DrawFeaturesCommand

RSS
Modified on Tuesday, 10 April 2012 03:25 PM by 156.75.200.226 Categorized as Uncategorized
Command Text


CommandVerb

'drawFeature'

Parameters

NameTypeDescription
DrawFeaturesDrawFeature[]An Array of features to be drawn on the map
DoClearFirstboolClears all existing geometry before new geometry is drawn.
HueShiftdoubleSets how much to shift the hue.
NameKeystringThe key of the attribute that is the name field for a feature.
SymbolTypestringSets the symbol type for drawing
SymbolFillColorstringThe fill color for the drawing
SymbolUrlstringThe url for the marker symbol image.
SymbolStrokeColorstringSets 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

Any Questions or Comments? Email
Some of the icons created by FamFamFam.