CourseMap Documentation
From Wiki
This is the documentation of the courseMap feature. It adds the possibility to display maps of courses locations to the wiki.
The functionality is very similar to the Usermap.
Contents |
Using the CourseAdmin
To use the CourseMap you have to include the courseAdmin template to your wiki userpage. You can only include it on your userpage (User:Yourusername). Because by this it is controlled that nobody but you can edit your cours(es) of the CourseMap.
Include the following tag in your userpage:
{{#courseAdmin: <username>}}
Add Courses to the CourseMap
Adding a course to the CourseMap is done by using the courseAdmin interface:
by clicking on the "CreateNewCourse" you will see this interface:
By simply filling out the form and clicken the button "submitNewCourse" your course is added to the CourseMap.
Edit or remove your Cours(es)
This is done by clicking the "ShowMyCourses" butten you will see the following interface:
By clicking "EditThisCourse" you can edit the parameter values of this course. By clicking "DeleteThisCourse" you can delete this course from the database.
Displaying Maps
Displaying your CourseMaps is very similar to displaying a map of the userMap.
Display a map of a particular Course
This is done with the "cmCourseMap"-tag. The syntax is as follows:
{{#cmCourseMap: ID|width|height|zoom|baselayer|navbar}}
As you can see in the CourseAdmin interface, every course has a unique ID. To include a particular of a course, you have just to reference the ID. The other values are optional. But the first parameter is always the ID, second is always the width, the third is always the height, and so on. So if you want to provide a value for the baselayer parameter, then you have to give also values for width, height and zoom, because baselayer is always on fifth position. (Sorry for tht, but I couldn't figure a simplier way for providing the parameters yet, I would be happy for any help with that, I know that you can somehow provide the parameters in a xml-syntax tag, but as I said I couldn't figure it out yet.)
Display a map of all Courses
To display a map of all courses you have to use the "cmAllCourses"-tag. The syntax is as follows:
{{#cmAllCoursesMap: width|height|centerat|zoom|baselayer|navbar}}
It is similar to use as the "umAllUserMap"-tag of the userMap see -> Usermap_user_documentation.



