//var 表示变量的名称,或者是用户提供的值
//lnglats 数组每一排 8 个坐标
var lnglats = [ [121.389045,31.320459],[121.388718,31.320065],
[121.389592,31.319616],[121.388551,31.319057],
[121.388546,31.318523],[121.388166,31.318065],
[121.388944,31.318156],[121.388745,31.317694],
[121.388182,31.317675],[121.388406,31.315718],
[121.389447,31.317413],[121.389441,31.317024],
[121.388263,31.316932],[121.389158,31.316928],
[121.389259,31.316188],[121.389501,31.318072],
[121.389673,31.317778],[121.39007,31.317471] ,
[121.391166,31.317481],[121.390613,31.315877],
[121.389616,31.315854],[121.391091,31.31903],
[121.390314,31.318954],[121.392062,31.319071],
[121.392716,31.318113],[121.391611,31.319607],
[121.391671,31.31718] ,[121.390334,31.312756],
[121.391176,31.314575],[121.392083,31.312637],
[121.391895,31.313975],[121.389111,31.314361],
[121.389069,31.31229] ,[121.389412,31.311282],
[121.388897,31.31463],[121.393586,31.312904],
[121.394948,31.313301],[121.396971,31.31339],
[121.394411,31.313934], [121.39322,31.315455],
[121.396723,31.314658],[121.392383,31.316079],
[121.396369,31.315057],[121.395463,31.31809],
[121.395951,31.315327],[121.394991,31.316885],
[121.392099,31.31793], [121.392904,31.316638],
[121.394733,31.317206],[121.395678,31.316273],
[121.395742,31.312197],[121.394213,31.318292],
[121.397227,31.318347],[121.390876,31.319755],
[121.393595,31.312046],[121.39293,31.3136]
];
var infoWindow = new AMap.InfoWindow({offset: new
AMap.Pixel(0, -30)});
var Markername = ['北门','校医院','北门交叉口','玄陵网球
馆','V1','V2','国际交流学院 1',
'山明楼','V3','西门交叉口','山明交叉口','S1 交叉口','S2','S1','益
新楼',
'O 楼','I 楼','R 楼','V4','V5','益新交叉口','尔美楼','国际交流学院
2',
'尔美东入口','交叉口','操场入口 1','档案馆','V8','V6','V9','泮池石
桥',
'V12','后勤基建大楼','西南门','V7','上海美术学院', '南门收发