我使用了很多谷歌地图参数,例如
但我想要的是隐藏侧面板。有办法做到吗
没有这样的选项(基本上这些参数都没有正式记录)。
但是将
output
参数设置为 embed
将具有所需的效果(但也会删除搜索栏)
虽然这是一个老问题,但它仍然是一个有效的问题,因为显然仍然没有 URL 参数。 尽管如此,我还是能够以一种非常丑陋但有效的方式解决它......
procedure TFrm.EdgeBrowserNavigationCompleted(Sender: TCustomEdgeBrowser; IsSuccess: Boolean; WebErrorStatus: TOleEnum);
var
mp : TPoint;
begin
if IsSuccess then
begin
mp := Mouse.CursorPos;
ShowCursor(false);
try
sleep(1000);
//set cursor to grip of side panel
SetCursorPos(Frm.Left + 435, Frm.Top + 50 + (Frm.Height div 2));
mouse_event(MOUSEEVENTF_LEFTDOWN,0, 0, 0, 0); //press left button
mouse_event(MOUSEEVENTF_LEFTUP,0, 0, 0, 0); //release left button
finally
SetCursorPos(mp.X, mp.Y); //set cursor to original coordinates
ShowCursor(true);
end;
end;
end;
当然,您必须根据自己的需要调整光标位置。睡眠用于给 EdgeBrowser 足够的时间来完成渲染。