Module talk:Location map

From Wikipedia, the free encyclopedia
  (Redirected from Template talk:Location map)
Jump to: navigation, search

Astronomical maps[edit]

Is it possible to modify the template (or create a similar one such as "Template:Location map astronomy/constellation or /star chart") that allows markers to be added to any constellation map? Celestial coordinates, instead of using longitude and latitude, use right ascension and declination.

Declination is essentially the same as latitude with astronomical objects being defined as between 0 and 90 degrees north or south of the celestial equator, the plane created by the earth's equator extended outward into the celestial orb. A star, galaxy, or nebula sharing the same declination as the earthbound observer's latitude will pass directly above the observer once a day. An observer at the north pole will always have the star Polaris overhead as the star has a declination of approximately 89 degrees north.

Right ascension differs from latitude in how is is measured. Lines of right ascension are defined not in degrees, minutes, and seconds, but rather in hours, minutes, and seconds. Hence, a difference of one hour in right ascension corresponds to fifteen degrees of arc and can be expressed as up to 12 hours east or west of the zero-hour datum--the celestial equivalent of the Greenwich meridian. That datum is defined at the vernal equinox, a point where the ecliptic crosses the celestial equator in the constellation Pisces and extending to the north and south celestial poles. This is the same point as the location of the sun when it crosses from the southern to the northern celestial hemispheres each spring on the earth's northern hemisphere.

An example where this would be useful is the star chart in the infobox of the article about the star Gliese 667. Currently, the display is hard-coded with the size of the chart and the circle depicting the star's position expressed in pixels. I'm not an expert in cartography, and I suspect that the astronomy wikiproject may need to rework the coding of their maps and the projections they use, but I'm sure the hard work would make editing articles much easier afterward.

Infoboxes of astronomy articles usually employ these templates to express the coordinates of a celestial object:

Thanks. Fortguy (talk) 03:32, 16 April 2016 (UTC)

@Fortguy: It should be feasible to create something. Location maps are usually equirectangular projections (so latitude horizontal, and longitude vertical), but other projections can be used (see Template:Location map Russia). With regards to the star charts - what projection is used (or could be used), and what is the extent of the chart? If those facts are known, then it should be feasible to use location map coding. However, the calculations may fail entirely close to the poles.--Nilfanion (talk) 00:26, 10 May 2016 (UTC)

Relief maps[edit]

For reference:

MariaDB [enwiki_p]> select page_title from page where page_namespace = 828 and page_title like 'Location_map/data/%relief%';
Empty set (0.00 sec)

MariaDB [enwiki_p]> select page_title from page where page_namespace = 10 and page_title like 'Location_map_%relief%';
| page_title                          |
| Location_map+/relief                |
| Location_map_Central_Serbia_relief  |
| Location_map_Cuba_relief            |
| Location_map_Iberia_relief          |
| Location_map_Iberia_relief/doc      |
| Location_map_Slovakia_relief        |
| Location_map_Switzerland_relief     |
| Location_map_Switzerland_relief/doc |
| Location_map_USA_relief             |
| Location_map_USA_relief/doc         |
| Location_map_United_States_relief   |
11 rows in set (0.01 sec)

MariaDB [enwiki_p]>

Jackmcbarn (talk) 16:40, 8 May 2016 (UTC)

see related tfd. Frietjes (talk) 15:44, 10 May 2016 (UTC)

Links being suppressed in location map[edit]

I have hit a snag using Template:Location map~ and I hope someone can help. I have set up a demonstration of the problem at User:Thincat/sandbox2. Both points have link= specified and their labels include links. As things stand clicking either the blob or the annotation for 120 links correctly. For 88 the label links OK but double clicking the blob merely leads to the 120 label becoming highlighted. I use Firefox but it seems the same with other browsers. If I keep the 88 label at "top", moving the 120 label anywhere other than right clears the fault with 88. Keeping the 120 label at "right" the fault occurs wherever the 88 label is but if it is at the left neither 88's blob nor label are clickable. This was going wrong before I made the labels include links. I think the problem is on the lines of if you have two blobs fairly near and side by side, the label on the leftward blob seems to have an extended scope to the right, extended way beyond the text. However, sometimes everything is OK even with much closer items. I have got a fairly good workround by using labels for links and positioning the label for one blob so it doesn't "hide" a nearby label but occasionally I haven't avoided "hiding" a blob. See The Outlying Fells of Lakeland#Map. Thincat (talk) 18:34, 22 May 2016 (UTC)

strange, ... swapping the order of the labels in your sandbox fixed the links for me. Frietjes (talk) 19:18, 22 May 2016 (UTC)
Good grief! All sorts of ideas have occurred to me but that wasn't one of them. Thincat (talk) 19:44, 22 May 2016 (UTC)
I wonder, in my analysis above, whether when I said "leftward" I should have said "later defined". On the main map the points are defined clockwise starting at 4 o' clock. Thincat (talk) 19:54, 22 May 2016 (UTC)

Migrating to <graph> maps[edit]

I just built {{Graph:Map_with_marks}}, which has much more elaborate capabilities of graphing, based on the <graph> tag. I think this template should be migrated because it should offer:

  • each map becomes a regular image, without any printing issues (not a div with CSS positional hacks)
  • this approach allows any number and any kind of base and overlay images/icons and labels, with any fonts/alignments/...
  • it can be easily improved to be interactive, similar to Country_with_regions_and_capitals template.

CC: @Jackmcbarn: @Izkala: --Yurik (talk) 21:36, 17 July 2016 (UTC)