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

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.

主站蜘蛛池模板: 延津县| 雅江县| 邵武市| 宜章县| 绩溪县| 疏勒县| 湟源县| 香河县| 石门县| 宁蒗| 邓州市| 申扎县| 灵石县| 本溪市| 阿鲁科尔沁旗| 湟中县| 通渭县| 通州区| 哈密市| 邢台市| 禄劝| 新宁县| 宁阳县| 锡林郭勒盟| 墨玉县| 灵宝市| 乌鲁木齐县| 乌拉特前旗| 凉山| 蒙自县| 邵东县| 视频| 织金县| 铜鼓县| 富蕴县| 庐江县| 星座| 太康县| 腾冲县| 石台县| 资源县|