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

Map doesn't load on first app load #6

Closed codergrl closed 5 years ago

codergrl commented 5 years ago

I loaded the app and got a list of nearby places (see issue #5 for screenshot). Then I clicked on the Map button and a globe flashed for a split second but then the page just went blank. I refreshed it after about 10 minutes of waiting and then it loaded. Cleared cache and retried, same behavior, the map didn't load until I refreshed it

Device: Microsoft Surface 3 OS: Windows 10 version 1803 build 17134 Browser: Chrome v. 71.0.3578.98

codergrl commented 5 years ago

Tested the behavior with Microsoft Edge also, and the map doesn't load, no matter now many times I hit the Refresh button

Microsoft Edge 42.17134.1.0 Microsoft EdgeHTML 17.17134

odoe commented 5 years ago

This could be because a service issue. I can't repro. Sometimes the geocode service is taking a beating and will 502 on me. I'll check a couple of other machines.

codergrl commented 5 years ago

I am unable to replicate this today, but I am working from home on my personal machine and I'm not on the vpn. Maybe it has something to do with our network? I think this warrants further investigation.

codergrl commented 5 years ago

Since the app seems to take a while to load the first time, perhaps add a spinner or a message to let the user know that the app is loading and to be patient. And if a 502 is returned, let user know to reload the page?

mikewilburn commented 5 years ago

@esreli @codergrl are either of you able to reproduce this? I cannot anymore.

esreli commented 5 years ago

I am also unable to reproduce, used Chrome and Safari.

codergrl commented 5 years ago

On my Windows machine, using Chrome, the very first time the map loads after about 20 seconds. I feel that's a long time, but I'm guessing it's because of our basemaps and not the app?

mikewilburn commented 5 years ago

Closing. No longer an issue with the app itself.