d3.js - Topojson missing outside boundaries -


when rendering topojson, i'm missing outside boundaries of states.

for example, view of south looks this:

enter image description here

instead, need outside boundaries filled.

my style map follows:

.state-boundary {         stroke: #00001d;         stroke-width: .5px;         fill: white;         stroke-linejoin: round;         stroke-linecap: round;       } 

the geojson looks follows prior conversion topojson: enter image description here

my d3 follows:

svg.append("path")         .datum(topojson.mesh(topology, topology.objects.south, function(a, b) { return !== b; }))         .attr("d", path)         .attr("class", "state-boundary"); 

so, matter of changing mesh method. don't understand difference, maybe can chime in:

svg.append("path")         .datum(topojson.mesh(topology, topology.objects.south))         .attr("d", path)         .attr("class", "state-boundary"); 

Comments

Popular posts from this blog

1111. appearing after print sequence - php -

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

Ruby on Rails, ActiveRecord, Postgres, UTF-8 and ASCII-8BIT encodings -