Esri / nearby-javascript

ArcGIS API for JavaScript app to find places nearby and route to the nearest location.
Apache License 2.0
41 stars 24 forks source link

create new map and view every initialize #30

Closed gavinr closed 4 years ago

gavinr commented 4 years ago

Fixes (or workaround for?) #28.

It seems like after you switch from a map to the list and back to the map, if we just re-use the existing map with a new DOM node it's not working properly. This code creates a new Map and View each time. This may be overkilll but seems to fix the problem - @odoe what do you think?

odoe commented 4 years ago

That is weird, but I'm going to say that it's a good solution for now! Thanks @gavinr