Open WP Media Library
Find an image that you want to add to the background, or upload a new one
Click on the image
Click on the "Copy URL to clipboard" button
Go to the MapSVG editor, open the map editing page
Go to the CSS tab
Add the following code to the CSS editor, replacing COPIED_IMAGE_URL with the URL you have copied earlier. If you're working with Tooltips, replace the class name .mapsvg-details-container
with .mapsvg-tooltip
. If you're working with Popovers, use .mapsvg-popover
class instead:
.mapsvg-details-container {
background: url(COPIED_IMAGE_URL);
background-size: cover;
background-position: center;
background-repeat: no-repeat;
}
That's it!
If your image makes the text unreadable, wrap the Details View content with a div container using .mapsvg-inner
(or any other class name) class:
<div class="mapsvg-details-inner">
<h5>{{title}}</h5>
</div>
Then add the following code that adds a white container on top of the background image:
.mapsvg-details-inner {
background: rgba(255,255,255,0.7);
padding: 20px;
border-radius: 10px;
}