Val, Thank you for information.
I know on server side,but I need get feature on client side.
I think client side smooth than server side.
I think InmemoryFeatureLayer is Vector layer in OpenLayers. But it not.
dev.openlayers.org/docs/files/OpenLayers/Layer/Vector-js.html
Now I change to use EditOverlay.
It Vector Layer. and I can getFeatureByFid now.
And I have question about : set style to vector layer (EditOverlay) .
How to set set style to vector layer (EditOverlay) on client side. ?
now I use this code but I don't know how to set active "select style".
function OnMapCreated(map) {
var map = Map1.GetMapParser().map;
var vector = map.getLayersByName('EditOverlay');
var myStyles = new OpenLayers.StyleMap({
"default": new OpenLayers.Style({
pointRadius: "${type}", // sized according to type attribute
fillColor: "#ffcc66",
strokeColor: "#ff9933",
strokeWidth: 2,
graphicZIndex: 1
}),
"select": new OpenLayers.Style({
fillColor: "#66ccff",
strokeColor: "#3399ff",
graphicZIndex: 2
})
});
vector.styleMap = myStyles;
vector.rendererOptions = { zIndexing: true };
var select = new OpenLayers.Control.SelectFeature(vector,
{
click: true //< It can't use with clickFeature
<this use="" with="" span=""></this>
// clickFeature: function (feature) {
// I want to add code for active feature selected.
// }
});
map.addControl(select);
select.activate();
}
Regards
Sumeth