Modèle:CarteLocalisationGenerale

De Wikivoyage


Localisation de Munich
Munich
Fonction
Affiche une carte avec un point indiquant un emplacement donné. Ce modèle est utilisé par Modèle:CarteLocalisation. Ne pas l'utiliser directement.


Example
{{CarteLocalisationGenerale | 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 }}
Parameters
  • map → Carte à utiliser. La projection est importante, les parallèles et les méridiens doivent être perpendiculaires, comme dans Mercator Projection.
  • mapsize → largeur de la carte en pixels (ne pas préciser px). Par défaut 250.
  • lat → latitude
  • long → longitude
  • caption → texte qui apparaît si on survole le point avec le curseur de la souris
  • top → latitude du haut de l'image
  • left → longitude de la gauche de l'image
  • factlat et factlong → factors that tell the template how to position the marker. See below how to calculate them.

Calcul de factlat et factlong[modifier]

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 (WT-de) 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 Modèle:PositionMap)