Changes between Version 21 and Version 22 of GoogleMapMacro


Ignore:
Timestamp:
Oct 28, 2008, 10:26:15 PM (15 years ago)
Author:
Martin Scharrer
Comment:

Added description for markers.

Legend:

Unmodified
Added
Removed
Modified
  • GoogleMapMacro

    v21 v22  
    7171             If an `address` but no `zoom` value was given an appropriate value will be guessed based on the address accuracy returned by Google.
    7272             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 `{longitude}:{latitude}`.
     73 `center`:: Sets the center of the map to the given coordinates. The format is `{latitude,longitude}`.
    7474 `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.
    7575 `size`:: The size either in the format `{width}x{height}` as numbers in pixel, e.g.: `300x400` means 300px wide and 400px high or
     
    9090   * `HierarchicalMapType`: Drop-down map type control for switching between supported map types.
    9191   * `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
    9297
    9398
     
    106111Please use semicolons, not commas, as separators in the address.
    107112{{{
    108 [[GoogleMap(address="Street; City; County",zoom=10,size=400x400)]]
     113[[GoogleMap(address="Street; City; Country",zoom=10,size=400x400)]]
    109114or
    110 [[GoogleMap("Street; City; County",zoom=10,size=400x400)]]
     115[[GoogleMap("Street; City; Country",zoom=10,size=400x400)]]
    111116or, if you really want to:
    112 [[GoogleMap(Street; City; County,zoom=10,size=400x400)]]
     117[[GoogleMap(Street; City; Country,zoom=10,size=400x400)]]
    113118}}}
    114119Please note that the address is converted into coordinates by user-side javascript every time the wiki page is loaded.
     
    123128            resolved by the client-side JavaScript code.
    124129{{{
    125 [[GoogleMap(center=50.0:10.0,address="Street; City; County",zoom=10,size=400x400)]]
     130[[GoogleMap(center=50.0:10.0,address="Street; City; Country",zoom=10,size=400x400)]]
    126131}}}
    127132
     
    130135To show a map with the standard map types where the satellite map is preselected:
    131136{{{
    132 [[GoogleMap("Street; City; County",zoom=10,size=400x400,type=satellite)]]
     137[[GoogleMap("Street; City; Country",zoom=10,size=400x400,type=satellite)]]
    133138}}}
    134139
    135140To only show a satellite map (please note the added '`s`'):
    136141{{{
    137 [[GoogleMap("Street; City; County",zoom=10,size=400x400,types=satellite)]]
     142[[GoogleMap("Street; City; Country",zoom=10,size=400x400,types=satellite)]]
    138143}}}
    139144
    140145To show a map with hybrid and satellite map types (in this order) where the satellite map is preselected:
    141146{{{
    142 [[GoogleMap("Street; City; County",zoom=10,size=400x400,types=hybrid:satellite,type=satellite)]]
     147[[GoogleMap("Street; City; Country",zoom=10,size=400x400,types=hybrid:satellite,type=satellite)]]
    143148}}}
    144149
    145150To show a map with hybrid and satellite map types (in this order) where the hybrid map is preselected:
    146151{{{
    147 [[GoogleMap("Street; City; County",zoom=10,size=400x400,types=hybrid:satellite)]]
     152[[GoogleMap("Street; City; Country",zoom=10,size=400x400,types=hybrid:satellite)]]
    148153or
    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 ==
     158To 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)]]
    150161}}}
    151162