A basic HTTP protocol for getting Custom Places from the server, and then convert them into KML features. Create a new instance with the ALKMaps.Protocol.CustomPlaces constructor.
| ALKMaps. | A basic HTTP protocol for getting Custom Places from the server, and then convert them into KML features. |
| Properties | |
| format | |
| Constructor | |
| ALKMaps. | A class for custom places layer HTTP protocol. |
| Functions | |
| destroy | Clean up the protocol. |
| handleResponse | Handles custom places request response. |
| parseFeatures | Pasre response JSON object into vector features, using KML format as the transformation. |
| readTile | Request custom places in the tile bounds. |
| readTiles | Request custom places in tiles. |
A class for custom places layer HTTP protocol.
| options | {Object} Optional object whose properties will be set on the instance. |
| format | {ALKMaps.Format.KML} |
readTiles: function( tiles, options )
Request custom places in tiles.
| tiles | {Array of Object} tile objects. |
| options | {Object} requet object. |
| id | {String} In z-x-y format, it is used to identify a tile. |
| bounds | {ALKMaps.Bounds} Max bounds for the tile. |
| custPlaceSetId | {String} Custom places set ID filter. |
| custPlaceTag | {String} Custom places tag filter. //Todo: if the service adds more params, we need to add them here. |
| callback | {Method} Callback method to handle the service response. |
| scope | {Object} The scope of “this” object. |
Clean up the protocol.
destroy: function()
Handles custom places request response.
handleResponse: function( resp, options )
Pasre response JSON object into vector features, using KML format as the transformation.
parseFeatures: function( response )
Request custom places in the tile bounds.
readTile: function( tile, options )
Request custom places in tiles.
readTiles: function( tiles, options )