- 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.
推薦閱讀
- PaaS程序設計
- Web全棧工程師的自我修養
- Mathematica Data Analysis
- Learning FuelPHP for Effective PHP Development
- 區塊鏈底層設計Java實戰
- jQuery Mobile移動應用開發實戰(第3版)
- Natural Language Processing with Java and LingPipe Cookbook
- Building Wireless Sensor Networks Using Arduino
- AMP:Building Accelerated Mobile Pages
- Python大規模機器學習
- Three.js權威指南:在網頁上創建3D圖形和動畫的方法與實踐(原書第4版)
- 零基礎入門學習C語言:帶你學C帶你飛
- Learning C# by Developing Games with Unity 3D Beginner's Guide
- 交互設計語言:與萬物對話的藝術(全兩冊)
- D Cookbook