The Wiki for Tale 5 is in read-only mode and is available for archival and reference purposes only. Please visit the current Tale 11 Wiki in the meantime.

If you have any issues with this Wiki, please post in #wiki-editing on Discord or contact Brad in-game.

User:Talibeh/Scratchpad2/Add Condmap Walkthrough

From ATITD5
< User:Talibeh‎ | Scratchpad2
Revision as of 17:29, 9 November 2010 by Talibeh (talk | contribs) (Created page with "This walkthrough covers only the most basic and commonly used settings for sizing the map, displaying a location, and choosing a marker. See the main Maps page if you want mo...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

This walkthrough covers only the most basic and commonly used settings for sizing the map, displaying a location, and choosing a marker. See the main Maps page if you want more information on each of these features.

Copy/paste the map framework text to your page source.

To add a Googlemap-style map to your page, start by pasting in the following:

<googlemap 
controls="small" showposition="yes" showregion="yes">
<!--map locations go here-->

</googlemap>

To add a Condmap-style map to your page, start by pasting in the following:

{{CondMap|
<!--central maps go here-->

<!--map locations go here-->

<!--center, zoom, size settings go here-->
}}


Add a location to the map.

This step is the same whether you're using a Googlemap-style or Condmap-style map.

For a map location, you can choose a marker (or use the default), and you can set a text description that will pop up when your mouse hovers over the marker.

First, find the coordinates in-game by looking at the top center of your screen or at the top of your minimap. Then, to add the location most simply, just type the coordinates on a new line below the "map locations go here" comment:

400, 2250

To add the same location with the description 'My home compound (400, 2550)', type the following below the "map locations go here" comment:

400, 2250, My home compound (400, 2250)

Now, when you hover your mouse over that location marker on your map, everything after the first two numbers will pop up as a description.

Finally, to add the same location to the map, but this time with both the description and a marker, type the following below the "map locations go here" comment:

(GH) 400, 2250, My home compound (400, 2550)

You will end up with one of these two snippets, each of which will show the same location:

Googlemap style:

<googlemap 
controls="small" showposition="yes" showregion="yes">
<!--map locations go here-->
(GH) 400, 2250, My home compound (400, 2550)
</googlemap>

Condmap style:

{{CondMap|
<!--central maps go here-->

<!--map locations go here-->
(GH) 400, 2250, My home compound (400, 2550)

<!--center, zoom, size settings go here-->
}}

Choosing markers

Size, zoom, and shift the map's center.

If you want your map to show all of Egypt, at a standard size that will fit on a wiki page, there is no need to do anything more. (The default settings will do all of that without you needing to type anything else in.)

If you want to change where your map is centered, its size in pixels, or how far in/out it is zoomed, you will need to add those settings. How you type those settings and where you put them depends on the type of map. For a Google-style map, you can create a new line just after the "<googlemap" line and just before the line starting with "controls=small", and place the new text on the new line. For a Condmap-style map, create a new line just before the last line and after the "center, zoom, size settings go here" comment.

Keep reading to see what you actually enter, or go to the examples.

Centering

If you want your map to be centered on your home at -212, 991, then:

For a Google map, add the following (see above for where):

lat="212" lon="991"

For a Condmap, add the following (see above for where):

|lat=-212|lon=991

Sizing

For a map that is 300 pixels wide and 150 pixels tall:

For a Google-style map, paste the following (see above for where):

width="300" height="150"

For a Condmap=style map, paste the following (see above for where):

|width=300|height=150

Zooming

You can set the zoom value anywhere between 1 and 6: the higher the number, the closer in the zoom. Most maps you see on the wiki are set to a zoom of 2.

If you want a Google-style map zoomed to level 4, paste the following (see above for where):

zoom=4"

If you want a Condmap=style map zoomed to level 4, paste the following (see above for where):

|zoom=4

Examples

In a Google-style map, see the new second line:

<googlemap 
lat="212" lon="991" width="300" height="100" zoom="4"
controls="small" showposition="yes" showregion="yes">
<!--map locations go here-->
(GH) 400, 2250, My home compound (400, 2550)
</googlemap>

In a Condmap-style map, see the new second-to-last line:

{{CondMap|
<!--central maps go here-->

<!--map locations go here-->
(GH) 400, 2250, My home compound (400, 2550)

<!--center, zoom, size settings go here-->
|lat=212|lon=991|width=300|height=100|zoom=4
}}