Street2 Property

Gets or sets the map street address (line 2).

object.Street2 as String or Field

Use

The control's map center point is specified using either Latitude and Longitude coordinates 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 the order specified). 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.

Any of the 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.

The Street2 property can be used to specify the second street component of the address string. This property can be mapped to a street address field on your form, either by using the Field Picker tool () to select the relevant form control or by typing in an expression using the Field function. Once specified, the value will be displayed in the property grid as =Field("FieldName") or =Field(<Row>,<Column>).

TIP:

The Google Map control constructs an address to pass to the Google Maps API by combining the individual address properties into a single string. If you have an application field that contains the full address string, you can map this to any of the Address properties (it doesn't matter which one) and the address will be passed through correctly.

See Also

City property | Country property | MarkerToolTipText property | Latitude property | Longitude property | State property | Street1 property | Street3 property | Street4 property | Zipcode property

Applies To

GoogleMap control


© 2004-2021 looksoftware. All rights reserved.