- 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.
推薦閱讀
- Getting Started with React
- Blockly創(chuàng)意趣味編程
- Learning Firefox OS Application Development
- Mastering Yii
- Mastering KnockoutJS
- 數(shù)據(jù)結(jié)構(gòu)與算法分析(C++語(yǔ)言版)
- Active Directory with PowerShell
- Regression Analysis with Python
- Android應(yīng)用開(kāi)發(fā)深入學(xué)習(xí)實(shí)錄
- ExtJS Web應(yīng)用程序開(kāi)發(fā)指南第2版
- Orchestrating Docker
- 一步一步學(xué)Spring Boot:微服務(wù)項(xiàng)目實(shí)戰(zhàn)(第2版)
- Python面向?qū)ο缶幊蹋ǖ?版)
- 測(cè)試工程師Python開(kāi)發(fā)實(shí)戰(zhàn)
- 虛擬現(xiàn)實(shí):引領(lǐng)未來(lái)的人機(jī)交互革命