I am in the process of creating an interactive world map using an SVG map. The SVG format is necessary because I have implemented functionality to zoom in and move the map around. However, a challenge has arisen: the SVG element is obstructing the shadow of its parent div.
Below are the snippets of CSS and HTML code:
.map__image{
width: 58%;
float: left;
border-radius: 10px;
box-shadow: -6px -6px 14px rgba(255, 255, 255, .7),
-6px -6px 10px rgba(255, 255, 255, .5),
6px 6px 8px rgba(255, 255, 255, .075),
6px 6px 10px rgba(0, 0, 0, .15);
background-color: #e5e5e5;
margin:14px;
padding:0.8rem;
<html>
<head>
<meta charset="utf-8" />
<title>Test Interactive World Map</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimal-ui"/>
</head>
<body>
<div id="map" class="map">
<div class="map__image">
<div id="pagecarte">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:amcharts="http://amcharts.com/ammap" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" viewBox="0 0 1051 678" id="svg">
<g id="shape">
<a id="region-AE" xlink:title="United Arab Emirates" >
<path class="land" d="M619.874,393.722L620.373,393.573L620.477,394.411L622.671,393.93L624.99,394.009L626.684,394.1L628.604,392.028L630.695,390.054L632.467,388.146L633.001,389.202L633.382,391.639L631.949,391.651L631.72,393.648L632.216,394.073L630.947,394.674L630.939,395.919L630.122,397.175L630.049,398.394L629.484,399.032L621.056,397.508L619.981,394.428z"/>
</a>
</g>
</svg>
</div>
<button id="reset" , class="mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect controls-button">
Reset
</button>
</div>
</div>
</body>
</html>
1-I have a JavaScript file that handles the "is-active" class as well as the scaling and panning of the SVG.
2-In the actual project, there are numerous paths within the SVG section, but for simplicity in this example, I only included one.