i am getting the below error,Thank you in advance
dojo.js:334 [esri.views.3d.state.ViewStateManager] #goTo() Failed to create camera from target, no layerview has been found for the layer
I have the same problem since upgrading API version (4.9 to 4.12).
This workaround is working for me (with API 4.12) :
1) Desactivate zoom on result
Foreach widget source set property "autoNavigate" to false
2) Zoom programatically on result
on(widget, "search-complete", function(event) {
if (event.results[0].results[0].feature.geometry.type === "point") {
view.goTo({
target : event.results[0].results[0].feature.geometry,
zoom : 15
});
} else {
view.goTo({event.results[0].results[0].extent});
}
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.