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

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.

主站蜘蛛池模板: 营山县| 马公市| 渭南市| 隆化县| 元谋县| 兖州市| 根河市| 罗平县| 海门市| 肃南| 汉寿县| 肃南| 昭苏县| 弋阳县| 和静县| 南雄市| 井陉县| 方城县| 稻城县| 中西区| 天台县| 南乐县| 蓬溪县| 隆子县| 怀仁县| 海盐县| 宜春市| 西乌| 乡城县| 怀宁县| 漯河市| 嫩江县| 塘沽区| 育儿| 奇台县| 永川市| 罗定市| 荔浦县| 宝应县| 大宁县| 龙川县|