naturenet / naturenet-www

NatureNet web portal
https://www.nature-net.org
3 stars 7 forks source link

Map goes black when an observation is clicked #17

Closed cameronjj closed 7 years ago

cameronjj commented 8 years ago

When I click on explore and then click on one of the images in the left bar, the map goes black. It only happens with the last three posts by Travis. I have to refresh the webpage or click on someone else's observation to get the map to come back.

screen shot 2016-08-21 at 12 13 33 pm

cameronjj commented 8 years ago

Also happens if I click on Travis' observations from the homepage.

cameronjj commented 8 years ago

Akash's also got the black map when I clicked on this observation:

screen shot 2016-08-21 at 12 34 31 pm

WildWeazel commented 8 years ago

This is the "coast of Africa" issue and is the app's fault, though maybe the website should have a special case for this since we don't cater to Ghanan sea vessels

Kazjon commented 8 years ago

It looks like this happens when an observation is in a place where Google Maps doesn't have high-res maps. We try to zoom in further than they have image assets to support, so we get the "Sorry, no Ghanan fishing traffic" message.

Kazjon commented 8 years ago

I believe fixing this could be done through fixing #12 (zooming less could stop this happening without us needing a special case)

WildWeazel commented 8 years ago

This would be helpful: it tells you the maximum zoom level of imagery at a given location https://developers.google.com/maps/documentation/javascript/maxzoom

WildWeazel commented 7 years ago

This particular case wasn't directly addressed, but due to cumulative changes in the apps you shouldn't see it anymore. If location data isn't available at all it defaults to the user's home site.