如何为JVectorMap jquery插件生成新的自定义映射? [英] How to generate a new, custom map for the JVectorMap jquery plugin?

查看:114
本文介绍了如何为JVectorMap jquery插件生成新的自定义映射?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在此问题的有用链接部分,我添加了一个购物综合体示例的链接,可以在JVectorMap网站上找到。在此页面上,它解释了以下内容;使用此处提供的转换器从SVG创建的自定义地图示例(请参阅注释)。请注意,如果您使用从SVG生成的地图,您需要按像素坐标定位标记,而不是像从GIS生成地图的情况那样按纬度和经度定位。

In the 'Useful Links' section of this question, I have added a link to a shopping complex example which can be found on the JVectorMap website. On this page, it explains the following; Example of custom map created from SVG using converter available here(see note). Please note that if you use map generated from SVG you need to position markers by pixel coordinates, not by latitude and longitude as in case of map generated from GIS.

我需要为我当地的购物中心制作类似的地图,复杂的经理ave提供了一张数字地图。我需要知道如何采用建筑群的每日图像格式并将其转换为形状文件,然后如何使用转换器创建自己的自定义地图。

I need to make similar maps for my local shopping complexes, whom the complex manager(s) ave provided a digital map. I need to know how to take this every-day image format of a building complex and turn it into a shape file and then how to use the file with the converter to create my own custom map.

推荐答案

我希望你熟悉gimp或photoshop。我是一个懦弱的家伙,所以我这样做是因为我会从您的雇主那里获取数字地图,并在您想要包含的选定区域周围建立路径。转到路径选项,右键单击并将路径导出为SVG。获得svg文件后,转到 http://svgto.jvectormap.com/ 并复制/粘贴SVG将文件中的代码放入转换器中。这将有助于您构建地图。

I hope you are familiar with gimp or photoshop. I'm a gimp guy so the way I do it is I would take the digital map that you get from your employer and build paths around the selected regions you want included. Go to your paths option, right click and export path as SVG. Once you have the svg file go to http://svgto.jvectormap.com/ and copy/paste the SVG code inside your file into the converter. This will help you build a map.

请注意,您也可以将svg代码直接导入到html文件而不使用jvectormap。

Note you can also import the svg code directly into your html file without jvectormap.

这篇关于如何为JVectorMap jquery插件生成新的自定义映射?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆