In the example Drag and drop to display data | ArcGIS API for JavaScript it says you can also upload images. How do you control the position of the image? Is it based on the mouse position when you drag it onto the map canvas? It seems like this would only work for one image.
Solved! Go to Solution.
Tracy,
wherever your mouse cursor is when you drop the image, that is where the image will be.
if (file.type.indexOf("image/") !== -1) { handleImage(file, event.layerX, event.layerY); } else if
Tim
Tracy,
wherever your mouse cursor is when you drop the image, that is where the image will be.
if (file.type.indexOf("image/") !== -1) { handleImage(file, event.layerX, event.layerY); } else if
Tim
I guess that makes sense technically, but to me its a rather nonsensical bit of functionality. I guess you could write additional code that lets people pick it up and move it until it was where they wanted it.
Yeah, I don't know why this has been added, other than to show it is possible?