Img.js 317 B

12345678910111213141516
  1. //CLASS: ��ʾͼ���ࡣ
  2. function Img(points, image) {
  3. Geometry.apply(this, arguments);
  4. this.points = points;
  5. if(typeof image == Image) {
  6. this.useUrl = false;
  7. this.image = image;
  8. }else {
  9. this.useUrl = true;
  10. this.image = image;
  11. }
  12. };
  13. Img.prototype = new Geometry();
  14. Img.prototype.geoType = "Img";