Difference between revisions of "UserMap Documentation"

From OSGeo
Jump to navigation Jump to search
Line 6: Line 6:
 
{{#umSetParam: lon|lat|location name|username|real name}}
 
{{#umSetParam: lon|lat|location name|username|real name}}
 
</pre>
 
</pre>
The coordinates are in decimal degree.
+
The coordinates are in decimal degrees.
If the User doesn't exist, or the params are changed and the tag is places on the users userpage, the data base will be updated.
+
If the User doesn't exist, or the parameters are changed and the tag is placed on the users userpage, the database will be updated.
 
For example (on the wiki page: User:Christian_Willmes):
 
For example (on the wiki page: User:Christian_Willmes):
 
<pre>
 
<pre>

Revision as of 10:30, 30 October 2008

This is a documentation of how to display a map of your location or a map of all to the data base added users locations in the osgeo wiki.

Add yourself to the userMap

Every user adds himself to the userMap by placing a parser tag 'umSetParam' on his userpage (User:username). The tag has the following syntax:

{{#umSetParam: lon|lat|location name|username|real name}}

The coordinates are in decimal degrees. If the User doesn't exist, or the parameters are changed and the tag is placed on the users userpage, the database will be updated. For example (on the wiki page: User:Christian_Willmes):

{{#umSetParam: 6.92|50.95|Cologne, Germany|Christian Willmes|Christian Willmes}}

display a map of a users home location

To display a map of the home location of a user include the following tag into a wikipage:

{{#umUserMap: username|width|height|zoom}}

The 'width' and 'height' parameters are optional. If not provided, standard values of 'width=400px', 'height=250px' and 'zoom=4' are applied.
For example:

{{#umUserMap: Christian Willmes}}

{{#umUserMap: Christian Willmes}}

display a map of all users home locations

To display a map of all wiki users include the following tag:

{{#umAllUserMap: width|height|zoom}}

The parameters are optional. If no parameters are provided, standard ones will be used (width=800px, height=450px, zoom=2).
For example:

{{#umAllUserMap:}}

{{#umAllUserMap:}}