SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 120 | Next

Raymond Yee

"Pro Web 2.0 Mashups: Remixing Data and Web Services"

10
Table 2-4. Dissecting Parameters for a Link to Google Maps
Parameter Description
f=q The f parameter, which controls the display of the Google Maps
form, can be d (for the directions form or l for the local form).
Without the f parameter, the default search form is displayed.
hl=en Google Maps supports a limited number of host languages,
including en for English and fr for French.
q=1600+Pennsylvania+Ave, The value of the q parameter is treated as though it were entered
+Washington,+DC via the query box at http://maps.google.com.
sll=36.60585, sll contains the latitude and longitude for the center point around
-121.858956 which a business search is performed.
spn=0.006313, spn is the approximate latitude/longitude span for the map.
0.01133
ie=UTF8 ie is the character encoding for the map.
om=1 om determines whether to include an overview map. With om=0, the
overview map is closed.
iwloc=addr iwloc controls display options for the info window.
A good way to get a feel for how these parameters function is to change a parameter, add
new ones, or drop ones in the sample URL and take a look at the resulting map. For instance, if
you have only the q parameter, you would still get a map with some default behavior:
http://maps.google.com/maps?q=1600+Pennsylvania+Ave,+Washington,+DC
That is, the other parameters are not mandatory. Let??™s play with the z parameter to adjust
the zoom factor:
http://maps.


Pages:
108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132