Editing ClubWiki:Using GMaps
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
This wiki site uses a MediaWiki extension called Maps. It's full syntax description can be found at its [https://www.semantic-mediawiki.org/wiki/Category:Maps_examples home site]. Here we will just describe the basic features typically used for this site for simplicity for our users | This wiki site uses a MediaWiki extension called Maps. It's full syntax description can be found at its [https://www.semantic-mediawiki.org/wiki/Category:Maps_examples home site]. Here we will just describe the basic features typically used for this site for simplicity for our users | ||
== Basic use == | == Basic use == | ||
Line 43: | Line 43: | ||
KMLs are now specified within the open command. Using the kml (not sure when this is used) or gkml (the one we seem to need to use) you can add URL(s) that point to [http://en.wikipedia.org/wiki/Keyhole_Markup_Language KML] files. Each URL should be separated by a comma. | KMLs are now specified within the open command. Using the kml (not sure when this is used) or gkml (the one we seem to need to use) you can add URL(s) that point to [http://en.wikipedia.org/wiki/Keyhole_Markup_Language KML] files. Each URL should be separated by a comma. | ||
<pre><display_map gkml=" | <pre><display_map gkml="http://tehcc.org/clubwiki/kml/Pinnacle_Mountain_Tower_Trail.kml,http://other.url/,..."> | ||
</display_map></pre> | </display_map></pre> | ||
Line 69: | Line 69: | ||
</display_map> | </display_map> | ||
The above commands can be used many times within a single map to create the pins needed. | The above commands can be used many times within a single map to create the pins needed. Note that each pin must end with (;) except the last one | ||
== Pin icons == | == Pin icons == | ||
Icons can be changed by two methods, changing all undefined icons to a specified one or invoking the custom icon list used on this site and then specifying pin by pin which icon to display for the pin | Icons can be changed by two methods, changing all undefined icons to a specified one or invoking the custom icon list used on this site and then specifying pin by pin which icon to display for the pin | ||
=== Default Pin Icons === | === Default Pin Icons === | ||
The default icon used for pins can be changed by adding an icon command in the extension options: | The default icon used for pins can be changed by adding an icon command in the extension options: | ||
Add the icon address in quotes to the | 1. Add the icon address in quotes to the googlemap tag, using '''icon''': | ||
< | <nowiki><googlemap lat="36.072635" lon="-79.791975" icon="http://images.wikia.com/walkingdead/images/7/70/Markerfight.png"></nowiki> | ||
< | Full coding example: | ||
38.453857,-84.356461 | <nowiki><googlemap lat="36.072635" lon="-79.791975" icon="http://images.wikia.com/walkingdead/images/7/70/Markerfight.png"></nowiki> | ||
38.453857, -84.356461, Rick Grimes Shot | |||
<nowiki></googlemap></nowiki> | |||
</ | |||
=== Custom icons === | === Custom icons === | ||
This site has a list of custom icons that can be used. See the [[#Icons reference]] to know which letters will invoke which icon | |||
#Add the following extension '''icons''' option: | |||
##<nowiki><googlemap lat="36.500667" lon="-82.47797" icons="http://tehcc.org/clubwiki/kml/marker{label}.png"></nowiki> | |||
#Prefix the pin coordinates with (X) where 'X' is the letter for the pin icon desired | |||
##<nowiki>(G) 36.502891,-82.468700</nowiki> | |||
Full coding of a custom icon map: | Full coding of a custom icon map: | ||
<pre> | <pre> | ||
< | <googlemap lat="36.500667" lon="-82.47797"width="715" height="350" icons="http://tehcc.org/clubwiki/kml/marker{label}.png"> | ||
36.50013,-82.47760 | (E) 36.50013,-82.47760 | ||
36.502632,-82.482759 | Fall Creek Falls | ||
36.502891,-82.468700 | [[Image:WPSP Fall Creek Falls.jpg|150px|Fall Creek Falls]] | ||
</ | (A) 36.502632,-82.482759 | ||
Parking along Fall Creek Road | |||
(G) 36.502891,-82.468700 | |||
Intersection to/from [[WPSP_Fall_Creek_Loop_Trail|Fall Creek Loop]] | |||
[[Image:To D Backbone Trail.jpg|150px|Trail head sign]] | |||
</googlemap> | |||
</pre> | </pre> | ||
==== Icons reference ==== | ==== Icons reference ==== | ||
Line 114: | Line 113: | ||
!Icon | !Icon | ||
!Meaning | !Meaning | ||
|---- | |---- | ||
|MarkerA.png | |MarkerA.png | ||
|[[File:MarkerA.png]] | |[[File:MarkerA.png]] | ||
|Parking | |Parking | ||
|---- | |---- | ||
Line 124: | Line 121: | ||
|[[File:MarkerB.png]] | |[[File:MarkerB.png]] | ||
|Picturesque location | |Picturesque location | ||
|---- | |---- | ||
|MarkerC.png | |MarkerC.png | ||
|[[File:MarkerC.png]] | |[[File:MarkerC.png]] | ||
|Waterfall | |Waterfall | ||
|---- | |---- | ||
Line 134: | Line 129: | ||
|[[File:MarkerD.png]] | |[[File:MarkerD.png]] | ||
|Alternate for picturesque | |Alternate for picturesque | ||
|---- | |---- | ||
|MarkerE.png | |MarkerE.png | ||
|[[File:MarkerE.png]] | |[[File:MarkerE.png]] | ||
|Overlook | |Overlook | ||
|---- | |---- | ||
|MarkerF.png | |MarkerF.png | ||
|[[File:MarkerF.png]] | |[[File:MarkerF.png]] | ||
|Shelter | |Shelter | ||
|---- | |---- | ||
Line 149: | Line 141: | ||
|[[File:MarkerG.png]] | |[[File:MarkerG.png]] | ||
|Trailhead/intersection/point of interest | |Trailhead/intersection/point of interest | ||
|---- | |---- | ||
|MarkerH.png | |MarkerH.png | ||
|[[File:MarkerH.png]] | |[[File:MarkerH.png]] | ||
|Campground | |Campground | ||
|---- | |---- | ||
|MarkerI.png | |MarkerI.png | ||
|[[File:MarkerI.png]] | |[[File:MarkerI.png]] | ||
|Cave | |Cave | ||
|---- | |---- | ||
Line 164: | Line 153: | ||
|[[File:MarkerJ.png]] | |[[File:MarkerJ.png]] | ||
|Water crossing - no bridge - rock-hopping | |Water crossing - no bridge - rock-hopping | ||
|---- | |---- | ||
|MarkerK.png | |MarkerK.png | ||
|[[File:MarkerK.png]] | |[[File:MarkerK.png]] | ||
|Bench | |Bench | ||
|---- | |---- | ||
|MarkerL.png | |MarkerL.png | ||
|[[File:MarkerL.png]] | |[[File:MarkerL.png]] | ||
|Trail bridge | |Trail bridge | ||
|---- | |---- | ||
Line 179: | Line 165: | ||
|[[File:MarkerM.png]] | |[[File:MarkerM.png]] | ||
|Cell Tower/Antenna | |Cell Tower/Antenna | ||
|---- | |---- | ||
|MarkerN.png | |MarkerN.png | ||
|[[File:MarkerN.png]] | |[[File:MarkerN.png]] | ||
|Cemetery | |Cemetery | ||
|---- | |---- | ||
|MarkerO.png | |MarkerO.png | ||
|[[File:MarkerO.png]] | |[[File:MarkerO.png]] | ||
|Playground | |Playground | ||
|---- | |---- | ||
|MarkerQ.png | |MarkerQ.png | ||
|[[File:MarkerQ.png]] | |[[File:MarkerQ.png]] | ||
|Toilet | |Toilet | ||
|---- | |---- | ||
|MarkerR.png | |MarkerR.png | ||
|[[File:MarkerR.png]] | |[[File:MarkerR.png]] | ||
|Tunnel | |Tunnel | ||
|---- | |---- | ||
Line 209: | Line 185: | ||
|[[File:MarkerS.png]] | |[[File:MarkerS.png]] | ||
|Picnic Area | |Picnic Area | ||
|---- | |---- | ||
|} | |} | ||
Search http://mapicons.nicolasmollet.com/ for other icons to suggest, send to [mailto:webmaster@tehcc.org webmaster] for inclusion | |||
== Examples == | == Examples == | ||
Line 275: | Line 193: | ||
*[[Warriors Path State Park]] - Shows multiple KML files in use | *[[Warriors Path State Park]] - Shows multiple KML files in use | ||
*[[WPSP Devil's Backbone|Devil's Backbone]] - Multiple KML files and many pins showing pictures and more | *[[WPSP Devil's Backbone|Devil's Backbone]] - Multiple KML files and many pins showing pictures and more | ||