-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmap1point.pde
59 lines (53 loc) · 985 Bytes
/
map1point.pde
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
void readcitycsv(){
BufferedReader reader;
String reline="0";
reader=createReader("city.csv");
while (reline!=null)
{
try {
reline = reader.readLine();
//print(reline);
}
catch (IOException e) {
reline = null;
}
if(reline==null){
}
else
{
String[] list=split(reline,',');
cityPoint cpt=new cityPoint();
cpt.citynum=list[1];
cpt.attraction=float(list[2]);
citypoint.add(cpt);
}
}
}
void drawcity()
{
for (Marker marker:chinaMarkers)
{
Object locat =marker.getProperty("ct");
//String[] locat1=split(locat0,',');
//print(locat1);
String cityid=marker.getId();
for (cityPoint cpt:citypoint)
{
if (cpt.citynum.equals(cityid) )
{
cpt.cityloc=objectTolocation(locat);
}
}
}
for(cityPoint cpt:citypoint)
{
cpt.mark();
}
}
void pointColorUpdate()
{
for(cityPoint cpt:citypoint)
{
cpt.pcolor();
}
}