append markers and features.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@194 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -90,12 +90,14 @@ OpenLayers.Tile.WFS.prototype =
|
||||
|
||||
//make new Feature
|
||||
var feature = new ol.Feature(resultFeatures[i]);
|
||||
this.features.append(feature);
|
||||
|
||||
//make new Icon
|
||||
var icon = new OpenLayers.Icon(feature.markerImage, feature.size);
|
||||
|
||||
//make new marker
|
||||
var marker = new OpenLayers.Marker(icon, feature.lonlat);
|
||||
this.addMarker(marker);
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user