- 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.
推薦閱讀
- Django+Vue.js商城項目實戰
- ReSharper Essentials
- Vue.js 3.x從入門到精通(視頻教學版)
- 趣學Python算法100例
- Serverless架構
- 數據結構習題解析與實驗指導
- Express Web Application Development
- Android Wear Projects
- HTML+CSS+JavaScript網頁設計從入門到精通 (清華社"視頻大講堂"大系·網絡開發視頻大講堂)
- Mockito Essentials
- 計算機應用技能實訓教程
- 從Power BI到Analysis Services:企業級數據分析實戰
- 零基礎看圖學ScratchJr:少兒趣味編程(全彩大字版)
- Python Programming for Arduino
- 程序員必會的40種算法