arcgis for javascript往地图插20000以上个点很卡怎么处理??

<p>调用一下代码往map插2W以上个点会很卡,有没有办法解决啊?主要是点位都不固定的,根据查询条件目前查出最多的数就是2W多条,以后还会增加,而且点位数量不固定,不好配置成shp静态的查询。</p>

<p>&nbsp;</p>

<p>var pointGLyr = new esri.layers.GraphicsLayer({&quot;id&quot;:&quot;gLyr&quot;});&nbsp;<br />
map.addLayer(pointGLyr);&nbsp;</p>

<p><br />
var url = &quot;/project/images/map/point.png&quot;;<br />
var pt = new esri.geometry.Point(jingdu,weidu, new esri.SpatialReference({ wkid: 4326 }));<br />
var pms = new esri.symbol.PictureMarkerSymbol({<br />
&nbsp; &nbsp; &nbsp; &quot;angle&quot;: 0,<br />
&nbsp; &nbsp; &nbsp; &quot;xoffset&quot;: 0,<br />
&nbsp; &nbsp; &nbsp; &quot;yoffset&quot;: 0,<br />
&nbsp; &nbsp; &nbsp; &quot;type&quot;: &quot;esriPMS&quot;,<br />
&nbsp; &nbsp; &nbsp; &quot;url&quot;: url,<br />
&nbsp; &nbsp; &nbsp; &quot;contentType&quot;: &quot;image/png&quot;,<br />
&nbsp; &nbsp; &nbsp; &quot;width&quot;: 12,<br />
&nbsp; &nbsp; &nbsp; &quot;height&quot;: 12<br />
});&nbsp;<br />
var gImg = new esri.Graphic(pt,pms,item);&nbsp;<br />
pointGLyr.add(gImg);&nbsp;</p>
已邀请:
GraphicsLayer的上限就是5000左右,超过这个限制,最好对数据源做处理抽稀,或者先聚合,再展示,参考:
https://developers.arcgis.com/ ... .html

java2596098860 - 改不完的BUG

赞同来自:

var pointGLyr = new esri.layers.GraphicsLayer({"id":"gLyr"}); 
map.addLayer(pointGLyr);


var url = "/project/images/map/point.png";
var pt = new esri.geometry.Point(jingdu,weidu, new esri.SpatialReference({ wkid: 4326 }));
var pms = new esri.symbol.PictureMarkerSymbol({
"angle": 0,
"xoffset": 0,
"yoffset": 0,
"type": "esriPMS",
"url": url,
"contentType": "image/png",
"width": 12,
"height": 12
});
var gImg = new esri.Graphic(pt,pms,item);
pointGLyr.add(gImg);
代码被转码了,重新发一下。这个新的编辑器不好用,建议用kindeditor吧。

要回复问题请先登录注册