Home (More maps)
Send me a message
MControlSuite - Copyright 2008 - Marcelo Montagna - http://maps.forum.nu
(MMapTypeControl - MOpacityControl - MZoomControl - MStatusControl - MTileNumberControl)










MMapTypeControl - Source: MMapTypeControl.js
Usage:
   map.addControl(new MMapTypeControl());
   map.addControl(new MMapTypeControl(options?));

MMapTypeControl options:
   Position: GControlPosition()
   background: HTML color - Default: '#8080FF';
   foreground: HTML color - Default: '#EEEEEE';
   parent: DOM element;
   direction: 'V' or 'H' - Default: 'H';
MOpacityControl - Source: MOpacityControl.js
Usage:
   map.addControl(new MOpacityControl());
   map.addControl(new MOpacityControl(options?));

MOpacityControl options:
   Position: GControlPosition()
   background: HTML color - Default: '#8080FF';
   foreground: HTML color - Default: '#EEEEEE';
   parent: DOM element;

NOTE: Remember to get the image for the opacity sliders
http://maps.forum.nu/sliderBG1.jpg
Please do not hotlink!

To do:
Handle removemaptype event.
MZoomControl - Source: MZoomControl.js
Usage:
   map.addControl(new MZoomControl());
   map.addControl(new MZoomControl(options?));

MZoomControl options:
   Position: GControlPosition()
   direction: 'V' or 'H' - Default: 'H';
   background: HTML color - Default: '#8080FF';
   foreground: HTML color - Default: '#EEEEEE';
   parent: DOM element;
   validValues: Array of number - default: [];
MStatusControl - Source: MStatusControl.js
Usage:
   map.addControl(new MStatusControl());
   map.addControl(new MStatusControl(options?));
   map.addControl(new MStatusControl({DMS: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';
MTileNumberControl - Source: MTileNumberControl.js
Usage:
   map.addControl(new MTileNumberControl());
   map.addControl(new MTileNumberControl(options?));
MTileNumberControl options:
   borderWidth: number;
   borderColor: HTML color - Default: '#0000FF';

Copyright 2008 - Marcelo Montagna  - http://maps.forum.nu

Free to use as long as copyright notices are left unchanged.
Please save the file to your own server. Do not link directly,
or unexpected things might happen to your control :-)

Note: All scripts contain code to prevent hotlinking. (marked with 'REMOVE')
You need to remove it when saving the file to your server.

------------------------------------------------------------
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
------------------------------------------------------------