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

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.

主站蜘蛛池模板: 长阳| 沽源县| 洛扎县| 滦平县| 临武县| 龙门县| 萨嘎县| 湟源县| 揭西县| 广宗县| 宁夏| 宿州市| 肇庆市| 云和县| 沾益县| 松江区| 清镇市| 志丹县| 延寿县| 通许县| 江城| 全南县| 修文县| 平原县| 银川市| 镇坪县| 伊川县| 阜南县| 营口市| 昭平县| 伊宁市| 泾川县| 吉隆县| 共和县| 潞西市| 鸡东县| 弥渡县| 无锡市| 本溪市| 陇南市| 陆良县|