var cpoint = new plus.maps.Point(locations.longitude, locations.latitude);
companyMarker = new plus.maps.Marker(cpoint);
companyMarker.setIcon("../../images/companylocation.png");
mapObj.addOverlay(companyMarker);
console.log(locations.error);
var scope = locations.error;
var circleObj = new plus.maps.Circle(cpoint, scope);
circleObj.setStrokeColor("#1725e7");
circleObj.setLineWidth(1);
circleObj.setStrokeOpacity(0.5);
circleObj.setFillColor("#1725e7");
circleObj.setFillOpacity(0.2);
mapObj.addOverlay(circleObj);
mapObj.setCenter(point);
添加marker成功,添加Circle就闪退.
2 个回复
larry_cao
android,闪退,关注下
DCloud_Android_ST
新版看看还有问题吗