I’m trying to create a world map with topojson and d3-geo using scalajs based on the following example: How-to-create-pure-react-SVG-maps-with-topojson-and-d3-geo My biggest issue so far is what I don’t understand how I can implement geoEqualEarth() and geoPath() functions from d3-geo using scala since both of them have a number of methods, for example const projection = geoEqualEarth().scale(160).translate([ 800 / 2, 450
Tag: scala.js
ScalaJS document.getElementById(“editor”).getAttribute(“value”) always returns null
I am trying to access the value of a textarea in scalajs like so: But it always returns null. Not sure why! I tried the same thing in plain vanilla javascript and that seems to work just fine! I am using scalajs version 1.3.1. Any help is appreciated. TIA. Answer Apparently we have to cast the results of document.getElementById to