Multipoint从3.14移到4.0上没调通,请教正确的使用方法

以下是在3.14下使用的代码片段,在4.0上改装后没有调通,请问正确的使用方法是什么?最好能给个代码片段。
var mp = new esri.geometry.Multipoint(new esri.SpatialReference({
wkid : 4326
}));
var myData = JSON.parse(data);
mp.points = myData.map(function(x) {
return x;
});
var symbol = new esri.symbols.SimpleMarkerSymbol({
"color" : [ 255, 255, 255, 255 ],
//"size" : map.getLevel()+3,
"size" : 4,
"type" : "esriSMS",
"style" : "esriSMSCircle",
"outline" : {
"color" : [ 60, 60, 255, 255 ],
"width" : 1,
"type" : "esriSLS",
"style" : "esriSLSSolid"
}
});
var gra = new esri.Graphic(mp);
gra.setSymbol(symbol);
layer_ship_simple.add(gra);
已邀请:

要回复问题请先登录注册