little bitta JSDOC
git-svn-id: http://svn.openlayers.org/trunk/openlayers@457 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
// @require: OpenLayers/Layer/Markers.js
|
// @require: OpenLayers/Layer/Markers.js
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @class
|
* @class
|
||||||
*/
|
*/
|
||||||
@@ -17,6 +18,7 @@ OpenLayers.Layer.Text.prototype =
|
|||||||
* @constructor
|
* @constructor
|
||||||
*
|
*
|
||||||
* @param {String} name
|
* @param {String} name
|
||||||
|
* @param {String} location
|
||||||
*/
|
*/
|
||||||
initialize: function(name, location) {
|
initialize: function(name, location) {
|
||||||
OpenLayers.Layer.Markers.prototype.initialize.apply(this, [name]);
|
OpenLayers.Layer.Markers.prototype.initialize.apply(this, [name]);
|
||||||
@@ -24,6 +26,10 @@ OpenLayers.Layer.Text.prototype =
|
|||||||
new Ajax.Request(location,
|
new Ajax.Request(location,
|
||||||
{ method: 'get', onComplete:this.parseData.bind(this) } );
|
{ method: 'get', onComplete:this.parseData.bind(this) } );
|
||||||
},
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {?} ajaxRequest
|
||||||
|
*/
|
||||||
parseData: function(ajaxRequest) {
|
parseData: function(ajaxRequest) {
|
||||||
var text = ajaxRequest.responseText;
|
var text = ajaxRequest.responseText;
|
||||||
var lines = text.split('\n');
|
var lines = text.split('\n');
|
||||||
|
|||||||
Reference in New Issue
Block a user