Node.js 服务器端的超级集群

Node.js 服务器端的超级集群,node.js,leaflet,Node.js,Leaflet,在尝试使用可视化方法可视化200万个标记时,我发现以下错误: Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at file:///C:/Users/Ahmed/Desktop/supercluster-master/supercluster-master/test/fixtures/taxi2.geojson. (Reason: CORS request no

在尝试使用可视化方法可视化200万个标记时,我发现以下错误:

 Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at file:///C:/Users/Ahmed/Desktop/supercluster-master/supercluster-master/test/fixtures/taxi2.geojson. (Reason: CORS request not http). 
项目负责人告诉我这是一个XMLHttpRequest问题,要解决它,我需要使用静态服务器为我的页面提供服务

所以,因为我以前没有研究node.js,所以我搜索了node.js项目在服务器中的使用情况

我发现node.js项目需要包含server.js文件,该文件在中丢失

我想问的是,如何为这个项目提供服务

只需安装http服务器节点静态(说明),然后将您的超级集群项目放在fixtures上(节点静态/测试/fixtures)

在那次跑步之后:

node-static> http-server -p 8000
并将浏览器指向:

请参见我需要您的帮助来集成此服务器端超级群集。请帮助我在NodeJS中进行服务器端集群。如果您知道任何其他详细信息,请与meall分享我知道的解决方案中描述的内容,我将superCluster用于一个研究项目,而不是用于开发,您可以提出一个新问题,详细描述您的问题。ghybs可以帮助你