要注意,书写时遵循先行性,程序之后用的所有,之前必须设置或定义好,否则没有效果出现
var serviceurl = "https://services.arcgis.com/v6zhfr6zdgnzuvg0/arcgis/rest/services/nycdemographics1/featureserver/0";
var popuptemplate = {
title:"marriage in ny, zip code:{zip}",
content:{
type:"fields",
fieldinfos:[{
fieldname:"",
label:"",
format:{
place:0,
digitseparator:true
}
},{},...]
}
}
var layer = new featurelayer({
url:serviceurl,
outfields:["*"],
popuptemplate:popuptemplate
})
var map = new map({
basemap:"dark-gray"
});
map.add(layer);
var view = new mapview({
container:"viewdiv",
map:map,
center:[-73.950, 40.702],
zoom:13
})
如对本文有疑问, 点击进行留言回复!!
2016年信息安全工程师综合知识第11-15题解析【建群网培信息安全工程师】
MFC的静态库.lib、动态库.dll(包含引入库.lib)以及Unicode库示例
CTF 刷题记录(一) 白云新闻搜索(手动与自动化SQL注入)
网友评论