This task is for users with the OC Map Manager role.
Shared layers are created separately from maps and can be used on any map created on the site. Layers sit on top of a map, allowing you to present information and display points of interest. Layers can also be created for use on only one map.
To create or update a shared layer:
- From the main menu, go to More > Maps > Layers.
- Select Create layer to start creating a new shared layer, or select a layer from the list to start editing it.
- For new layers, select to build it Based on your pages or using the Import layer (.kml, .kmz or .geojson) option.
- Fill in the settings and Save the layer.
Shared layers can be added to maps when you are creating or editing them. A shared layer will be indicated in the layers list with the (Shared) label.
Based on Your Pages
Building a layer based on your pages allows you to create layers specific to your content types or content labels.
You can only create layers based on pages with a location field, such as OC Events or OC Venues.
Here are the fields you can edit:
-
Layer based on your pages
- Name: The name of the layer.
- Description: A brief description of the layer for internal purposes.
-
Content types to include: Select which content types to include on this layer:
- All: Show a map pin for all content types that have built-in location fields
- Some: Choose which content types to display on the map. You can only select from content types that have a built-in location field.
-
Labels to include: Select which content labels to filter the pages on this layer:
- All: The layer will source pages with any content label from pages of a content type that has built-in location fields
- Some: The layer will source pages with the labels you specify for a content type with built-in location fields. Check the box for Each page must have all labels to only include pages that have all the labels you've chosen.
- Include content from these sites: Select which sites you want to source pages from.
-
Display features
- Legend label: A label used to help filter information on the map. If left blank, the system will use the layer's name in the legend.
-
Marker: Set what kind of marker to use for this layer. Your marker will preview next to the selection options. You have two options:
- Upload marker: Use the Upload marker button if you have a custom icon file. If you have a custom icon, make sure it's no smaller than 22 x 22 px and no larger than 72 x 72 px. Additionally, you can only upload these file types: JPG, JPEG, and PNG.
- Build marker: Use this option to build a marker using our preset options. We have a drop marker or square marker you can choose from. You can choose the color and size of the marker as well.
Once you've finished editing the layer, select Save.
Import Layer (KML, KMZ, or GeoJSON)
You can use KML or KMZ files to upload external layers from Google Earth or another GIS platform. As Google is deprecating support for KML or KMZ file in April 2027, we recommend using GeoJSON files for new layers and converting existing KML or KMZ layers to use GeoJSON.
Here are the fields you can edit:
-
Layer based on geographic data
- Name: The name of the layer
- Description: A brief description of the layer for internal purposes
- Upload file: Select the KML, KMZ, or GeoJSON file you want to use. Either enter the URL link into the Enter URL field or use the Upload button to upload the file from your computer. If you are using an external URL for the KML or KMZ file, this cannot be converted in the CMS OE admin; you will need to convert it externally.
-
Display features
- Legend label: A label used to help filter information on the map. If left blank, the system will use the layer's name in the legend. This label will only apply to the legend, it will not affect any markers in the file.
-
Marker: Set what kind of marker to use for this layer. Your marker will preview next to the selection options. You have two options:
- Upload marker: Use the Upload marker button if you have a custom icon file. If you have a custom icon, make sure it's no smaller than 22 x 22 px and no larger than 72 x 72 px. Additionally, you can only upload these file types: JPG, JPEG, and PNG.
- Build marker: Use this option to build a marker using our presets. We have a drop marker or square marker you can choose from, and you can choose which color and size it has as well.
Once you've finished editing the layer, select Save.
The marker for the map pin is the icon in the code of the geographic file. This icon's file is stored in the mapping system from which the file is extracted. As the icon file is stored in the mapping system and not in the Files library, a default blue Google Maps pin will display on the map to indicate all locations in the geographic file.
If you want to customize the marker, upload the custom icon to the Files library and modify the geographic file to point at the uploaded marker. For help with this, consult with your GIS team.
Then, upload an Icon to show as the marker in the map's legend by choosing Upload marker. Please use an icon that is no smaller than 22x22 px and no larger than 72x72 px. If you don’t have a marker to upload, choose Build marker and build your own.
Convert KML or KMZ to GeoJSON
In April, 2026, Google announced the deprecation of the KmlLayer class in JavaScript. Google will be removing KML layer support from the Maps JavaScript API in April 2027.
In preparation for this change, you can now upload GeoJSON files. We do not recommend using a KML layer for new projects and you should also convert any existing layers using KML or KMZ to GeoJSON format. If you are using an external URL for the KML or KMZ file, then it cannot be converted in the CMS OE admin; you will need to convert it externally and upload your new GeoJSON file.
Both the Maps and Layers list will show a warning icon if they contain a KML or KMZ file. To convert to GeoJSON:
- Select the layer containing the KML file and Download your existing file to keep a record of it.
- Select the Convert to GeoJSON button to start the conversion.
- Download your new GeoJSON file to review ad verify it before using it on your map.
- Once reviewed, use the File used on the map setting to choose the GeoJSON (converted file). Until you review your new file, we recommend maintaining the use of the KML / KMZ file.
- Save your layer.