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

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.

主站蜘蛛池模板: 峡江县| 六枝特区| 建始县| 康定县| 彭水| 连南| 绥江县| 凤庆县| 阳山县| 灌阳县| 随州市| 上虞市| 贵港市| 沾化县| 南陵县| 南昌县| 介休市| 越西县| 察哈| 沅陵县| 焉耆| 秀山| 清丰县| 将乐县| 武清区| 浦东新区| 柳林县| 郑州市| 沙坪坝区| 兴城市| 南华县| 夏河县| 沂水县| 毕节市| 建水县| 淮北市| 锡林浩特市| 长寿区| 韶关市| 南城县| 浮山县|