Difference between revisions of "Category:Pages with a map rendered by the Maps extension"

From LCA2015 Delegate wiki
Jump to: navigation, search
(Created this auto-requested page for the Maps extension, as a guide to using this extension.)
 
m (How to use the Maps extension: tilde swin ton)
 
Line 29: Line 29:
 
12 Grafton Rd, Auckland~[[Location|Owen G Glen Building (OGGB)]]
 
12 Grafton Rd, Auckland~[[Location|Owen G Glen Building (OGGB)]]
 
}}</pre>
 
}}</pre>
To add descriptive text under the title of the popup, add a second field with a second (~) character. Again, this can include any wikitext, including internal and external links.
+
To add descriptive text under the title of the popup, add a second field with a second tilde (~) character. Again, this can include any wikitext, including internal and external links.
 
<pre>{{
 
<pre>{{
 
#display_map:
 
#display_map:

Latest revision as of 06:30, 5 January 2015

About the Maps extension for MediaWiki

The LCA2015 Delegate Wiki is embedding interactive maps directly onto wiki pages, to make it more convenient for delegates to find relevant locations without having to leave the wiki. This facility is provided via the Maps Extension for MediaWiki.

Why only Google Maps are showing

Our hacking on the Maps extension so far has shown that without the added support of the full Semantic MediaWiki (SMW) installation, the Maps extension works sufficiently, but only with Google Maps. To enable the full featureset of the Maps extension would require installing SMW, which seems extreme for what we need here. While the openness and freedom of OpenStreetMap would be more in keeping with the ethos of Linux and the LCA, minimalism is also a lofty goal.

How to use the Maps extension

We are mainly using the {{#display_map:}} method of the extension, and it requires at least one location as a parameter, which can be passed either as an address or coordinates.

{{
#display_map:
12 Grafton Rd, Auckland
}}
{{
#display_map:
-36.852881,174.771341
}}

To add more locations to a map, terminate all but the final one with a semicolon (;) character

{{
#display_map:
12 Grafton Rd, Auckland;
22 Symonds St, Auckland;
14 Whitaker Pl, Auckland;
26 Nicholls Ln, Auckland
}}

To add a popup note to the location on the map, add a field using the tilde (~) character. This becomes the title of your popup, and can include any wikitext, including internal and external links.

{{
#display_map:
12 Grafton Rd, Auckland~[[Location|Owen G Glen Building (OGGB)]]
}}

To add descriptive text under the title of the popup, add a second field with a second tilde (~) character. Again, this can include any wikitext, including internal and external links.

{{
#display_map:
12 Grafton Rd, Auckland~Owen G Glen Building~This will be the main venue for the conference.
}}

Pages in category "Pages with a map rendered by the Maps extension"

The following 3 pages are in this category, out of 3 total.