साँचा:PositionMap general

विकिट्रैवल से
यहाँ जाएँ: परिभ्रमण, खोज

Lage von Munich
This template draws a map with a red marker showing the position of a given place in this map.
It is used internally by the Template:PositionMap. Please avoid using it directly.

{{PositionMap_general | map=Germany map modern.png | mapsize=300 | lat=48.1371 | long=11.5754 | caption=Munich | top=55.33118 | left=4.744196 | factlat=-0.11803462899 | factlong=0.08866101825 }}
  • map → defines a map image to use. Note that the projection of the map is important. Parallels and meridians have to be straight and perpendicular to each other, as e.g. in the Mercator Projection.
  • mapsize → the width of the map image in px, but do not add "px". Default is 250.
  • lat → latitude of the red dot.
  • long → longitude of the red dot.
  • caption → if you move the mouse cursor over the red dot you will see this text.
  • top → the latitude of the top edge of the map image.
  • left → the longitude of the left edge of the map image.
  • factlat and factlong → factors that tell the template how to position the marker. See below how to calculate them.

Calculation of factlat and factlong[बदलें]

To calculate the values you have to know the latitudes and longitudes of the edges of the map image. If the width and the length of the image differ, you also need to know the sizes of the original image. It is also possible to do the calculations if you know the position of two landmarks on the map, but this can only be done with reasonable effort using an excel-sheet, please contact Flip666 in this case.

If width and height are the same:

  • factlat = 1 / ( latitude of bottom edge - latitude of top edge )
  • factlong = 1 / ( longitude of right edge - longitude of left edge )

If width and height differ factlat has to be corrected:

  • do the calculations as above
  • divide factlat by the image width and multiply it by the image height

(an example is the map of Belize, defined in Template:PositionMap)