Difference between revisions of "AboutUsMaps"
TakKendrick (talk | contribs) |
TakKendrick (talk | contribs) (reworking instructions) |
||
Line 6: | Line 6: | ||
==Domain Box Maps== | ==Domain Box Maps== | ||
− | === | + | Maps in the [[AboutUs DomainBox]] are a great way to provide readers a visual idea of the location of your business. However, because the maps are seeded with information from the domain's [[WHOIS]] record, occasionally the address is old or just plain wrong. |
− | + | ||
− | <pre> map = <map section="Address"></map> | </pre> | + | Fortunately, changing (or taking out the map) is relatively easy and only takes a few minutes. |
− | + | ||
+ | === Basics === | ||
+ | DomainBox Maps are generated via one of two methods: | ||
+ | # An appropriately formatted Address section on a [[DomainPage]] | ||
+ | # The latitude/longitude coordinates for the location | ||
+ | |||
+ | To view (and change) the DomainBox Map code, click the "edit wiki" options on a [[DomainPage]] to edit the page. The [[AboutUs DomainBox|DomainBox]] is generally at the top or near the top of any Aboutus page code. | ||
+ | |||
+ | Depending on the method, the code will look something like this: | ||
+ | # <pre>map = <map section="Address"></map> | </pre> | ||
+ | # <pre>map = <map latitude="42.5454" longitude="-83.2139"></map> | </pre> | ||
+ | |||
+ | ''(NOTE: If you want to switch the method the map is generated, just copy the appropriate code above and replace the other one.'' | ||
+ | |||
+ | ===Address formatting=== | ||
+ | For most usage, having the map generate from the Address section is the easiest and simplest way. Assuming the <pre>map = <map section="Address"></map> | </pre> is already in the DomainBox, just find the Address section under the "edit wiki" option. It will look something like this: | ||
+ | |||
<pre> | <pre> | ||
− | + | ==Address== | |
:107 SE Washington Street | :107 SE Washington Street | ||
:Portland, OR 97214 | :Portland, OR 97214 | ||
</pre> | </pre> | ||
− | + | Simply change the address and you're set to go. The map even allows for multiple addresses, although the formatting is a bit trickier: | |
− | + | <pre> | |
+ | ==Address== | ||
+ | '''AboutUs''' | ||
+ | :107 SE Washington Street | ||
+ | :Portland, OR 97214 | ||
− | + | '''Apple Computer''' | |
+ | :1 Infinite Loop | ||
+ | :Cupertino, CA 95014 | ||
− | + | '''Microsoft Corporation''' | |
+ | :One Microsoft Way | ||
+ | :Redmond, WA 98052-6399 | ||
+ | </pre> | ||
− | + | Each address needs to be formatted with a return between them. The titles are optional, but if you include them, they will show up on the map when you click the map point. | |
− | |||
− | + | ===Address Formatting Limitations=== | |
− | + | Some international addresses don't map correctly, and you'll need to experiment a little (or use the latitude/longitude mapping method). Often simply removing the street address (just having city, state, country) works. | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
=== Direct (Harder) Way: by adding Geo Codes=== | === Direct (Harder) Way: by adding Geo Codes=== | ||
Line 41: | Line 58: | ||
: Here are quick instructions for [http://www.tech-recipes.com/rx/2403/google_maps_get_latitude_longitude_values finding latitue and longitude values from a google map]. | : Here are quick instructions for [http://www.tech-recipes.com/rx/2403/google_maps_get_latitude_longitude_values finding latitue and longitude values from a google map]. | ||
− | ===Forcing | + | ===Changing Map Zoom Level=== |
− | + | For both the "Address Section" and "Latitude/Longitude" mapping methods, you can change the zoom level of the map by adding a parameter of code: | |
+ | |||
+ | <pre>map = <map zoom="12" section="Address"></map> </pre> | ||
+ | |||
+ | ===Forcing maps to turn off on a page=== | ||
+ | If you don't want the map to show in the [[AboutUs DomainBox]], you can remove the whole map tag or (recommended) give it a '''nomap''' tag for section (making it easier to add the map back later). | ||
+ | |||
<pre>map = <map section="nomap"></map> | </pre> | <pre>map = <map section="nomap"></map> | </pre> | ||
Revision as of 23:01, 13 February 2009
AboutUsMaps refers to a variety of technologies at AboutUs to provide different maps on article and category pages. These include:
Domain Box Maps
Maps in the AboutUs DomainBox are a great way to provide readers a visual idea of the location of your business. However, because the maps are seeded with information from the domain's WHOIS record, occasionally the address is old or just plain wrong.
Fortunately, changing (or taking out the map) is relatively easy and only takes a few minutes.
Basics
DomainBox Maps are generated via one of two methods:
- An appropriately formatted Address section on a DomainPage
- The latitude/longitude coordinates for the location
To view (and change) the DomainBox Map code, click the "edit wiki" options on a DomainPage to edit the page. The DomainBox is generally at the top or near the top of any Aboutus page code.
Depending on the method, the code will look something like this:
-
map = <map section="Address"></map> |
-
map = <map latitude="42.5454" longitude="-83.2139"></map> |
(NOTE: If you want to switch the method the map is generated, just copy the appropriate code above and replace the other one.
Address formatting
For most usage, having the map generate from the Address section is the easiest and simplest way. Assuming themap = <map section="Address"></map> |is already in the DomainBox, just find the Address section under the "edit wiki" option. It will look something like this:
==Address== :107 SE Washington Street :Portland, OR 97214
Simply change the address and you're set to go. The map even allows for multiple addresses, although the formatting is a bit trickier:
==Address== '''AboutUs''' :107 SE Washington Street :Portland, OR 97214 '''Apple Computer''' :1 Infinite Loop :Cupertino, CA 95014 '''Microsoft Corporation''' :One Microsoft Way :Redmond, WA 98052-6399
Each address needs to be formatted with a return between them. The titles are optional, but if you include them, they will show up on the map when you click the map point.
Address Formatting Limitations
Some international addresses don't map correctly, and you'll need to experiment a little (or use the latitude/longitude mapping method). Often simply removing the street address (just having city, state, country) works.
Direct (Harder) Way: by adding Geo Codes
map = <map latitude="42.5454" longitude="-83.2139"></map> |
- Here are quick instructions for finding latitue and longitude values from a google map.
Changing Map Zoom Level
For both the "Address Section" and "Latitude/Longitude" mapping methods, you can change the zoom level of the map by adding a parameter of code:
map = <map zoom="12" section="Address"></map>
Forcing maps to turn off on a page
If you don't want the map to show in the AboutUs DomainBox, you can remove the whole map tag or (recommended) give it a nomap tag for section (making it easier to add the map back later).
map = <map section="nomap"></map> |
Google Maps
Instructions are at googlemap
Following the example on John's page, linked above, you will need to insert the correct lat and lon coordinates for your location. I found this map, which will pop up your lat and lon. Just put your address in below the map, when you've found your location then copy and paste the info from the boxes on the right of the map. WillyP | talk
Category Intersect Maps
Instructions coming.