Commit 1be09d2c authored by numeroteca's avatar numeroteca

center map in div. add badge class to hover tooltip

parent 1f1432bf
......@@ -119,7 +119,7 @@ function makeMyMap(error, municipios, provincias, alisaldata) {
// Función para motrar el tooltip en hover
function showTooltip(d) {
tooltip.html("<div class='bg-white'><strong>" + d.properties.NOMBRE_TOP + " tiene "+ d.properties.inis_count +
tooltip.html("<div class='badge bg-white'><strong>" + d.properties.NOMBRE_TOP + " tiene "+ d.properties.inis_count +
(d.properties.inis_count > 0 ? (d.properties.inis_count > 1 ? " iniciativas" : " iniciativa" ) : " iniciativas") + "</strong>").style("opacity", 1)
tooltip.style("left", (d3.event.pageX - 20) + "px")
tooltip.style("top", (d3.event.pageY + 30) + "px")
......
......@@ -100,7 +100,7 @@
<main class="site-main col" id="main">
<div class="sectioncontent row mt-3 bg-white">
<div class="offset-md-2 col-md-5">
<div class="" id="vis"></div>
<div style="text-align: center;" id="vis"></div>
</div>
<div class="col-md-3">
<div id="side">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment