要想在ArcGIS API for JavaScript中使用SimpleRenderer,需要在Require中写什么模块
时间: 2024-03-09 12:47:13 浏览: 29
要想在ArcGIS API for JavaScript中使用SimpleRenderer,需要在Require中写"esri/renderers/SimpleRenderer"模块。例如:
```javascript
require([
"esri/renderers/SimpleRenderer",
... //其他需要的模块
], function(SimpleRenderer, ... //其他需要的模块){
//在这里使用SimpleRenderer
});
```
相关问题
要想在ArcGIS API for JavaScript中使用setRenderer,需要在Require中写什么模块
要想在ArcGIS API for JavaScript中使用setRenderer,需要在Require中写"esri/layers/FeatureLayer"模块。例如:
```javascript
require([
"esri/layers/FeatureLayer",
... //其他需要的模块
], function(FeatureLayer, ... //其他需要的模块){
//在这里使用FeatureLayer的setRenderer方法
});
```
需要注意的是,setRenderer方法是FeatureLayer对象的方法,如果要使用该方法,需要先创建FeatureLayer对象。
要想在ArcGIS API for JavaScript中使用SimpleFillSymbol,需要在Require中写什么模块
要想在ArcGIS API for JavaScript中使用SimpleFillSymbol,需要在Require中写"esri/symbols/SimpleFillSymbol"模块。例如:
```javascript
require([
"esri/symbols/SimpleFillSymbol",
... //其他需要的模块
], function(SimpleFillSymbol, ... //其他需要的模块){
//在这里使用SimpleFillSymbol
});
```
相关推荐
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)