1,727
edits
No edit summary |
|||
== Inner Working ==
The Position of the Compass Rose/arrow combination and the zoom factor can be set by the user. Parameters ArrowLatitude, ArrowLongitude and zoomlevel in the section [StationMap]. The map will centre halfway the wind arrow and the station marker.
The map is created with the leaflet library with the zoomlevel as found in the inifile. A larger zoomlevel zooms in, a smaller zoomlevel zooms out. A little experimentation should give what you want.
The WindRose is created from the image CompassRose-{x} where x is the value of CompassRoseType. If the user adds images with the same naming convention it is possible to add different CompassRoses to the map by changing the CompassRoseType. The CompassRosePosition has the possible values of: topleft, topright (default), bottomleft or bottomright.
The WindArrow is created from the image WindArrow-{x} and can be placed at a position other than the station position which is taken as the default for the arrow position. If the user adds images with the same naming convention it is possible to add different WindArrows to the map by changing WindArrowType.
If StationMapMenu=false then the module will not be generated and the menu entry for the website will not be made.
The images are located in the CUicons directory. If you want other images, just add them with the required index.
|