是否有用于隐藏侧面板的 Google 地图 URL 参数?

问题描述 投票:0回答:2

我使用了很多谷歌地图参数,例如

  • q=
  • 附近=
  • f=
  • 萨德=
  • 爸爸=

但我想要的是隐藏侧面板。有办法做到吗

javascript google-maps url-parameters
2个回答
1
投票

没有这样的选项(基本上这些参数都没有正式记录)。

但是将

output
参数设置为
embed
将具有所需的效果(但也会删除搜索栏)

https://maps.google.co.uk/?output=embed


0
投票

虽然这是一个老问题,但它仍然是一个有效的问题,因为显然仍然没有 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 足够的时间来完成渲染。

© www.soinside.com 2019 - 2024. All rights reserved.