当前位置: 首页>>代码示例 >>用法及示例精选 >>正文


JavaScript ArcGIS FeatureLayer.minScale用法及代码示例


基本信息

以下是所在类或对象的基本信息。

AMD: require(["esri/layers/FeatureLayer"], (FeatureLayer) => { /* code goes here */ });

ESM: import FeatureLayer from "@arcgis/core/layers/FeatureLayer";

类: esri/layers/FeatureLayer

继承: FeatureLayer > Layer > Accessor

自从:用于 JavaScript 4.0 的 ArcGIS API

用法说明

FeatureLayer.minScale函数(或属性)的定义如下:

minScale Number


图层在视图中可见的最小比例(最大程度缩小)。如果Map缩小到超出此比例,则该图层将不可见。值 0 表示该图层没有最小比例。 minScale 值应始终大于 maxScale 值,且小于或等于服务规范。

默认值:0

例子:

// The layer will not be visible when the view is zoomed out beyond a scale of 1:3,000,000
layer.minScale = 3000000;
// The layer's visibility is not restricted to a minimum scale.
layer.minScale = 0;

相关用法


注:本文由纯净天空筛选整理自arcgis.com大神的英文原创作品 FeatureLayer.minScale。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。