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

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.

主站蜘蛛池模板: 依安县| 太湖县| 邛崃市| 九龙城区| 库车县| 靖边县| 伊春市| 新宾| 长寿区| 阿巴嘎旗| 堆龙德庆县| 内乡县| 西宁市| 武宣县| 如东县| 宜丰县| 阿克陶县| 苍梧县| 芮城县| 丰城市| 枣强县| 公主岭市| 基隆市| 阿瓦提县| 上杭县| 横峰县| 安吉县| 册亨县| 潞城市| 烟台市| 镇平县| 公主岭市| 桑日县| 亳州市| 涿鹿县| 河间市| 洱源县| 望谟县| 神农架林区| 习水县| 武汉市|