Template:Map/Point

Template for getting a normalized linear point scaled from 0.0 to 100.0, suitable for use with CSS 'left' and 'top' position attributes, from a map coordinate and the current map extent settings. This template is not normally used directly. See Template:.


 * Usage
 * 1 - x map coordinate
 * 2 - y map coordinate


 * Returns nothing. Scales x and y, and sets variables extension vars 'pointLeft' and 'pointTop' with the corresponding result. Assumes the extents variables have been set-up correctly.

Get scaled point for map coordinate 23,45 for a map that's 200 x 200
 * Examples

Get scaled point for extents with a virtual center at 50,50