Module talk:Location map
This template takes in latitute and longitude, should we get it to include the template Coor d which also takes in latitute and longtitude and seems to be the ultimate top-level template for the ___location of places. This would ensure that anything that reads the geographic ___location of articles would then pick up anything using this map. See WikiProject Geographical coordinates for more details. --MarkS (talk) 19:55, 26 June 2006 (UTC)
Thanks
Thanks so much to everyone who contributed to this template. It was such a relief when I found this one. I had been thinking on how to create this for sometime while working on a bot that creates Indian towns and cities. I was able to plug-in this template and get the bot running. Thanks again, Ganeshk (talk) 21:03, 26 June 2006 (UTC)
- See Mumbai for an example. - Ganeshk (talk) 21:04, 26 June 2006 (UTC)
Is it possible
...or would it be possible to have more than one city on these maps? --estavisti 19:52, 9 July 2006 (UTC)
- It's not possible at the moment, but it could be done. One serious problem would be overlapping of names, which would create a need to micromanage the position of names. That would be likely to break across browsers. Zocky | picture popups 19:32, 13 July 2006 (UTC)
- Another note: The way this is implemented now, all the smart bits are in this template, and subtemplates just return the requested data. We could make pretty much any other template that uses that data - i.e. the same place on several maps, several places on the same map, superimposition of other things than labels, etc., without breaking or influencing this one in any way. Zocky | picture popups 19:37, 13 July 2006 (UTC)
- It is possible. See Template:Location map start. -- Ganeshk (talk) 14:58, 26 October 2006 (UTC)
Hungary Map
Could somebody create a ___location map for Hungary (according o Croatia map)? thx. --Neoneo13 13:01, 22 September 2006 (UTC)
Position parameter
Would it be a good idea to add Top and Bottom values to the position parameter (position=top and position=bottom)? Currently it allows for right and left. On a multiple ___location map, having just two options means the map is very cluttered. Top and bottom values will give more usage options. -- Ganeshk (talk) 23:29, 26 October 2006 (UTC)
- I have added top and bottom params. Can someone please check if it looks okay. -- Ganeshk (talk) 06:31, 9 November 2006 (UTC)
Alt text
Should we add an alt-text to the image? If there is a caption, it would be simply {{{caption}}}, otherwise, e.g. "Map of ___location within {{{1}}}". -- User:Docu
A few suggestions
Excellent work on this. You've made life a lot easier for many people. Are you familiar with the {{Lageplan}} template from the German wiki? They made this for their German town infobox and I brought it over to the English wiki for use in the English version of this infobox: {{Infobox German Location}} - at the time I did not know about the Location map.
The Lageplan template has now also been modified for use in {{Infobox Town GR}} for Greek locations.
Lageplan has a few nice features that Location map does not. On this page I have put up two versions of the infobox used for Frankfurt, one using Lageplan, the other with Location map. I would gladly change the template to use Location map if a few changes were made:
- Border: Is there any way to turn off the image border? It is alright for some cases but, as you can see, not for this one
- Error: Instead of shifting the dot off the edge of the map if the co-ordinate values are either not given or out of range, would it be neater to have some sort of error display? In Lageplan, a second map can be displayed (DE: Image:Missing Map of Germany.png, GR: Image:Prefectures Greece nocoord.png). So either the addition of a second error image or the overlaying of a question mark image would look better.
- Dot size: (a minor issue) Can the size of the dot be adjustable?
- Floating text: (another minor issue) Can the float text be modifiable? Also, Lageplan makes it possible for the dot to also have float text of its own
Keep up the good work. - 52 Pickup 09:35, 24 January 2007 (UTC)
Russia and Canada
There's not yet a template for Russia or Canada (countries near the North Pole). There are some difficulties to solve. The images are distorted by orthogonal projection. In dewiki we discuss a possible hint to use "normal" maps.
The image on the right side looks like using polar coordinates:
- The formulas for the coordinates we need are
- x=x_middle - r*(90-lon)*cos(k*lat)
- y=y_middle + r*(90-lon)*sin(k*lat)
- x_middle and y_middle are the coordinates of the North pole in the picture.
- r and k we have to check in the picture.
What do you think? Is that the right way? Any ideas? --Obersachse 17:36, 6 February 2007 (UTC)
- I made a russian map using equirectangular projection. --Obersachse 15:13, 5 March 2007 (UTC)
- Could you point to it, please? Thanks.—Ëzhiki (Igels Hérissonovich Ïzhakoff-Amursky) • (yo?); 15:47, 5 March 2007 (UTC)
- Template:Location map Russia. There's an example too. --Obersachse 23:28, 6 March 2007 (UTC)
- Great! A couple of suggestions, though: can another map be created which would have the same colors as current locator maps for Russian federal subjects (example, and can it be updated to show the January 2007 borders (i.e., taking into consideration Perm and Krasnoyarsk Krai mergers)? Thanks!—Ëzhiki (Igels Hérissonovich Ïzhakoff-Amursky) • (yo?); 14:17, 7 March 2007 (UTC)
- Ask User:Koryakov Yuri, please. --Obersachse 00:06, 18 March 2007 (UTC)
- Great! A couple of suggestions, though: can another map be created which would have the same colors as current locator maps for Russian federal subjects (example, and can it be updated to show the January 2007 borders (i.e., taking into consideration Perm and Krasnoyarsk Krai mergers)? Thanks!—Ëzhiki (Igels Hérissonovich Ïzhakoff-Amursky) • (yo?); 14:17, 7 March 2007 (UTC)
- Template:Location map Russia. There's an example too. --Obersachse 23:28, 6 March 2007 (UTC)
- Could you point to it, please? Thanks.—Ëzhiki (Igels Hérissonovich Ïzhakoff-Amursky) • (yo?); 15:47, 5 March 2007 (UTC)
The problem of maps crossing the +/- 180 meridian
is solved in ruwiki and dewiki by inserting a new parameter crosses180. See e.g. de:Uelen. Thanks to ru:User:Kalan. --Obersachse 00:03, 18 March 2007 (UTC)