阅读背景:

以更好的方式重新配置我的脚本

来源:互联网 

I created a mousemove function to show a custom popup when the viewer places their mouse cursor over a point I plotted on a map graphic. What I created works fine, but I was wondering could I have done it in a better way; possibly using a loop. The elements that show inside the popup comes from a JSON file. I created a mousemove event for each of the points plotted on the map. The way I wrote it seems like a lot of code and I think there may be a better way. Can someone offer me a better way of doing this concept? Thank you in advance.I created a mousemove function to show a custom




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: