mapdeck icon indicating copy to clipboard operation
mapdeck copied to clipboard

Polygon alignment and re-setting widgets when switching between panels

Open cabuelow opened this issue 4 years ago • 5 comments

Hi there,

I’ve been enjoying using mapdeck to develop an interactive web app for exploring some global data layers/analyses. I have a couple of questions to try and improve the app (GitHub here with code (https://github.com/cabuelow/ocean-coastal-units), and shiny here (https://cbuelow.shinyapps.io/blue-forests/):

  1. When the app is first opened and subsequently when map layers are updated, the polygons don’t automatically align with the coastline. Wondering if you’ve encountered this issue before, or perhaps I should seek advice from mapbox directly?

  2. Switching between map layers in different panels requires that the radio button be clicked twice. I think this is because of how I’ve opted to reset the widgets when switching between them on lines 214-710 of the app.R code. I’m sure there’s likely a more efficient and better way to code this, if you have any suggestions that would be great (and apologies in advance for amateur code).

  3. I saw on the other GitHub issues that ‘on-click’ pop-ups might be in development. I was wondering if this feature will be available in the near-ish future? No pressure of course, but I know app end-users would be keen on pop-ups, so great to know if it will be a possibility

Many thanks for all the help, Christina

cabuelow avatar Feb 06 '22 02:02 cabuelow

I can't see the github repo - is it private?

dcooley avatar Feb 06 '22 06:02 dcooley

Ah, sorry – public now. Thanks Dave!

From: Dave @.> Date: Sunday, 6 February 2022 at 4:06 pm To: SymbolixAU/mapdeck @.> Cc: Christina @.>, Author @.> Subject: Re: [SymbolixAU/mapdeck] Polygon alignment and re-setting widgets when switching between panels (Issue #353)

I can't see the github repo - is it private?

— Reply to this email directly, view it on GitHubhttps://github.com/SymbolixAU/mapdeck/issues/353#issuecomment-1030759160, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ANQDIKS2JDHQVFCCGSOE5WTUZYFXRANCNFSM5NUWNAJA. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you authored the thread.Message ID: @.***>

cabuelow avatar Feb 06 '22 06:02 cabuelow

have you made it private again?

dcooley avatar Feb 10 '22 03:02 dcooley

Sorry about that, it should be public again now – appreciate the help!

From: Dave @.> Date: Thursday, 10 February 2022 at 1:30 pm To: SymbolixAU/mapdeck @.> Cc: Christina @.>, Author @.> Subject: Re: [SymbolixAU/mapdeck] Polygon alignment and re-setting widgets when switching between panels (Issue #353)

have you made it private again?

— Reply to this email directly, view it on GitHubhttps://github.com/SymbolixAU/mapdeck/issues/353#issuecomment-1034456227, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ANQDIKTCSC35LE37PFHUUMLU2MWOPANCNFSM5NUWNAJA. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you authored the thread.Message ID: @.***>

cabuelow avatar Feb 10 '22 03:02 cabuelow

Do you have a small reproducible example that I can run to replicate your first issue?

dcooley avatar Feb 10 '22 03:02 dcooley