Google Maps API Projects
Home · Demo Maps · Projects · Discussion Forums · Downloads · Developer Available · Google Search · Site SearchSeptember 07 2010 09:35
Navigation
Home
Demo Maps
Projects
Discussion Forums
Downloads
Useful Links
Developer Available
Contact Me
Privacy Policy
Search
Google Search
Site Search
Paypal Donate

Donations encourage developers such as myself to provide support for and develop new versions of our code.

HtmlControl: Reference

Reference

Constructor

var myHtmlControl = new HtmlControl(html, { visible?, selectable?, printable? } );
  • html is a required argument. It must be a string of valid (X)HTML and it creates the contents of your HtmlControl.
  • visible is an optional boolean argument. It determines whether or not the HtmlControl is visible when first created. The default value for visible is TRUE.
  • selectable is an optional boolean argument. It determines whether or not the contents of the HtmlControl can be selected and copied to the clipboard. The default value for selectable is FALSE.
  • printable is an optional boolean argument. It determines whether or not the contents of the HtmlControl will be printed if you print out the map. The default value for printable is FALSE.

Optional arguments visible, selectable and printable are passed as an object literal if their default values need to be changed.

Properties

var i = myHtmlControl.isVisible;
  • isVisible returns a boolean true or false value to indicate whether or not the HtmlControl is currently visible.

Methods

myHtmlControl.setVisible(false);
  • setVisible(boolean) accepts a boolean true or false value and set's the HtmlControl's visibility accordingly.

HtmlControl: Index

Posted by martin on July 26 2008 05:34:36 2149 Reads · Print
Login
Username

Password



Not a member yet?
Click here to register.

Forgotten your password?
Request a new one here.
Users Online
Guests Online: 2
No Members Online

Registered Members: 237
Newest Member: Xavi
Google Maps API Projects © Martin Pearman 2010