This user guide is your comprehensive resource for leveraging the SVG Mapping component in the DIGIDECK presentation platform. Follow these steps and explore the additional settings to craft engaging presentations with interactive maps.
DISCLAIMER: This component requires a basic understanding of what SVG is used for along with knowledge of HTML/CSS. This component can be intricate to use.
Adding the SVG Mapping Component
1. Navigate or create a slide that you will want this component to be a part of. Click on the "Layout Mode" option in the bottom left corner.
2. Click the "+" Button on the top left to bring up the Component Store Menu.
3. Search for the SVG Mapping Component and select it to add to your slide.
Using the SVG Mapping Component
Overview
The SVG Mapping component enhances presentations with interactive maps. Get acquainted with its features:
To navigate to the component settings, make sure you are in "Layout Mode" and click the "Layers" option to see the components that you currently have on your slide. Select the "SVG Mapping Component" and a settings icon should show up. Click on that to view the Component Settings.
Explore the component's settings for advanced customization:
Map HTML:
Specify SVG file with classes on elements that you want to be always selectable or configurable in configuration mode.
Selectable Elements:
Certain elements may be always selectable.
These elements cannot be configured to be non-selectable.
They are specified with a
selectable
class on the respective element.<circle class="selectable" id="mn-dot" fill="#FF6F00" cx="1172.9" cy="560.5" r="19.1"></circle>
Configurable Elements:
Scope to Slide:
Enable Configuration:
UI Buttons for Configuration Mode
Navigate seamlessly with these UI buttons:
Gear Icon:
X Icon:
Select All Button:
Clear Button:
Adding Interactive Displays
Toggle Visibility:
Set Visibility Key:
Assign an SVG element ID as a visibility key for the component.
<circle class="configurable" id="ny-dot" fill="#FF6F00" cx="1778.5" cy="561.2" r="19.1"></circle>
The visibility key triggered by this element isny-dot
Default Hidden Elements:
For an optimal experience, set display components to be hidden by default.
Styling Classes
Add visual queues to the state of your SVG map with styling classes:
dd-configurable
(Configuration Mode):Indicates elements that are configurable, but are not selected in Configuration Mode.
dd-selectable
(Both Modes):Indicates elements that can be selected as active by the viewer.
dd-active
(Viewer Mode):Highlights elements selected by the viewer in Viewer Mode.
Example Style Tag
<style>
.dd-edit-mode .dd-configurable:hover {
stroke: #fff;
stroke-width: 0.2vw;
}
.dd-edit-mode .dd-selectable:hover {
stroke: #fff;
stroke-width: 0.2vw;
}
.dd-edit-mode .dd-configurable {
fill: grey;
opacity: 0.5;
pointer-events: all;
}
.dd-edit-mode .dd-selectable {
fill: purple;
opacity: 1;
pointer-events: all;
}
.dd-edit-mode .dd-active {
fill: #FF6F00;
opacity: 1;
pointer-events: all;
stroke: #fff;
stroke-width: 0.2vw;
}
</style>
Example of an SVG Mapping Component