pois.js 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. var poiAlpha = {
  2. x: 252,
  3. y: 144,
  4. id: "Poi01",
  5. img: null,
  6. type: "GENERIC",
  7. cat: 'FF',
  8. pin: function(){
  9. },
  10. adapt: function(){
  11. },
  12. setIcon: function(filename){
  13. //small
  14. // this.img=loadImage(filename,
  15. // function(img){
  16. // img.resize(20,20);
  17. // });
  18. //big
  19. // this._img=loadImage(filename,
  20. // function(img){
  21. // img.resize(50,50);
  22. // });
  23. }
  24. };
  25. var pois=[];
  26. //Types
  27. // - "I": immagine
  28. // - "T": Testo/html
  29. // - "V": Video
  30. //Cat(egoies):
  31. // - "FF": flora e fauna
  32. // -
  33. var poi=Object.create(poiAlpha);
  34. //0
  35. poi.x = 346;
  36. poi.y = 332;
  37. poi.id = "First One";
  38. poi.type = 'I';
  39. poi.cat = 'FF'
  40. pois.push(poi);
  41. //1
  42. poi=Object.create(poiAlpha);
  43. poi.x= 746;
  44. poi.y= 432;
  45. poi.id="Two";
  46. poi.type = 'V';
  47. poi.cat = 'AS'
  48. pois.push(poi);
  49. //2
  50. poi=Object.create(poiAlpha);
  51. poi.x= 700;
  52. poi.y= 402;
  53. poi.id="Two";
  54. poi.type = 'T';
  55. poi.cat = 'PR'
  56. pois.push(poi);
  57. //3
  58. poi=Object.create(poiAlpha);
  59. poi.x = 246;
  60. poi.y = 532;
  61. poi.id = "3";
  62. poi.type = 'I';
  63. poi.cat = 'FF'
  64. pois.push(poi);
  65. //4
  66. poi=Object.create(poiAlpha);
  67. poi.x = 646;
  68. poi.y = 532;
  69. poi.id = "4";
  70. poi.type = 'I';
  71. poi.cat = 'FF'
  72. pois.push(poi);
  73. //5
  74. poi=Object.create(poiAlpha);
  75. poi.x = 412;
  76. poi.y = 605;
  77. poi.id = "5";
  78. poi.type = 'I';
  79. poi.cat = 'FF'
  80. pois.push(poi);
  81. //6
  82. poi=Object.create(poiAlpha);
  83. poi.x = 626;
  84. poi.y = 132;
  85. poi.id = "6";
  86. poi.type = 'I';
  87. poi.cat = 'FF'
  88. pois.push(poi);
  89. //7
  90. poi=Object.create(poiAlpha);
  91. poi.x = 211;
  92. poi.y = 483;
  93. poi.id = "7";
  94. poi.type = 'I';
  95. poi.cat = 'FF'
  96. pois.push(poi);
  97. //8
  98. poi=Object.create(poiAlpha);
  99. poi.x = 599;
  100. poi.y = 191;
  101. poi.id = "8";
  102. poi.type = 'I';
  103. poi.cat = 'FF'
  104. pois.push(poi);
  105. //9
  106. poi=Object.create(poiAlpha);
  107. poi.x = 376;
  108. poi.y = 500;
  109. poi.id = "9";
  110. poi.type = 'I';
  111. poi.cat = 'FF'
  112. pois.push(poi);