AnsweredAssumed Answered

goTo(location)

Question asked by kawish on Jul 18, 2019
Latest reply on Jul 21, 2019 by EPolle_TensingInternational

Hi

can any body help me to resolve this problem...???

I create to input fields for x,y and on click event map should go to location of input coordinates but its not working yet.

What i am missing in this code? please help......

let lon = document.getElementById("lon");
let lat = document.getElementById("lat");
let btnLocation = document.getElementById("btnlocation");
btnLocation.addEventListener('click', () => {
       view.goTo({
             target:[lon.value, lat.value]
         })
})

Outcomes