- 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.
推薦閱讀
- Spring 5.0 By Example
- Learning C# by Developing Games with Unity 2020
- Learning ArcGIS Pro 2
- Microsoft Dynamics 365 Extensions Cookbook
- iOS開發實戰:從零基礎到App Store上架
- 匯編語言程序設計(第2版)
- Groovy for Domain:specific Languages(Second Edition)
- Full-Stack Vue.js 2 and Laravel 5
- CKA/CKAD應試教程:從Docker到Kubernetes完全攻略
- Linux Device Drivers Development
- Spring+Spring MVC+MyBatis整合開發實戰
- QGIS By Example
- C語言程序設計
- Learning Concurrent Programming in Scala
- PLC應用技術(三菱FX2N系列)