Strategy for custom places tiling
ALKMaps. | Strategy for custom places tiling |
Properties | |
ratio | {Number} Optional positive integer. |
resFactor | {Float} Optional factor used to determine when previously requested features are invalid. |
visitedTiles | Hash of visitedTiles. |
resolution | Current layer resolution. |
bounds | Current layer bounds. |
zoomChanged | Indicator for zoom level changed or not. |
Constructor | |
ALKMaps. | A class for custom places strategy. |
Functions | |
activate | Activate the strategy. |
deactivate | Deactivate the strategy. |
update | Update custom places layer. |
triggerRead | Prepare custom places requests in tiles. |
boundsToTiles | Get tiles to cover the bounds. |
merge | Add features to the layer |
{Float} Optional factor used to determine when previously requested features are invalid. If set, the resFactor will be compared to the resolution of the previous request to the current map resolution. If resFactor > (old / new) and 1/resFactor < (old / new). If you set a resFactor of 1, data will be requested every time the resolution changes. If you set a resFactor of 3, data will be requested if the old resolution is 3 times the new, or if the new is 3 times the old. If the old bounds do not contain the new bounds new data will always be requested (with or without considering resFactor).
Activate the strategy.
activate: function()
Deactivate the strategy.
deactivate: function()
Update custom places layer.
update: function( options )
Prepare custom places requests in tiles.
triggerRead: function()
Get tiles to cover the bounds.
boundsToTiles: function( bounds )
Add features to the layer
merge: function( resp )