Login / Status
developer.Resource
Home . Documentation . Document Library . Extension Manuals
Sponsors
hosted by punkt.deTYPO3 and Open Source MagazineAOE Media

4.4. Configuring the WEC Table Map Plugin

The WEC Table Map plugin is used to display a map of all users or all users or locations associated with specified tables such as the Calendar Base locations table, etc. 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 Table 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.

Illustration 19: Configuring the Table Map's Address Tab

  1. Refer to Illustration 19. Note that there are three tabs The first tab, labeled “Address” prompts you for the following:

  1. Tables to map data from: The items in this list are auto-generated from any extension that has the WEC Map extension enabled. Click on a table to highlight (select) it. Hold down the Control (Mac=Apple) key to make multiple table selections.

  2. KML to overlay: You can include KML files to customize markers. For an introduction to KML files, see Google's tutorial at http://code.google.com/apis/kml/documentation/kml_tut.html. Add your own KML files by uploading them using the Filelist module and then adding a WEC Map External Resource record to the Map page or a Storage Folder page using the List module and pointing the resource to the uploaded KML's url (fileadmin/images/myKMLfile.kml).

  3. Startingpoint: Select pages that contain the tables you want mapped by clicking on the file folder icon. For instance, if you want your calendar's location table to be included, select the page that contains the calendar's location records.

  1. S

    Illustration 20: Configuring the Table Map Details Tab

    ee Illustration 20.

  1. 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.

  1. 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.

  2. 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.

  3. 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.

  4. Show Marker Sidebar: Displays the usernames as links to the markers of those in the FE user groups that you've selected.

  5. 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.

  1. 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.

  2. After saving this form and viewing its page in the Frontend, a map will be generated in a similar to Illustration 3, depending on the Map Controls you have chosen to display.