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

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.

主站蜘蛛池模板: 苗栗县| 高邮市| 渭源县| 尖扎县| 九江市| 涞源县| 璧山县| 东平县| 岑溪市| 吉安市| 德庆县| 多伦县| 衡阳市| 台北市| 绥棱县| 曲靖市| 石家庄市| 辽阳县| 县级市| 文化| 义马市| 灵石县| 长丰县| 申扎县| 灯塔市| 阿坝| 婺源县| 卓尼县| 济宁市| 永顺县| 全南县| 偃师市| 固镇县| 正镶白旗| 张家口市| 布尔津县| 江孜县| 顺平县| 香格里拉县| 慈溪市| 外汇|