Changes between Version 21 and Version 22 of GoogleMapMacro
- Timestamp:
- Oct 28, 2008, 10:26:15 PM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GoogleMapMacro
v21 v22 71 71 If an `address` but no `zoom` value was given an appropriate value will be guessed based on the address accuracy returned by Google. 72 72 At the moment this isn't very accurate but soon [http://groups.google.com/group/Google-Maps-API/browse_thread/thread/53c4525e8d01e75d Google might improve] this. 73 `center`:: Sets the center of the map to the given coordinates. The format is `{l ongitude}:{latitude}`.73 `center`:: Sets the center of the map to the given coordinates. The format is `{latitude,longitude}`. 74 74 `zoom`:: Sets zoom factor. Allowed values are between 0 (whole world) and 19 (single house). Very high zoom values might not be supported by Google Maps for all parts of the world. 75 75 `size`:: The size either in the format `{width}x{height}` as numbers in pixel, e.g.: `300x400` means 300px wide and 400px high or … … 90 90 * `HierarchicalMapType`: Drop-down map type control for switching between supported map types. 91 91 * `OverviewMap`: Collapsible overview mini-map in the corner of the main map for reference location and navigation (through dragging). 92 `markers` (to be implemented):: Allows the user to set labeled markers on given location of the map. 93 The format for a marker is `{latitude}:{longitude};{Letter}` or `"{Address}";{Letter}`. If the string 'center' is used instead of an address the center of the map is marked. 94 The marker letter can be either A-Z or 'o', '.' or empty for a plain marker. 95 Multiple markers are separated using the '`|`' character. 96 92 97 93 98 … … 106 111 Please use semicolons, not commas, as separators in the address. 107 112 {{{ 108 [[GoogleMap(address="Street; City; Count y",zoom=10,size=400x400)]]113 [[GoogleMap(address="Street; City; Country",zoom=10,size=400x400)]] 109 114 or 110 [[GoogleMap("Street; City; Count y",zoom=10,size=400x400)]]115 [[GoogleMap("Street; City; Country",zoom=10,size=400x400)]] 111 116 or, if you really want to: 112 [[GoogleMap(Street; City; Count y,zoom=10,size=400x400)]]117 [[GoogleMap(Street; City; Country,zoom=10,size=400x400)]] 113 118 }}} 114 119 Please note that the address is converted into coordinates by user-side javascript every time the wiki page is loaded. … … 123 128 resolved by the client-side JavaScript code. 124 129 {{{ 125 [[GoogleMap(center=50.0:10.0,address="Street; City; Count y",zoom=10,size=400x400)]]130 [[GoogleMap(center=50.0:10.0,address="Street; City; Country",zoom=10,size=400x400)]] 126 131 }}} 127 132 … … 130 135 To show a map with the standard map types where the satellite map is preselected: 131 136 {{{ 132 [[GoogleMap("Street; City; Count y",zoom=10,size=400x400,type=satellite)]]137 [[GoogleMap("Street; City; Country",zoom=10,size=400x400,type=satellite)]] 133 138 }}} 134 139 135 140 To only show a satellite map (please note the added '`s`'): 136 141 {{{ 137 [[GoogleMap("Street; City; Count y",zoom=10,size=400x400,types=satellite)]]142 [[GoogleMap("Street; City; Country",zoom=10,size=400x400,types=satellite)]] 138 143 }}} 139 144 140 145 To show a map with hybrid and satellite map types (in this order) where the satellite map is preselected: 141 146 {{{ 142 [[GoogleMap("Street; City; Count y",zoom=10,size=400x400,types=hybrid:satellite,type=satellite)]]147 [[GoogleMap("Street; City; Country",zoom=10,size=400x400,types=hybrid:satellite,type=satellite)]] 143 148 }}} 144 149 145 150 To show a map with hybrid and satellite map types (in this order) where the hybrid map is preselected: 146 151 {{{ 147 [[GoogleMap("Street; City; Count y",zoom=10,size=400x400,types=hybrid:satellite)]]152 [[GoogleMap("Street; City; Country",zoom=10,size=400x400,types=hybrid:satellite)]] 148 153 or 149 [[GoogleMap("Street; City; County",zoom=10,size=400x400,types=hybrid:satellite,type=hybrid)]] 154 [[GoogleMap("Street; City; Country",zoom=10,size=400x400,types=hybrid:satellite,type=hybrid)]] 155 }}} 156 157 === Markers == 158 To create three markers: one at the center of the map (A), one at the next street (B) and one at coordinates 10.243,23.343 (C): 159 {{{ 160 [[GoogleMap("Street; City; Country",zoom=10,size=400x400,markers=center;A|"Next street; City; Country";B|10.243:23.343;C)]] 150 161 }}} 151 162