Sometimes it is required to embed a google map in our application to inform people about exact location of some place. Using the following steps, we can embed a google map in our application.
Step 1: Open maps.google.com
Step 2: Zoom in to the location that you want to embed, right click. A context menu will appear. Click on the option “What’ s Here” on the context menu. On the bottom of the page, you will see the link of GPS coordinates of the location
Step 3: Click on GPS coordinates, this will display a balloon on the map for the selected location.
Step 4: On the options panel appearing on the left, click on icon Share. A dialog box will appear, with two tabs on the top. Click on the tab titled: Embed Map. A text will appear in the text box. There will also be option to select size. You can select the desired size, and copy text from the text box.
Step 5: Paste the copied text in your application within <body></body> tags, as shown below: