1  /**
  2   * Create a new ILayer instance. 
  3   * @class ILayer class
  4   * --This class could be considered a concrete implementation class
  5   * @param {object} mapper IMapper object to use of multiple maps (optional).
  6   * @constructor
  7   */
  8 function ILayer(mapper) {
  9 }
 10 
 11 /**
 12   * Create heatmap layer. 
 13   * @see http://www.locationbox.com.tr/web/demo/addheatmapuserpoint.jsp<br> 
 14   * @see http://www.locationbox.com.tr/web/demo/addheatmappoi.jsp
 15   *
 16   * @param {string} typ Type of the layer. Layer types are listed below <br/>
 17   * ILayer.HEATMAP_ULKE <br/>
 18   * ILayer.HEATMAP_IL <br/>
 19   * ILayer.HEATMAP_ILCE <br/>
 20   * ILayer.HEATMAP_MAHALLE <br/><br/>
 21   * @param {String} id Id of the layer
 22   * @param {String} thmtyp Theme type
 23   * ILayer.MAP_BOLGE <br/>
 24   * ILayer.MAP_IL <br/>
 25   * ILayer.MAP_ILCE <br/>
 26   * ILayer.MAP_MAHALLE <br/>
 27   * ILayer.USER_POINT <br/><br/>
 28   * @param {String} where If ILayer.USER_POINT is selected, the where clause for data parameters.
 29   * @param {boolean} visible Visibility of the layer
 30   */
 31 ILayer.prototype.createHeatmapLayer=function(typ, id, thmtyp, where, visible) {
 32   return;
 33 } 
 34 
 35 /**
 36   * Create category layer. <br>
 37   * @see http://www.locationbox.com.tr/web/demo/layercategory.jsp
 38   *
 39   * @param {string} typ Category of layer. See </i>http://www.locationbox.com.tr/web/api_poicategorylist.jsp</i> for category list.
 40   * @param {String} id Id of the layer
 41   * @param {object} sym Style object
 42   * @param {boolean} visible Visibility of the layer
 43   * @param {Function} mouseclick The user defined function that is called when layer is clicked.
 44   */
 45 ILayer.prototype.createCategoryLayer=function(typ, id, sym, visible, mouseclick) {
 46   return;
 47 } 
 48 
 49 
 50 /**
 51   * Create category heatmap layer. 
 52   * @see http://www.locationbox.com.tr/web/demo/addheatmapuserpoint.jsp
 53   * @see http://www.locationbox.com.tr/web/demo/addheatmappoi.jsp
 54   *
 55   * @param {string} typ Category of layer. List of typs:
 56   * ILayer.HEATMAP_ULKE <br/>
 57   * ILayer.HEATMAP_IL <br/>
 58   * ILayer.HEATMAP_ILCE <br/>
 59   * ILayer.HEATMAP_MAHALLE <br/><br/>
 60   * @param {String} id Id of the layer
 61   * @param {String} category The type of category that will be visible. GetCategoryList: http://www.locationbox.com.tr/web/api_poicategorylist.jsp
 62   * @param {boolean} visible Visibility of the layer
 63   */
 64 ILayer.prototype.createCategoryHeatmapLayer=function(typ, id, category, visible) {
 65   return;
 66 } 
 67 
 68 /**
 69   * Create brand layer
 70   * @see http://www.locationbox.com.tr/web/demo/layerbrand.jsp
 71   *
 72   * @param {string} typ Brand of layer. See </i>http://www.locationbox.com.tr/web/api_poibrandlist.jsp</i> for brand list.
 73   * @param {String} id Id of the layer
 74   * @param {object} sym Style object
 75   * @param {boolean} visible Visibility of the layer
 76   * @param {Function} mouseclick The user defined function that is called when layer is clicked.
 77   */
 78 ILayer.prototype.createBrandLayer=function(typ, id, sym, visible, mouseclick) {
 79   return;
 80 } 
 81 
 82 /**
 83   * Create Brand Heat Map layer 
 84   * @see http://www.locationbox.com.tr/web/demo/addheatmappoi.jsp
 85   *
 86   * @param {string} typ Brand of layer.
 87   * @param {string} id Id of the layer
 88   * @param {string} brand See: </i>http://www.locationbox.com.tr/web/api_poibrandlist.jsp</i>
 89   * @param {boolean} visible Visibility of the layer
 90   */
 91 ILayer.prototype.createBrandHeatmapLayer=function(typ, id, brand, visible) {
 92   return;
 93 } 
 94 
 95 /**
 96   * Create Demographic layer
 97   *
 98   * @param {string} typ List of typs:
 99   * ILayer.DEMOGRAFIK_YAS_DURUMU
100   * ILayer.DEMOGRAFIK_NUFUS
101   * ILayer.DEMOGRAFIK_EGITIM
102   * ILayer.DEMOGRAFIK_KONUT_SAYISI
103   * ILayer.DEMOGRAFIK_ARAC_SAYISI 
104   * @param {string} id Id of the layer
105   * @param {boolean} visible Visibility of the layer
106   * @param {Function} mouseclick The user defined function that is called when layer is clicked.
107   */
108 ILayer.prototype.createDemographicLayer=function(typ, id, visible, mouseclick) {
109   return;
110 } 
111 
112  /**
113   * Remove layer
114   */
115 ILayer.prototype.removeLayer=function() {
116   return;
117 }
118 
119 /**
120   * Set layer visibility
121   * @param {boolean} visible Layer visibility 
122   */
123 ILayer.prototype.setVisible=function(visible) {
124   return;
125 }
126 
127 /**
128   * Refresh theme
129   */
130 ILayer.prototype.refresh=function() {
131   return;
132 }
133 
134 /**
135   * Zoom to layer
136   */
137 ILayer.prototype.zoomToLayer=function() {
138   return;
139 }
140 
141 /**
142   * Create a layer
143   *
144   * @param {string} typ Type of the layer. Layer types are listed below <br/>
145   * ILayer.MAP_BOLGE <br/>
146   * ILayer.MAP_IL <br/>
147   * ILayer.MAP_ILCE <br/>
148   * ILayer.MAP_MAHALLE <br/>
149   * ILayer.USER_POINT <br/>
150   * ILayer.USER_REGION <br/>
151   * ILayer.USER_LINE <br/><br/>
152   * @param {String} id Id of the layer
153   * @param {String} where Where clause (@See http://www.locationbox.com.tr/web/demo/layercoloring.jsp)
154   * @param {object} symc Column style object
155   * @param {object} sym Style object
156   * @param {boolean} visible Visibility of the layer
157   * @param {Function} mouseclick The user defined function that is called when layer is clicked.
158   * @param {object} lblc Label object
159   * @param {object} lsym Label object
160   * @param {array} hcols User data(line, region or point) supplied from parameter for mouseclick event. (Usage: var hcols = "STRING_1,STRING_2,NUMBER_1,NUMBER_2".split(",");)
161   *
162   * @example http://locationbox.blogspot.com.tr/2014/04/how-to-use-createlayer-method-using.html  
163   * @see http://www.locationbox.com.tr/web/api_layer.jsp
164   */
165 ILayer.prototype.createLayer=function(typ, id, where, symc, sym, visible, mouseclick, lblc, lsym, hcols) {
166   return;
167 } 
168