简体   繁体   English

客户互动矢量地图

[英]Customer interactive vector map

I'm sure this isn't going to be straight forward, however..I have a custom vector map of the UK and it's an animated map. 我确定这不会很简单。..我有英国的自定义矢量地图,并且是动画地图。 It shows different locations all over the country and I need to be able to allow the user to click on a certain location on the map. 它显示了全国各地的不同位置,我需要能够允许用户点击地图上的某个位置。 So the user will get a pop up about the location they've selected. 因此,用户将弹出有关所选位置的弹出窗口。 Something like this - http://jqvmap.com/ However like i said the map has charactertures on it. 这样的东西-http: //jqvmap.com/但是像我说的地图上有特征。

I'm wondering how simple it would be to change the co-ordinates in the Javascript to locate the positions on the map. 我想知道更改Javascript中的坐标以在地图上定位的位置有多么简单。 Is there a tool I can get so it tells you your current co-ords on hover to help? 有没有我可以得到的工具,它可以告诉您当前的悬停坐标以提供帮助?

Any suggestions would be much appreciated! 我们欢迎所有的建议! It needs to work on all major browsers including IE 8/9 (7 if possible). 它需要在所有主要浏览器(包括IE 8/9(如果可能,为7))上运行。

Thanks, 谢谢,

Josh 玩笑

I've found something that seems to have done the trick - http://www.outsharked.com/imagemapster/default.aspx?demos.html#frog 我发现某些东西似乎可以解决问题-http: //www.outsharked.com/imagemapster/default.aspx? demos.html# frog

I've implemeted the code onto my page and it's worked. 我已经将代码实现到页面上,并且可以正常工作。 I've managed to get the co-ordinates from the web developer tool bar. 我设法从Web开发人员工具栏中获取坐标。

However, I'd like to implement a zoom in feature, where you can zoom and move around the image as if you were using google maps. 但是,我想实现一个放大功能,您可以在其中缩放和移动图像,就像使用Google地图一样。 So you can scroll with the house. 这样您就可以滚动房子。 My worry is will that lose the co-ordinates on the image? 我担心会丢失图像上的坐标吗? As I still want users to be able to click on the locations on the map. 我仍然希望用户能够单击地图上的位置。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM