Friday, March 13, 2009How to Supress the Information Pop-up in Google Maps
Google has made it incredibly easy to incorporate an interactive map into your website. If you go to Google Maps and search on your place of business, click the Link button in the top right corner. The image below shows the Google Map interface in detail.
Highlight the "Paste HTML to embed in website" textbox or customize the map by clicking on the "Customize and preview embedded map". Once you have the code in your webpage, a Google Map will display for your users.
Information Pop-Up Prevention
For small sizes, the pop-up window can cause the map to move and focus on the information pop-up rather than the site location. This can be annoying at best and can reduce the functionality of an interactive map on your website. A solution to this is to supress the pop-up until someone clicks on your location pin.
To do this, you need to change a setting in the HTML code for the map. Find the name-value pair for "iwloc". It should be towards the end, and if it doesn't exist in your code, you can add it after the "z" value. The syntax look like this: iwloc=B. You can subsitute the "B" for any value that the Google Map doesn't recognize. This will prevent the pop-up from automatically appearing.