LinerRing.js 449 B

123456789101112131415
  1. //CLASS�������������
  2. function LinerRing(points) {
  3. Line.apply(this, arguments);
  4. if(points) {
  5. this.points = points;
  6. var len = this.points.length;
  7. if(this.points[0].x != this.points[len-1].x || this.points[0].y != this.points[len-1].y) {
  8. this.points.push(this.points[0].clone());
  9. }
  10. }
  11. };
  12. LinerRing.prototype = new Line();
  13. LinerRing.prototype.geoType = "LinerRing";