- Building Web and Mobile ArcGIS Server Applications with JavaScript(Second Edition)
- Eric Pimpler Mark Lewin
- 168字
- 2021-07-02 15:48:59
Using the layer classes
You can use the various layer classes in the API for JavaScript to reference map services hosted by ArcGIS Server and other map servers. All layer classes inherit from the Layer base class. The Layer class has no constructor so you can't create an actual object instance from this class. This base class simply defines properties, methods, and events that must exist in all classes that inherit from it:

As indicated in the preceding figure, DynamicMapServiceLayer, TiledMapServiceLayer, and GraphicsLayer all inherit directly from the Layer class. (Note that there are several other layers that inherit from Layer, but many of those are for special use cases, so our diagram shows only these more commonly-used classes.)
DynamicMapServiceLayer and TiledMapserviceLayer also act as base classes. DynamicMapServiceLayer is the base class for dynamic map services while TiledMapServiceLayer is the base class for tiled map services. Layer, DynamicMapServiceLayer, and TiledMapServiceLayer are all base classes meaning that you can't specifically create an object from these classes in your application.
- 嵌入式軟件系統(tǒng)測(cè)試:基于形式化方法的自動(dòng)化測(cè)試解決方案
- 測(cè)試驅(qū)動(dòng)開(kāi)發(fā):入門(mén)、實(shí)戰(zhàn)與進(jìn)階
- 軟件界面交互設(shè)計(jì)基礎(chǔ)
- DevOps Automation Cookbook
- 從學(xué)徒到高手:汽車電路識(shí)圖、故障檢測(cè)與維修技能全圖解
- Python編程與幾何圖形
- Hands-On Swift 5 Microservices Development
- C語(yǔ)言程序設(shè)計(jì)
- Linux:Embedded Development
- Geospatial Development By Example with Python
- iOS開(kāi)發(fā)項(xiàng)目化入門(mén)教程
- Processing開(kāi)發(fā)實(shí)戰(zhàn)
- Learning QGIS(Second Edition)
- Advanced C++
- Web 2.0策略指南