I created a map and converted it to SVG. I want to display the name of each neighborhood when a user hovers the mouse over it.
I'm not sure how to achieve this or how to isolate the specific area of a neighborhood to make changes.
Here's a screenshot of that section of the website:
.
Users have been asking for more information for a complete answer. Here's the HTML code I used:
<div class="col-lg-6 col-md-6 col-sm-12 content-area">
<object style="width: 500px; margin-top: 30px; margin-bottom: 30px;" type="image/svg+xml" data="<?php bloginfo('template_directory');?>/img/mapa-goiania-traco.svg"></object>
</div>
And here's the SVG code:
My main challenge right now is figuring out how to separate the specific areas of the neighborhoods within the SVG file in order to apply CSS changes. When I view the SVG file, it all looks like a jumble of numbers without any distinction between different neighborhood areas. I need to be able to select them individually to work with CSS effectively.