Class Index | File Index

Classes


Class ILayer

ILayer class --This class could be considered a concrete implementation class
Defined in: locationbox_layer.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
ILayer(mapper)
Create a new ILayer instance.
Method Summary
Method Attributes Method Name and Description
 
createBrandHeatmapLayer(typ, id, brand, visible)
Create Brand Heat Map layer
 
createBrandLayer(typ, id, sym, visible, mouseclick)
Create brand layer
 
createCategoryHeatmapLayer(typ, id, category, visible)
Create category heatmap layer.
 
createCategoryLayer(typ, id, sym, visible, mouseclick)
Create category layer.
 
createDemographicLayer(typ, id, visible, mouseclick)
Create Demographic layer
 
createHeatmapLayer(typ, id, thmtyp, where, visible)
Create heatmap layer.
 
createLayer(typ, id, where, symc, sym, visible, mouseclick, lblc, lsym, hcols)
Create a layer
 
Refresh theme
 
Remove layer
 
setVisible(visible)
Set layer visibility
 
Zoom to layer
Class Detail
ILayer(mapper)
Create a new ILayer instance.
Parameters:
{object} mapper
IMapper object to use of multiple maps (optional).
Method Detail
createBrandHeatmapLayer(typ, id, brand, visible)
Create Brand Heat Map layer
Parameters:
{string} typ
Brand of layer.
{string} id
Id of the layer
{string} brand
See: http://www.locationbox.com.tr/web/api_poibrandlist.jsp
{boolean} visible
Visibility of the layer
See:
http://www.locationbox.com.tr/web/demo/addheatmappoi.jsp

createBrandLayer(typ, id, sym, visible, mouseclick)
Create brand layer
Parameters:
{string} typ
Brand of layer. See http://www.locationbox.com.tr/web/api_poibrandlist.jsp for brand list.
{String} id
Id of the layer
{object} sym
Style object
{boolean} visible
Visibility of the layer
{Function} mouseclick
The user defined function that is called when layer is clicked.
See:
http://www.locationbox.com.tr/web/demo/layerbrand.jsp

createCategoryHeatmapLayer(typ, id, category, visible)
Create category heatmap layer.
Parameters:
{string} typ
Category of layer. List of typs: ILayer.HEATMAP_ULKE
ILayer.HEATMAP_IL
ILayer.HEATMAP_ILCE
ILayer.HEATMAP_MAHALLE

{String} id
Id of the layer
{String} category
The type of category that will be visible. GetCategoryList: http://www.locationbox.com.tr/web/api_poicategorylist.jsp
{boolean} visible
Visibility of the layer
See:
http://www.locationbox.com.tr/web/demo/addheatmapuserpoint.jsp
http://www.locationbox.com.tr/web/demo/addheatmappoi.jsp

createCategoryLayer(typ, id, sym, visible, mouseclick)
Create category layer.
Parameters:
{string} typ
Category of layer. See http://www.locationbox.com.tr/web/api_poicategorylist.jsp for category list.
{String} id
Id of the layer
{object} sym
Style object
{boolean} visible
Visibility of the layer
{Function} mouseclick
The user defined function that is called when layer is clicked.
See:
http://www.locationbox.com.tr/web/demo/layercategory.jsp

createDemographicLayer(typ, id, visible, mouseclick)
Create Demographic layer
Parameters:
{string} typ
List of typs: ILayer.DEMOGRAFIK_YAS_DURUMU ILayer.DEMOGRAFIK_NUFUS ILayer.DEMOGRAFIK_EGITIM ILayer.DEMOGRAFIK_KONUT_SAYISI ILayer.DEMOGRAFIK_ARAC_SAYISI
{string} id
Id of the layer
{boolean} visible
Visibility of the layer
{Function} mouseclick
The user defined function that is called when layer is clicked.

createHeatmapLayer(typ, id, thmtyp, where, visible)
Create heatmap layer.
Parameters:
{string} typ
Type of the layer. Layer types are listed below
ILayer.HEATMAP_ULKE
ILayer.HEATMAP_IL
ILayer.HEATMAP_ILCE
ILayer.HEATMAP_MAHALLE

{String} id
Id of the layer
{String} thmtyp
Theme type ILayer.MAP_BOLGE
ILayer.MAP_IL
ILayer.MAP_ILCE
ILayer.MAP_MAHALLE
ILayer.USER_POINT

{String} where
If ILayer.USER_POINT is selected, the where clause for data parameters.
{boolean} visible
Visibility of the layer
See:
http://www.locationbox.com.tr/web/demo/addheatmapuserpoint.jsp
http://www.locationbox.com.tr/web/demo/addheatmappoi.jsp

createLayer(typ, id, where, symc, sym, visible, mouseclick, lblc, lsym, hcols)
Create a layer
http://locationbox.blogspot.com.tr/2014/04/how-to-use-createlayer-method-using.html
Parameters:
{string} typ
Type of the layer. Layer types are listed below
ILayer.MAP_BOLGE
ILayer.MAP_IL
ILayer.MAP_ILCE
ILayer.MAP_MAHALLE
ILayer.USER_POINT
ILayer.USER_REGION
ILayer.USER_LINE

{String} id
Id of the layer
{String} where
Where clause (@See http://www.locationbox.com.tr/web/demo/layercoloring.jsp)
{object} symc
Column style object
{object} sym
Style object
{boolean} visible
Visibility of the layer
{Function} mouseclick
The user defined function that is called when layer is clicked.
{object} lblc
Label object
{object} lsym
Label object
{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(",");)
See:
http://www.locationbox.com.tr/web/api_layer.jsp

refresh()
Refresh theme

removeLayer()
Remove layer

setVisible(visible)
Set layer visibility
Parameters:
{boolean} visible
Layer visibility

zoomToLayer()
Zoom to layer

Documentation generated by JsDoc Toolkit 2.4.0 on Mon Aug 25 2014 11:26:06 GMT+0300 (EEST)