官术网_书友最值得收藏!

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.

主站蜘蛛池模板: 济南市| 兴国县| 五原县| 三都| 汝南县| 观塘区| 沙洋县| 大厂| 新干县| 资中县| 陵川县| 缙云县| 大邑县| 津南区| 磴口县| 宜春市| 什邡市| 奇台县| 闸北区| 即墨市| 怀柔区| 缙云县| 化德县| 化隆| 康平县| 吉安市| 巢湖市| 宿松县| 新沂市| 青田县| 建宁县| 体育| 武功县| 乐山市| 龙岩市| 烟台市| 达拉特旗| 营口市| 石泉县| 洪湖市| 分宜县|