I'm trying to add a PictureMarkerSymbol
to a SceneView
, but I'm getting the following error upon reloading the page:
[esri.views.3d.layers.graphics.Graphics3DSymbolLayer] IconSymbol3DLayer failed to load (Request for icon resource failed:
Here is how I'm configuring the PictureMarkerSymbol
:
var source = {
geometry: {
type: "point",
longitude: 86.845,
latitude: 27.991,
z: 5194.164
},
symbol: {
type: "picture-marker",
url: "http://icons.iconarchive.com/icons/designbolts/free-multimedia/1024/Photo-icon.png",
width: 20,
height: 20
}
};
var flayer = new FeatureLayer({
source: [source],
fields: [],
objectIdField: "ObjectID",
geometryType: "point"
});
map.add(flayer);
Can you please help me understand what am I doing wrong?