官术网_书友最值得收藏!

Graphics

A graphic object represents an individual point, line, or polygon feature drawn on the webmap. The graphic object has four main parts: its geometry, symbol, attributes, and infoTemplate. They are used in many parts of the API. If you draw something on the map, you create a graphic. If you query a map service for something, it returns a list of graphics. Some modules even accept lists of graphics as arguments for other functions.

The graphic object can be constructed with up to four optional arguments:

  • geometry: It describes the shape of the graphic drawn on the map
  • symbol: It describes the graphic's color, thickness, and features that affect the appearance of the graphic
  • attribute: A JavaScript object containing name-value pairs of tabular data that correspond with the feature
  • infoTemplate: It formats the look of the graphic attributes when highlighted by the map's InfoWindow

We'll look more closely at these graphic features in the following sections.

主站蜘蛛池模板: 余姚市| 繁昌县| 岳阳县| 高安市| 嘉义市| 大兴区| 夏河县| 江山市| 博湖县| 鄂伦春自治旗| 南开区| 新津县| 莱阳市| 建德市| 霍城县| 醴陵市| 从江县| 烟台市| 凤城市| 满城县| 叶城县| 罗定市| 同德县| 琼中| 岐山县| 琼结县| 武宁县| 新郑市| 南城县| 启东市| 晋城| 花垣县| 米林县| 南涧| 武义县| 那坡县| 西安市| 古蔺县| 尉氏县| 姜堰市| 玉林市|