Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 019364a

Browse files
authoredNov 10, 2022
Merge pull request #10 from froboy/DS-52-location-map-config
docs: DS-52 Map settings & config
2 parents bbe214f + d030584 commit 019364a

File tree

3 files changed

+43
-0
lines changed

3 files changed

+43
-0
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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+
![Screenshot showing map labels](./map-labels.png)
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+
![Branch content type settings](branch-content-type-map-settings.png)
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.
Loading
Loading

0 commit comments

Comments
 (0)
Please sign in to comment.