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

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.

主站蜘蛛池模板: 恩平市| 错那县| 玛曲县| 凌云县| 昆明市| 聂拉木县| 定州市| 堆龙德庆县| 大同县| 河东区| 弥勒县| 日喀则市| 益阳市| 抚远县| 中西区| 汝城县| 阿鲁科尔沁旗| 靖安县| 濮阳市| 保德县| 昌都县| 宜春市| 文登市| 北宁市| 上犹县| 玉龙| 尼木县| 绥棱县| 新邵县| 手游| 获嘉县| 隆昌县| 彰化市| 来安县| 双柏县| 酒泉市| 佛教| 卢氏县| 临高县| 吉木乃县| 阳泉市|