give WFS a featureClass and have it be set in the constructor

git-svn-id: http://svn.openlayers.org/trunk/openlayers@406 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2006-05-26 17:56:46 +00:00
parent e9427e5aa5
commit da27fafa98
2 changed files with 12 additions and 4 deletions

View File

@@ -83,7 +83,7 @@ OpenLayers.Tile.WFS.prototype =
for (var i=0; i < resultFeatures.length; i++) {
var feature = new MCFeature(resultFeatures[i]);
var feature = new this.layer.featureClass(resultFeatures[i]);
var icon = new OpenLayers.Icon(feature.markerImage, feature.size);
var marker = new OpenLayers.Marker(feature.lonlat, icon, feature);