|
Please save the file to your own server. Do not link directly, or unexpected things might happen to your control :-) The script contains code to prevent hotlinking. (marked with 'REMOVE') You need to remove it when saving the file to your server. Load the script: <script src="/MStatusControl.js"></script> First Control added with:
map.addControl(new MStatusControl());
Second Control added with:
var pos = new GControlPosition(G_ANCHOR_TOP_LEFT, new GSize(0, 520));
map.addControl(new MStatusControl({DMS:true, position:pos, background:'#FFB381', foreground:'#000000', vertical:true})); MStatusControl options:
DMS: Boolean - Default: false - Show Degrees, Minutes, Seconds *
Position: GControlPosition() vertical: Boolean - Default: false - Make the control taller and more narrow background: HTML color - Default: '#eeeeee'; foreground: HTML color - Default: '#000000'; [*] Notice that when using DMS, the control becomes wider. |