百度地图自定义标注,添加事件,添加信息

map.html 地图页面


	
	
	
	Baidu Map 
	
	
	
	
	



	

数据js文件

var Area={
	"number": 9,
	"retData": [
		{
			"id": "ff808081672011e301672eb45ecc4622",
			"pointName": "社区家长学校",
			"pointCode": "DWLX46",
			"locationId": "ff808081672011e301672a71ad1c1279",
			"locationName": "静安里社区社区家长学校",
			"locationCode": "DWLX46035",
			"quotaCode": "309401",
			"quotaName": "1)规范建设社区家长学校",
			"questionId": "ff808081672011e301672a71a8071144",
			"questionCode": "30940104",
			"questionName": "4.有专职、兼职或志愿者师资队伍;(教师名单必须公示)",
			"optionCode": "0",
			"optionName": "不达标",
			"longitude": "117.656297",
			"latitude": "39.050046",
			"sequence": null,
			"address": "静安里小区内,杭州道街老年人科学大学附近11米",
			"isShowPosition": 0,
			"grade": "88%",
			"deduction": null,
			"resourceList": null,
			"departmentList": null
		},
		{
			"id": "ff808081672011e301672ef690d84864",
			"pointName": "城市社区",
			"pointCode": "DWLX04",
			"locationId": "ff808081672011e301672a71aaac11c7",
			"locationName": "官港第一社区",
			"locationCode": "DWLX04030",
			"quotaCode": "306001",
			"quotaName": "1)环境、设施完好整洁",
			"questionId": "ff808081672011e301672a71a6f310f8",
			"questionCode": "30600103",
			"questionName": "3.设施更新及时,无市政设施老化、生活设施陈旧、破损、不配套现象,无院小路窄停车难、各类线缆凌乱,下水道堵塞、电线老化、楼房部分墙皮脱落或外墙斑驳等现象;",
			"optionCode": "0",
			"optionName": "不达标",
			"longitude": "117.524207",
			"latitude": "38.921783",
			"sequence": null,
			"address": "中国邮政储蓄银行(官港支行)附近3米",
			"isShowPosition": 0,
			"grade": "66%",
			"deduction": null,
			"resourceList": null,
			"departmentList": null
		},
		{
			"id": "ff808081672011e301672ef690e0487b",
			"pointName": "城市社区",
			"pointCode": "DWLX04",
			"locationId": "ff808081672011e301672a71aaac11c7",
			"locationName": "官港第一社区",
			"locationCode": "DWLX04030",
			"quotaCode": "304503",
			"quotaName": "3)文体广场的建设和维护",
			"questionId": "ff808081672011e301672a71a4af1055",
			"questionCode": "30450302",
			"questionName": "2.无被挪用或侵占现象。",
			"optionCode": "0",
			"optionName": "不达标",
			"longitude": "117.514222",
			"latitude": "38.916284",
			"sequence": null,
			"address": "官港溪谷林苑居住小区西南911米",
			"isShowPosition": 0,
			"grade": "99%",
			"deduction": null,
			"resourceList": null,
			"departmentList": null
		},
		{
			"id": "ff808081672011e301672ecb229d46ab",
			"pointName": "城市社区",
			"pointCode": "DWLX04",
			"locationId": "ff808081672011e301672a71aaaf11c8",
			"locationName": "官港第二社区",
			"locationCode": "DWLX04031",
			"quotaCode": "301604",
			"quotaName": "4)加强学雷锋志愿服务站点建设。",
			"questionId": "ff808081672011e301672a71a2970fb9",
			"questionCode": "30160402",
			"questionName": "2.有服务器材和设备(如药箱、雨伞等便民设施和工具)",
			"optionCode": "1",
			"optionName": "达标",
			"longitude": "117.518204",
			"latitude": "38.927438",
			"sequence": null,
			"address": "湖畔家园东北597米",
			"isShowPosition": 0,
			"grade": "93%",
			"deduction": null,
			"resourceList": null,
			"departmentList": null
		},
		{
			"id": "ff808081672011e301672ecb229d46b8",
			"pointName": "城市社区",
			"pointCode": "DWLX04",
			"locationId": "ff808081672011e301672a71aaaf11c8",
			"locationName": "官港第二社区",
			"locationCode": "DWLX04031",
			"quotaCode": "306001",
			"quotaName": "1)环境、设施完好整洁",
			"questionId": "ff808081672011e301672a71a6f910fa",
			"questionCode": "30600105",
			"questionName": "5.生活垃圾定点投放、分类收集,垃圾房、箱(桶)完好、整洁。",
			"optionCode": "0",
			"optionName": "不达标",
			"longitude": "117.632825",
			"latitude": "38.92659",
			"sequence": null,
			"address": "",
			"isShowPosition": 0,
			"grade": "86%",
			"deduction": null,
			"resourceList": null,
			"departmentList": null
		},
		{
			"id": "ff808081672011e301672ecb22ab46e7",
			"pointName": "社区综合文化服务中心",
			"pointCode": "DWLX09",
			"locationId": "ff808081672011e301672a71abe41220",
			"locationName": "官港第二社区综合文化服务中心",
			"locationCode": "DWLX09029",
			"quotaCode": "309402",
			"quotaName": "2)规范建设社区未成年人活动室",
			"questionId": "ff808081672011e301672a71a8ee114b",
			"questionCode": "30940203",
			"questionName": "3.未成年人专属或共享的活动场所有管理制度公示;",
			"optionCode": "1",
			"optionName": "达标",
			"longitude": "117.508587",
			"latitude": "38.913505",
			"sequence": null,
			"address": "",
			"isShowPosition": 0,
			"grade": "77%",
			"deduction": null,
			"resourceList": null,
			"departmentList": null
		},
		{
			"id": "ff808081672011e301672ef690e04882",
			"pointName": "城市社区",
			"pointCode": "DWLX04",
			"locationId": "ff808081672011e301672a71aaac11c7",
			"locationName": "官港第一社区",
			"locationCode": "DWLX04030",
			"quotaCode": "308101",
			"quotaName": "宣传展示精神文明创建内容",
			"questionId": "ff808081672011e301672a71a7a81128",
			"questionCode": "30810103",
			"questionName": "3.小区出入口显著位置设置“精神文明创建宣传栏”(宣传栏名称必须用这个名字),宣传栏内不得直接张贴海报,须有实质内容",
			"optionCode": "0",
			"optionName": "不达标",
			"longitude": "117.528948",
			"latitude": "38.920443",
			"sequence": null,
			"address": "尚海湾西苑西233米",
			"isShowPosition": 0,
			"grade": "88%",
			"deduction": null,
			"resourceList": null,
			"departmentList": null
		},
		{
			"id": "ff808081672011e301672ee651294821",
			"pointName": "城市社区",
			"pointCode": "DWLX04",
			"locationId": "ff808081672011e301672a71aac111cd",
			"locationName": "艾维诺社区",
			"locationCode": "DWLX04036",
			"quotaCode": "304701",
			"quotaName": "1)公共场所文明行为情况",
			"questionId": "ff808081672011e301672a71a50e1071",
			"questionCode": "30470118",
			"questionName": "18.机动车停放整齐有序。",
			"optionCode": "0",
			"optionName": "不达标",
			"longitude": "117.532119",
			"latitude": "38.926127",
			"sequence": null,
			"address": "艾维诺森林西北561米",
			"isShowPosition": 0,
			"grade": "83%",
			"deduction": null,
			"resourceList": null,
			"departmentList": null
		},
		{
			"id": "ff808081672011e301673424442e63c3",
			"pointName": "城市社区",
			"pointCode": "DWLX04",
			"locationId": "ff808081672011e301672a71aa9811c1",
			"locationName": "丹东里社区",
			"locationCode": "DWLX04024",
			"quotaCode": "306001",
			"quotaName": "1)环境、设施完好整洁",
			"questionId": "ff808081672011e301672a71a6ef10f7",
			"questionCode": "30600102",
			"questionName": "2.居民文明养宠物,无宠物随地大小便,无遛狗时不拴狗链,践踏公共绿地等的情况。",
			"optionCode": "0",
			"optionName": "不达标",
			"longitude": "117.661465",
			"latitude": "38.92783",
			"sequence": null,
			"address": "丹东里内,大光明眼镜店(江苏路)东北95米",
			"isShowPosition": 0,
			"grade": "85%",
			"deduction": null,
			"resourceList": null,
			"departmentList": null
		}
	]
}

效果

百度地图自定义标注,添加事件,添加信息_第1张图片

你可能感兴趣的:(前端地图,java)