- Mastering ArcGIS Server Development with JavaScript
- Ken Doman
- 157字
- 2021-07-16 20:03:03
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 mapsymbol
: It describes the graphic's color, thickness, and features that affect the appearance of the graphicattribute
: A JavaScript object containing name-value pairs of tabular data that correspond with the featureinfoTemplate
: It formats the look of the graphic attributes when highlighted by the map'sInfoWindow
We'll look more closely at these graphic features in the following sections.
推薦閱讀
- Vue 3移動Web開發(fā)與性能調優(yōu)實戰(zhàn)
- 基于粒計算模型的圖像處理
- 程序員面試白皮書
- 數(shù)據(jù)庫原理及應用(Access版)第3版
- C語言程序設計案例教程(第2版)
- Git高手之路
- Web Development with MongoDB and Node(Third Edition)
- NoSQL數(shù)據(jù)庫原理
- Arduino可穿戴設備開發(fā)
- Android應用開發(fā)實戰(zhàn)
- Exploring SE for Android
- .NET 4.0面向對象編程漫談:應用篇
- Extending Docker
- Learning Scrapy
- Image Processing with ImageJ(Second Edition)