```init { val svgElement = document.create...
# kvision
j
Copy code
init {
        val svgElement = document.createElementNS("<http://www.w3.org/2000/svg>", "svg")
        svgElement.setAttribute("xmlns", "<http://www.w3.org/2000/svg>")
        svgElement.setAttribute("viewBox", "0 0 200 200")
        svgElement.innerHTML = "<rect width='200' height='200'/><rect x='75' y='23' width='50' height='50' style='fill:red'/><rect x='75' y='123' width='50' height='50' style='fill:#0013ff'/>"
        val svgElementBounds = LatLngBounds(
                LatLng(40.712216, -74.22655),
                LatLng(40.773941, -74.12544))
        val m = maps(40.75, -74.2, 13) {
            width = 100.pc
            height = 89.vh
        }
        m.svgOverlay(svgElement, svgElementBounds)
    }