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

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.

主站蜘蛛池模板: 武隆县| 蒙自县| 内乡县| 五台县| 西林县| 汽车| 宿迁市| 望江县| 米易县| 宁明县| 定西市| 合水县| 炎陵县| 莲花县| 乌兰察布市| 万载县| 抚顺县| 云阳县| 扎兰屯市| 斗六市| 乐业县| 麦盖提县| 海晏县| 平邑县| 宁武县| 郑州市| 大埔区| 六盘水市| 肥东县| 海阳市| 庆阳市| 霍林郭勒市| 肥城市| 兴业县| 丽江市| 叶城县| 翁牛特旗| 广东省| 夹江县| 甘洛县| 乌拉特中旗|