Поделиться через


Working With the Store Locator Web Part

The Store Locator Web Part provides shoppers with a tool to find a store according to a specific location, either by Zip or Postal Code, or country, state, province or city.

The shopper enters in their address, ZIP code or postal code and clicks Search. The Store Locator Web Part will list all of the store locations in the area defined by the Search Radius property. The shopper then selects a store location from the list, and clicks on Get driving directions. Directions to the store location will be provided based on the address, ZIP code or postal code first entered for the search.

Note

The Store Locator Web part will be in Staging mode when it is first installed. You must get a Production account for the Virtual Earth service and reconfigure the Web Part to set up the Production environment for the site. Please see Store Locator Web Part for more information on setting up a Production environment.

Web Part

The following figure shows the Store Locator Web Part.

Dd442184.Vug_StoreLocator_WebPart(en-US,CS.90).gif

The following figure shows the store locations for a specific Zip Code.

Dd442184.Vug_StoreLocator_Map(en-US,CS.90).gif

The following figure shows the map details and driving instructions for the selected store.

Dd442184.Vug_StoreLocator_Details(en-US,CS.90).gif

Property Sheet

The following figure shows the Store Locator Web Part property sheet. The Store Locator Web Part property sheet lets site designers control some aspects of the Web Part's behavior and appearance. The property sheet is displayed by selecting the edit option on the Web Page (in Edit Page mode) and then selecting Modify Shared Web Part. This displays the property sheet. Expand the sections to see the relevant properties.

Dd442184.Vug_StoreLocator_WP_Properties(en-US,CS.90).gif

Properties

The following table lists and describes the properties for the Store Locator Web Part.

Property

Type

Description

Default value

Distance Unit

String

Unit of measurement to use for distance calculations. Supported types are kilometers "Km" or miles "Mi".

Mi

Search Radius

Integer

Radius to use to search for nearby stores.

50

Disable "Map Navigation"

Checkbox

Use to disable the navigation controls on the Virtual Earth Map Control.

Un-checked

Disable "Driving Directions"

Checkbox

Use to disable the driving directions capability of the Store Locator Web Part.

Un-checked

Disable "Bird's Eye View"

Checkbox

Use to disable the bird's eye view capability of the Store Locator Web Part.

Un-checked

"Search address push-pin" image URL

String

Custom pushpin image URL to use with the search address provided by the shopper.

Home icon

"Store push-pin" image URL

String

Custom pushpin image URL to use for the store locations.

Virtual Earth pushpin icon

Use Virtual Earth "Production" environment

Checkbox

Specify if the Virtual Earth production environment or staging environment should be used.

Un-checked

Virtual Earth token timeout

Integer

Amount of minutes before the Virtual Earth supplied client token expires.

Valid values are between 15 and 480 minutes.

0

See Also

Other Resources

Working With the Web Parts

Store Locator Web Part