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

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.

主站蜘蛛池模板: 靖州| 沙河市| 九龙城区| 安丘市| 乌拉特中旗| 闸北区| 都昌县| 繁峙县| 平乡县| 建阳市| 昔阳县| 资中县| 上杭县| 黎平县| 兰溪市| 西乌| 雅江县| 东光县| 民权县| 康定县| 江孜县| 探索| 溧水县| 广东省| 都匀市| 甘谷县| 那坡县| 桑日县| 枞阳县| 谷城县| 开阳县| 张北县| 曲阳县| 咸阳市| 镇坪县| 灵川县| 米泉市| 湄潭县| 仪陇县| 旅游| 库车县|