Change Layer.Marker to Layer.Markers.
Closes #50. git-svn-id: http://svn.openlayers.org/trunk/openlayers@278 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
// @require OpenLayers/Layer/Marker.js
|
||||
// @require OpenLayers/Layer/Markers.js
|
||||
/**
|
||||
* @class
|
||||
*/
|
||||
OpenLayers.Layer.Text = Class.create();
|
||||
OpenLayers.Layer.Text.prototype =
|
||||
Object.extend( new OpenLayers.Layer.Marker(), {
|
||||
Object.extend( new OpenLayers.Layer.Markers(), {
|
||||
|
||||
/** store url of text file
|
||||
* @type str */
|
||||
@@ -15,7 +15,7 @@ OpenLayers.Layer.Text.prototype =
|
||||
* @param {String} name
|
||||
*/
|
||||
initialize: function(name, location) {
|
||||
OpenLayers.Layer.Marker.prototype.initialize.apply(this, [name]);
|
||||
OpenLayers.Layer.Markers.prototype.initialize.apply(this, [name]);
|
||||
this.location = location;
|
||||
new Ajax.Request(location,
|
||||
{ method: 'get', onComplete:this.parseData.bind(this) } );
|
||||
|
||||
Reference in New Issue
Block a user