data.js的内容如下
var activity_data={
//红河街道办事处/羊岔街乡
"53042801":[ {"name":"","geoCoord":[200,350],"value":1},
{"name":"","geoCoord":[360,580],"value":2},
{"name":"","geoCoord":[600,400],"value":3},
{"name":"","geoCoord":[450,180],"value":4},
{"name":"","geoCoord":[400,380],"value":5},
],//
//澧江街道办事处
"53042802":[{"name":"","geoCoord":[60,250],"value":1},///
{"name":"","geoCoord":[290,230],"value":2},///
{"name":"","geoCoord":[120,460],"value":3},//
{"name":"","geoCoord":[350,420],"value":4},//
{"name":"","geoCoord":[210,330],"value":5},
],//
//甘庄街道办事处/青龙厂村
"53042803":[{"name":"","geoCoord":[200,420],"value":1},///
{"name":"","geoCoord":[530,180],"value":2},//
{"name":"","geoCoord":[260,600],"value":3},//
{"name":"","geoCoord":[650,420],"value":4},//
{"name":"","geoCoord":[440,400],"value":5},
],
//曼来镇
"53042804":[{"name":"","geoCoord":[200,320],"value":1},///
{"name":"","geoCoord":[200,440],"value":2},//
{"name":"","geoCoord":[450,320],"value":3},//
{"name":"","geoCoord":[450,460],"value":4},//
{"name":"","geoCoord":[330,380],"value":5},
],
//因远镇:
"53042805":[{"name":"","geoCoord":[260,400],"value":1},///
{"name":"","geoCoord":[270,600],"value":2},///
{"name":"","geoCoord":[550,550],"value":3},//
{"name":"","geoCoord":[550,350],"value":4},//
{"name":"","geoCoord":[400,470],"value":5},
],
//龙潭乡:
"53042806":[{"name":"","geoCoord":[280,250],"value":1},///
{"name":"","geoCoord":[280,550],"value":2},///
{"name":"","geoCoord":[460,550],"value":3},//
{"name":"","geoCoord":[460,250],"value":4},//
{"name":"","geoCoord":[370,400],"value":5},
],
//羊街乡:
"53042807":[{"name":"","geoCoord":[200,180],"value":1},///
{"name":"","geoCoord":[200,400],"value":2},///
{"name":"","geoCoord":[450,400],"value":3},//
{"name":"","geoCoord":[450,180],"value":4},//
{"name":"","geoCoord":[330,290],"value":5},
],
//那诺乡:
"53042808":[{"name":"","geoCoord":[380,200],"value":1},///
{"name":"","geoCoord":[200,480],"value":2},///
{"name":"","geoCoord":[450,580],"value":3},//
{"name":"","geoCoord":[580,300],"value":4},//
{"name":"","geoCoord":[400,400],"value":5},
],
//洼垤乡:
"53042809":[{"name":"","geoCoord":[190,500],"value":1},///
{"name":"","geoCoord":[480,700],"value":2},///
{"name":"","geoCoord":[730,480],"value":3},
{"name":"","geoCoord":[440,230],"value":4},//
{"name":"","geoCoord":[460,440],"value":5},
],
//咪哩乡:
"53042810":[{"name":"","geoCoord":[200,440],"value":1},///
{"name":"","geoCoord":[380,660],"value":2},///
{"name":"","geoCoord":[600,420],"value":3},//
{"name":"","geoCoord":[430,200],"value":4},
{"name":"","geoCoord":[400,430],"value":5},
],
}
然后我在JAVA类中需要这些数据,怎么读取
要用js引擎,比如这个贴子里介绍的方式:
http://www.cnblogs.com/huangjingzhou/articles/2049043.html
补充一下,主要是需要里面的geoCoord
通过Jison传到后台