- 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.
推薦閱讀
- Magento 2 Theme Design(Second Edition)
- 區塊鏈架構與實現:Cosmos詳解
- TestNG Beginner's Guide
- Learn Programming in Python with Cody Jackson
- Mastering Rust
- SQL基礎教程(視頻教學版)
- Visual Basic程序設計
- Python算法詳解
- Kotlin開發教程(全2冊)
- Mastering Python Design Patterns
- Red Hat Enterprise Linux Troubleshooting Guide
- Vue.js應用測試
- C++ Fundamentals
- Xamarin Cross-Platform Development Cookbook
- Raspberry Pi Robotic Projects