GoogleMap Control

The GoogleMap control allows you to display an interactive map within your Newlook form.

Client support

   Newlook Smartclient

   Newlook Server

Use

The control can be used to display a map location based on address properties. These properties can be assigned literal strings or derived from your host application fields.

 

The GoogleMap control passes an address to the Google Maps API. This address determines the center point of the displayed map. The address string passed to the API can be either latitude and longitude co-ordinates, or a street address.

The street address string passed to the API is a concatenation of the following address properties ; Street1, Street2, Street3, Street4, City, State, ZipCode, Country (in this order). Not all street address properties need to be specified to create a valid address string. It is possible to specify a single address string in one of the address properties, or split the address between two or more address properties, and the address string will be constructed correctly. This is particularly useful if you have an application field that contains a single address field. You can map this field to any of the Address properties (it doesn't matter which one) and the address string will be valid.

BE AWARE THAT:

While it is possible to specify either a street address or longitude and latitude for the map location, the Address properties (Street1, Street2, Street3, Street4, City, State, ZipCode, Country) will take precedence over the Latitude/Longitude properties if both are specified.

Address properties can also be mapped to the contents of other controls on your form. For example, if you have host application fields which contain address information, you may wish to map these fields to the relevant address properties so that your map location is in sync with the current host application values.

Once an address has been specified, a marker will be placed on the map at the address location. The ToolTipText property can be used to specify custom text to display when the user hovers over the marker. If the property is left blank, the address, as determined by Google, will be displayed as the marker's hover text.

 

See Also

IFrame control | HTML control | Field function


© 2004-2021 looksoftware. All rights reserved.