简体   繁体   English

我应该使用哪个 javascript 库?

[英]Which javascript library should I use?

I'll try to present my problem clearly, but I'm bit of a novice in programming so try to bear with me.我会尽量清楚地提出我的问题,但我在编程方面有点新手,所以请耐心等待。

I'm currently working on a piece of map which I eventually need to get up and running on a website.我目前正在研究一块 map,我最终需要在网站上启动并运行它。 I'm working on the file in Adobe Illustrator and I have several layers to the map.我正在处理 Adobe Illustrator 中的文件,并且 map 有几个图层。 What I need is an intuitive, graphically pleasing, application where the user can pan and zoom in the map á la Google Maps.我需要的是一个直观、图形令人愉悦的应用程序,用户可以在其中平移和放大 map á la Google Maps。 Another key feature I need is the ability to hide/show layers and being able to click on some of the highlighted points on one of these layers to bring up additional information.我需要的另一个关键功能是能够隐藏/显示图层并能够单击其中一个图层上的一些突出显示的点以显示其他信息。 I've played around creating layer toggles straight in to an SVG but I really need them on a separate sidebar so they stay static when the user is eventually panning and zooming in to the map.我一直在尝试直接创建层切换到 SVG,但我真的需要将它们放在单独的侧边栏上,因此当用户最终平移和放大到 Z1D78DC8ED51214E518B5114FE2 时,它们会保持 static。

So far in to my research I've come to the conclusion that OpenLayers and Google Maps API are not for me as the map is relatively small and I don't need to tie it in to a larger map.到目前为止,在我的研究中,我得出的结论是 OpenLayers 和谷歌地图 API 不适合我,因为 map 相对较小,我不需要将它与更大的 Z1D78DC8ED51214E51AEZB5114 联系起来。 Instead I think it's best to treat it as a biggish floating vector image.相反,我认为最好将其视为一个大的浮动矢量图像。 I've also played around creating layer toggles straight in to an SVG but I really need them on a separate sidebar so they stay static when the user is eventually panning and zooming in to the map.我也玩过直接创建层切换到 SVG 但我真的需要它们在单独的侧边栏上,所以当用户最终平移和放大到 Z1D78DC8ED51214E518B5114FE I tried working with Raphaël and while I especially like the graphical side of it, I'm struggling to work my Illustrator file in to it and the zooming/panning script I found isn't really working for me either.我尝试与 Raphaël 合作,虽然我特别喜欢它的图形方面,但我正在努力将我的 Illustrator 文件放入其中,而且我发现的缩放/平移脚本也不适用于我。

So which way should I go?那么我应该采用哪种方式 go 呢? I apologize for my bad knowledge of things, but I'm quite lost here and would appreciate a nudge towards the right direction.我为我对事物的糟糕了解而道歉,但我在这里很迷茫,希望能朝着正确的方向轻推。

Thank you!谢谢! -Ilkka -伊尔卡

There is jVectorMap for embedding vector maps into HTML pages, it has map zooming and moving functionality.jVectorMap用于将矢量图嵌入 HTML 页面,它具有 map 缩放和移动功能。 I can help to convert your maps to the appropriate format (you need to extract svg pathes from source file).我可以帮助您将地图转换为适当的格式(您需要从源文件中提取 svg 路径)。

I think Dojo in conjunction with jQuery can give you nice results when working with HTML and SVG.我认为 Dojo 与 jQuery 一起使用 HTML 和 ZCD15A75C26008694647B31A3F0DEZ 时可以给你很好的结果。 Dojo is more kind of graphics JS library which works well with SVG and jQuery will allow you to work with HTML faster than most other JS frameworks Dojo 是一种更适合与 SVG 和 jQuery 一起使用的图形 JS 库

Raphael JS is a very good Javascript vector-handling library, you may find it useful. Raphael JS是一个非常好的 Javascript 矢量处理库,您可能会发现它很有用。 By the way, this question has a link to a tutorial on it.顺便说一句,这个问题有一个关于它的教程的链接。

You should try Raphael by all means, perhabs in conjunction with jquery.您应该尽一切努力尝试Raphael ,也许与 jquery 结合使用。 Using dojo sounds a bit like an overkill.使用 dojo 听起来有点矫枉过正。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 今天(2011年)应该使用哪个JavaScript hashchange / history库? - Which JavaScript hashchange/history library should I use today (2011)? 我应该使用哪个JavaScript库进行客户端连字? - Which JavaScript library should I use for client-side hyphenation? 我什么时候应该使用javascript框架库? - When should I use a javascript framework library? 我应该使用哪个json库将我的对象数组(javascript)传递给服务器(java),反之亦然? - Which json library should I use to pass my array of objects (javascript) to the server (java) and vice versa? Django和一个不错的javascript图表模板。 我应该使用哪个js库? - Django and a nice javascript chart template. Which js library should I use? 在什么情况下我应该在 javascript 中使用转译器? - In which situations should I use a transpiler in javascript? PHP或JavaScript我应该使用 - php or javascript which should I use 哪个JavaScript图表库应用于交互式图表 - which javascript chart library should use for interactive chart 我应该为 ReactJs 中的烛台图使用哪个图表模块/库? - Which chart module/library should I use for Candlestick graphs in ReactJs? 我应该为 JavaScript 链接使用哪个“href”值,“#”还是“javascript:void(0)”? - Which "href" value should I use for JavaScript links, "#" or "javascript:void(0)"?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM