|
| 1 | +--- |
| 2 | +title: Map Settings & Configuration |
| 3 | +--- |
| 4 | + |
| 5 | +YMCA Website Services includes robust mapping functionality defined in the [openy_map subproject](https://github.com/open-y-subprojects/openy_map). Maps typically are displayed on the `/locations` page and are highly customizable. |
| 6 | + |
| 7 | +These are a few common customizations: |
| 8 | + |
| 9 | +## Changing Map Options |
| 10 | + |
| 11 | +By default, content types have these labels on the map: |
| 12 | + |
| 13 | +- Branch = YMCAs |
| 14 | +- Camp = Camps |
| 15 | +- Facility = Facilities |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | +These labels can be customized in the Drupal administration pages to better suit your YMCA's more member-focused terminology. To do so: |
| 20 | + |
| 21 | +- In the Admin Menu, go to **YMCA Website Services** (or **Open Y** on prior versions) > **Settings** > **Map Settings** |
| 22 | +- In the **Branch/Camp/Facility Content Type** sections you can: |
| 23 | + - edit the label names, |
| 24 | + - show or hide the content type on the Locations page, |
| 25 | + - set the filter to be on or off by default, and |
| 26 | + - set the map icon. |
| 27 | +  |
| 28 | +- Edit each content type as needed then **Save** the form. |
| 29 | +- Reload `/locations` and you should see your changes. |
| 30 | + |
| 31 | +## Adding Additional Location Types |
| 32 | + |
| 33 | +You can add new content types to the map with a few steps. This may require some trial and error, so be sure to work in a testing environment first. You will need to have the **Field UI** module enabled to do this through the Drupal admin UI. |
| 34 | + |
| 35 | +- Create a new content type via **Structure** > **Content types** > **Add content type** |
| 36 | +- Add these existing fields to the content type: |
| 37 | + - `field_location_coordinates` - required |
| 38 | + - `field_location_address` and `field_location_phone` - suggested for display on the map and location teasers. |
| 39 | + - `field_location_amenities` - if the location should be searchable with the Amenities search. |
| 40 | +- Set up the Teaser display on the new content type: |
| 41 | + - Navigate to **Manage display** then **Teaser** |
| 42 | + - Update these settings to match the Branch Teaser display at `/admin/structure/types/manage/branch/display/teaser` |
| 43 | +- Go back to the Map Settings at `admin/openy/settings/openy_map` and configure the options for your new location type. |
0 commit comments