//test
let _this = this;
esriLoader.dojoRequire(
[
"esri/Graphic",
"esri/symbols/SimpleMarkerSymbol",
"esri/geometry/Point","esri/geometry/SpatialReference",
"esri/symbols/PictureMarkerSymbol"
],
(Graphic, SimpleMarkerSymbol ,Point,SpatialReference,PictureMarkerSymbol) => {
//test
var pointtSymbol =new SimpleMarkerSymbol({
size: 218,
color: [244, 67, 54],//48, 169, 38
outline: {
width: 184,
color: [17, 230, 112,0.7]
}
});
var pictureMarkerSymbol = new PictureMarkerSymbol('https://gw.alicdn.com/tps/TB1W_X6OXXXXXcZXVXXXXXXXXXX-400-400.png', 51, 51);
var pnt = new Point()
pnt.latitude = 27.186901
pnt.longitude = 105.666646
var point = new Point(105.666646, 27.186901, new SpatialReference({wkid:4326}));
const gp = new Graphic({
geometry: point,
symbol: pictureMarkerSymbol
});
_this.mapView.graphics.add(gp)
});//esriLoader.dojoRequire(