哪些 Web 技术可用于在 Polymer 中显示矢量图?

Which web technologies are available for displaying vector map in Polymer?

我正在做我的第一个网络项目,所以这里是新手。我使用 Polymer 1.0,我想显示一个 imaginary 地图。

这张地图是用 Illustrator 设计的,因此我可以在 .pdf.svg 中导出地图。

哪些工具可以让我使用此地图并在其中导航、添加一些标记等...使用 Polymer

我目前正在尝试使 LeafletJVectorMap 正常工作,但我缺乏网络技术方面的经验,我什至都不会知道这些工具是否允许我执行上面解释的操作。到目前为止我找到的所有示例都是真实世界的地图。

我找到的将数据绑定到 SVG 并使其具有交互性的最佳工具是 d3.js. Here's a simple example that builds the SVG from JSON data, but you could skip that step and use an existing SVG. Once you're comfortable with that, have a look at the examples gallery 查看您可以使用 d3.js 与地图交互的其他方式。