d3.js标记聚类

时间:2015-12-29 21:18:05

标签: javascript d3.js svg leaflet

我正在使用类似于此的正交变焦和可旋转地球:https://www.jasondavies.com/maps/rotate/。我需要计划大约20,000点。有没有办法聚类标记类似于使用Leaflet的方式?

我当前的地球仪使用SVG,其中每个点都是"路径"元素与" d"值。

宣传单示例:https://www.mapbox.com/mapbox.js/example/v1.0.0/leaflet-markercluster/



player = AVAudioPlayerNode()

    let file = try! AVAudioFile(forReading: url)
    let buffer = AVAudioPCMBuffer(PCMFormat: file.processingFormat, frameCapacity: AVAudioFrameCount(file.length))

    do {
        print("read")
        try file.readIntoBuffer(buffer)
    } catch _ {
    }

engine.attachNode(player)
engine.connect(player, to: engine.mainMixerNode, format: nil)

self.player.scheduleBuffer(buffer, completionHandler: {
    print("Complete")
})

        engine.prepare()
    do {
        try engine.start()
    } catch _ {
        print("Play session Error")
    }

    player.play()




0 个答案:

没有答案