CMU-CREATE-Lab / data-visualization-tools

EarthTime, and various data visualization libraries
Other
14 stars 5 forks source link

Following newly created share link using mapbox layers shows black map #222

Closed rsargent closed 3 years ago

rsargent commented 3 years ago

Following https://jjkohler.earthtime.org/explore#waypoints=1heLmeuPp7j4itr0cK8H4chugOpp7cU8p_VEB9CFfPlY.0&csvlayers=1heLmeuPp7j4itr0cK8H4chugOpp7cU8p_VEB9CFfPlY.1677314377&v=37.83521,-84.747,4.192,latLng&t=2.38&ps=50&l=bdrkmb,well_distance&bt=19900101&et=20171231&startDwell=0&endDwell=0

we get image

rsargent commented 3 years ago

Maybe this requires a custom layers or custom waypoints spreadsheet link.

jjkohler commented 3 years ago

There seem to be two issues here - a more global issue impacting ALL share links generated with a custom layers sheet included in the link. Once this is fixed, there may also be an additional mapbox layer specific issue to iron out.

rsargent commented 3 years ago

@pdille would you be willing to take this on, at least for the generic share link breakage?

On Fri, Mar 26, 2021 at 8:51 AM jjkohler @.***> wrote:

There seem to be two issues here - a more global issue impacting ALL share links generated with a custom layers sheet included in the link. Once this is fixed, there may also be an additional mapbox layer specific issue to iron out.

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/CMU-CREATE-Lab/data-visualization-tools/issues/222#issuecomment-808190715, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACPJ4Z4PED7VH7CS44RKTTTFR7MVANCNFSM4ZZ2ZWXA .

pdille commented 3 years ago

Should be fixed in commit a2e994dd0f

rsargent commented 3 years ago

I'll test for mapbox. Paul says look at console messages.

pdille commented 3 years ago

Here is one of such mapbox console errors:

Uncaught TypeError: loadedLayersInIdOrder[i].layer.allVisibleTilesLoaded is not a function at EarthTimeImpl.showVisibleLayersLegends (index.ts:328) at TimeMachineCanvasLayer.update [as updateHandler] (index.ts:3264) at TimeMachineCanvasLayer.update (TimeMachineCanvasLayer.js:536) at TimeMachineCanvasLayer.js:161

There is then another error for maxGmapsZoomLevel

Both of these are in Layer.ts but not part of mapbox "layers"

rsargent commented 3 years ago

Mapbox share link seems to be working after recent fixes that fixed the console messages.