esri.views.2d.engine.webgl.mesh.templates.WGLTemplateStore]
Object { name: "mapview-invalid-resource", message: "Could not fetch requested resource at http://localhost:8080/Images/", details: undefined }
in my index.html i have these links
<link rel="stylesheet" href="https://js.arcgis.com/4.12/esri/css/main.css">
<script src="https://js.arcgis.com/4.12/"></script>
my code looks like this
loadModules([
'esri/Map',
'esri/views/MapView',
"esri/Graphic",
],options
)
.then(([
Map,
MapView,
Graphic
]) => {
const map = new Map({
basemap: "dark-gray-vector"
});
// Create the MapView
const view = new MapView({
container: "View",
map: map,
zoom: 2,
center: {
x: 38.9637,
y: 35.2433
}
});
var locURL='http://localhost:8080/Images/red-humanitarian.png';
var pictureGraphic = new Graphic({
geometry: {
type: "point",
longitude: Number(itemDisaster.geolocation.lon),
latitude: Number(itemDisaster.geolocation.lat)
},
symbol: {
type: "picture-marker",
url: locURL,
width: "24px",
height: "24px"
}
});
view.graphics.add(pictureGraphic);
view.on("double-click", function (event)
{
view.hitTest(event).then( function(response)
{
----some code
}); //view.on
}).catch(function(error){
console.log(Error details: ", error.details);
});