Sameera R.
Sameera R.

Reputation: 4592

is there a Google Map URL parameter for hide side panel?

I have used many google map parameters like

but what I want is hide the side panel. is there a way to do it

Upvotes: 5

Views: 5205

Answers (2)

HvdH
HvdH

Reputation: 11

Although it's an old question that was asked here, it's still a valid question because apparently there's still no URL parameter for this. Nevertheless I was able to solve it in a very ugly but working way....

  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;

Of course you have to tweek the cursor position to your own needs. The sleep is used to give the EdgeBrowser enough time to finish rendering.

Upvotes: 1

Dr.Molle
Dr.Molle

Reputation: 117354

There is no such option(basically none of these parameters is officially documented).

But setting the output-parameter to embed will have the desired effect(but will remove the search-bar too)

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

Upvotes: 1

Related Questions