C
chinesetree
Unregistered / Unconfirmed
GUEST, unregistred user!
Layer.search()方法,查出图元,如何用zoomto放大,程序如下:
var
FoundObj : Variant;
lyr : Variant;
begin
FoundObj := lyr.Search('id="'+Edit1.Text+'"');
lyr.Selection.Replace(FoundObj);
用
currentMap.ZoomTo(strtoint(Edit2.Text),FoundObj.CenterX,FoundObj.CenterY);
Method 'CenterX' not supported by automation object'
请大家相助
var
FoundObj : Variant;
lyr : Variant;
begin
FoundObj := lyr.Search('id="'+Edit1.Text+'"');
lyr.Selection.Replace(FoundObj);
用
currentMap.ZoomTo(strtoint(Edit2.Text),FoundObj.CenterX,FoundObj.CenterY);
Method 'CenterX' not supported by automation object'
请大家相助