Template talk:Location map/doc

Latest comment: 14 years ago by Redrose64 in topic Error in (degrees/minutes) mapping

Error in (degrees/minutes) mapping change

For some reason, there is an error when using degrees/minutes. The Infobox Settlement template is correct.

Location map Infobox Settlement
 
 
Dayton
Dayton (Ohio)
City of Dayton

{{Location map|Ohio|label=Dayton |lat_deg=39|lat_min=45|lat_sed=32| lon_deg=-84|lon_min=11|lon_sec=30| }}

{{Infobox Settlement | official_name = City of Dayton| pushpin_map = Ohio | latd = 39| latm = 45| lats = 32| latNS = N | longd = 84| longm = 11| longs = 30| longEW = W }}

--The Three Headed Knight (talk) 18:42, 15 April 2010 (UTC)Reply

Found what is causing the error. Still have not found where the error is coming from.
Location map - as advertised Infobox Settlement Location map - using decimal degrees
 
 
Kansas City, Missouri
Kansas City, Missouri (Missouri)
Kansas City
 
 
Kansas City, Mo
Kansas City, Mo (Missouri)

{{Location map|Missouri|label=Kansas City, Missouri |lat_deg=39|lat_min=06|lat_sed=00| lon_deg=-94|lon_min=34|lon_sec=48| }}

{{Infobox Settlement | official_name = Kansas City| pushpin_map = Missouri | latd = 39| latm = 06| lats = 00| latNS = N | longd = 94| longm = 34| longs = 48| longEW = W }}

{{Location map|Missouri|label=Kansas City, Mo |lat_deg=39|lat_min=06|lat_sed=00| lon_deg=-94.58| }}

It appears that Location map is using the parameter lon_deg as decimal format, not degree format. There is a parameter long for decimal format.

Note: All of the above examples were produced with the Location map template
      version Template:Location_map&oldid=1696823

--The Three Headed Knight (talk) 22:52, 15 April 2010 (UTC)Reply

Please see the response that I left at en:Template talk:Location map#Lat and lon dms parameters require decimal values; it's not a problem with the template itself, but in the way that it's being used. You have two issues here:
  • |lat_sed=32 should be |lat_sec=32
  • it is not necessary to use a negative value: instead of |lon_deg=-84, use |lon_deg=84|lon_dir=W
Please note that I rarely visit Simple English Wikipedia (see my contributions); if you want to ask more questions, please drop me a note on English Wikipedia at en:User talk:Redrose64. --Redrose64 (talk) 16:13, 16 April 2010 (UTC)Reply
Return to "Location map/doc" page.