Skip to content

Instantly share code, notes, and snippets.

View xemoka's full-sized avatar

Justin xemoka

  • Nelson, BC
View GitHub Profile
@xemoka
xemoka / infoClickHandler.js
Last active June 1, 2020 14:10
infoClickHandler
function infoClickHandler (event) {
console.log('Info Click Handler Fired:', event)
let currentInfos = [] // the array we'll fill with the data returned from arcgis Server
// get pixel click location
const pixel = mapElement.getEventPixel(event.originalEvent)
// generate list of layers
let layers = []