The WEC Frontend User Map plugin is used to display a map of all users or all users belonging to one or more Frontend Users Groups. To open the plugin, use the Page Module and select the page where you've installed the plugin. Then click the Edit Icon (the pencil) associated with the WEC Frontend User Map plugin. This will open the plugin's FlexForm.
Tip: When working with a plugin, it is generally helpful to write the plugin's name or a descriptive title in the Header field (under the General tab). This makes it easier to select which plugin you want to edit when a page contains multiple Plugin Content Elements. To prevent the header from displaying on the page, change the Header Type to Hidden.
Refer to Illustration 16.
Illustration 16: The Frontend User Map Details Tab
Note that there are two tabs The first tab, labeled “Map Details” prompts you for the following:
Width and Height: The default size of the Frontend map is 500px by 500px. You can change the map size to suit the look and feel of your website here. In order for the marker balloon information to be visible in the Frontend, avoid setting the height value below 400 pixels.
Illustration 17: Frontend Users Map With and Without Sensitive Geocoding
Sensitive geocode (no address): Checking this box prevents the map markers from displaying at the precise location of the user address and hides the detailed address information. Instead, Frontend users are shown by city, state, and country; and multiple users in the same city are totaled. (See Illustration 17 for examples of each.)
Initial Map Type: Specifies which map type to show initially. “Normal” will show the street map (default), Satellite will show satellite images, and Hybrid will show satellite images with streets overlayed.
Show Written Directions: Displays an addition tab in the marker popup with two forms to get direction from or to the current location via maps.google.com. Directions are disabled if “Sensitive geocode” is enabled above, no matter the setting here.
Show Radius Search: Displays a Search form that, when completed, will display all markers within a specified radius (10–250 miles) of a user-supplied address.
Show Marker Sidebar: Displays the usernames as links to the markers of those in the FE user groups that you've selected.
Prefill Address from User Info: If directions are enabled, this will automatically fill in a logged in FE user's address information into the directions form.
Filter by FE user group: This is the key component to the Frontend Users Map plugin. Select the Frontend User Group(s) you would like to include on your map. You may create custom Users and User Groups as necessary to display the locations of a multi-site campus, locations of local churches, small groups, etc. (For information on how to add Frontend Users, see www.webempoweredchurch.com/support/howtos/).
Startingpoint: Select the pages/folders where FE user groups are stored. Typically, this would be the site's main Storage Folder, but you choose different or additional folders as desired.
Map Controls Tab.
Illustration 18: Frontend User Map Controls Tab
Refer to Illustration 18. The third tab, labeled “Map Controls,” allows you to specify which map controls should be shown on the map. Options include the size of the map controls (pan and zoom) if any, whether an overview map is desired, whether a scale should be included, and the map type selection control (satellite, political, or a hybrid of the two). See Illustration 15 for a visual description of these controls.
After saving this form and viewing its page in the Frontend, a map will be generated in a similar to Illustration 2, depending on the Map Controls you have chosen to display.