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

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.

主站蜘蛛池模板: 龙门县| 泗洪县| 崇义县| 内乡县| 德惠市| 济阳县| 柞水县| 和林格尔县| 望奎县| 永吉县| 双峰县| 黑龙江省| 临猗县| 巍山| 红安县| 开鲁县| 平武县| 凭祥市| 定远县| 永泰县| 乌拉特后旗| 溧水县| 白河县| 喀喇沁旗| 永春县| 会泽县| 龙里县| 昌乐县| 高阳县| 靖州| 民县| 曲沃县| 绥棱县| 博湖县| 台北县| 弥勒县| 涿州市| 阿勒泰市| 许昌县| 上高县| 元阳县|