Subversion Repositories eFlore/Applications.moissonnage

Rev

Rev 37 | Rev 43 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 37 Rev 42
Line 26... Line 26...
26
				this._markers.splice(index, 1);
26
				this._markers.splice(index, 1);
27
			} else {
27
			} else {
28
				index ++;
28
				index ++;
29
			}
29
			}
30
		}
30
		}
31
		if (this._markers.length == 0 && this._map != null) {
31
		if (this._markers.length == 0) {
-
 
32
			if (this._map != null) {
32
			this._map.removeLayer(this);
33
				this._map.getPanes().markerPane.removeChild(this._icon);
-
 
34
			}
33
			delete this;
35
			delete this;
34
		}
36
		}
-
 
37
	},
-
 
38
	
-
 
39
	supprimer: function() {
-
 
40
		while (this._markers.length > 0) {
-
 
41
			this._markers.splice(0, 1);
-
 
42
		}
-
 
43
		if (this._map != null) {
-
 
44
			this._map.getPanes().markerPane.removeChild(this._icon);
-
 
45
		}
-
 
46
		delete this;
35
	}
47
	}
Line 36... Line 48...
36
	
48
	
Line 95... Line 107...
95
			}
107
			}
96
		}
108
		}
97
	},
109
	},
Line 98... Line 110...
98
	
110
	
99
	supprimerPoint: function(layer) {
-
 
100
		this.removeLayer(layer);
111
	supprimerPoint: function(layer) {
101
		delete layer;
112
		layer.supprimer();
Line 102... Line 113...
102
	}
113
	}
103
	
114