This is a static copy of the main wikispot.org site, preserved for historical purposes only. Please see this page for more information.

Help with Maps

InfoInfo TalkTalk MapMap
Search:    

All pages on a wiki can be linked to a physical location via [WWW]Google Maps. The only requirement is that the mapped item have a physical location: Latitude and Longitude or a street address.

How to

To map to an address, add the [[address()]] macro. Insert that command anywhere you wish to map a location.

map-button.pngThe address macro will add a map icon to the top of the page. Upon clicking this link, you'll see a smaller version of [WWW]Google Maps. Click the map icon again to collapse the map.

For instance, [[address(1600 Pennsylvania Avenue, Washington, DC 20500)]] will print the address you enter, as such:

If a wiki administrator has set a default location for your wiki then you can often leave out the city and state (more on this below).

More advanced: Latitude and Longitude

To map something with Lat/Long coordinates do [[Address("description here", "latitude", "longitude")]]. You can also provide Lat/Long to give a more exact address location, e.g. [[Address("1 Shields Ave., Davis, CA", "better latitude", "better longitude")]]. In that case, the address is really just a description — it helps people reading the page find the place without looking at the map.

Latitude and longitude need to be given in decimal degrees without the degree sign or compass direction. For example, A page is not limited to a single map point. For multiple points, simply add more address macros, they will all be mapped.

For instance, [[address("1 Shields Ave., Davis, CA", "38.537101", "-121.749070")]] will display as

Making the address shorter

Administrators may set a default city and state for a wiki. If a default location has been set then editors do not need to include such information in their address macros. However, if the default location (it's called "Address locale" in the admin wiki settings) has not been set, users should include city and state alongside their mapped addresses. Oddly, just zip codes doesn't work.

Examples

[[address(1600 Pennsylvania Avenue, Washington, DC, 20500)]]
[[address(1600 Pennsylvania Avenue, Washington, DC)]]
[[address(1600 Pennsylvania Avenue, Washington, District of Columbia)]]

and now with coordinates instead!:
[[address("1600 Pennsylvania Avenue, Washington, DC", "38.89763", "-77.03658")]]

On a wiki with a default location set to Washington, DC, this will also work:
[[address(1600 Pennsylvania Avenue)]]

This should probably work, but doesn't:
[[address(1600 Pennsylvania Avenue, 20500)]]

Finding Latitude/Longitude Coordinates

To get finer scale detail, you may feel like you want lat/long coordinates to get the job done. One easy way to do this is to download [WWW]Google Earth.

By default, Google Earth uses a different format for coordinates. To change it to the format used by Wiki Spot wikis, under the "Tools" menu, choose "Options". You should be on the "3D View" tab. There is a set of choices labeled "Show Lat/Long". Choose "Decimal Degrees".

The latitude and longitude is displayed in the corner of the window, but you can't copy the location from the display. Instead, you can use the thumbtack tool to get the information more easily: simply place a thumbtack at the location and it will display a popup with the information that you can copy and paste. If you don't want to keep the thumbtack there, simply click the "Cancel" button, as all you need for the Wiki map is the latitude and longitude.

(If someone else has another solution, perhaps an open source solution, feel free to add... what about [WWW]http://www.openstreetmap.org/ ?)

example-map.pngHere's what the maps look like, in general.

Also check out

This is a Wiki Spot wiki. Wiki Spot is a 501(c)3 non-profit organization that helps communities collaborate via wikis.