Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug/222 popup action update #223

Merged
merged 4 commits into from
Aug 18, 2023
Merged

Bug/222 popup action update #223

merged 4 commits into from
Aug 18, 2023

Conversation

TimPurdum
Copy link
Collaborator

Closes #222

  • Tested against the new sample on this branch and the samples that were shared on Discord
  • Added the id to the PopupTemplateSerializationRecord for protobuf
  • Added the same field to graphic.json so the JS side has it for deserialization
  • Implemented a lookup function in jsbuilder.ts and MapView.razor.cs that finds a missing dotnet object reference
  • Also added missing constructors for ActionButton and ActionToggle

}
}

if (layer is GraphicsLayer graphicsLayer)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could this be an else if?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It could. I was thinking it doesn't change the flow at all (I use this pattern when return is in each if), but in this case, you could find a FeatureLayer, not find the popup, and then have to ask again what it's layer type is, so you're right.

Copy link
Collaborator

@AndersenBell AndersenBell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good

@TimPurdum TimPurdum merged commit 89afabb into develop Aug 18, 2023
@TimPurdum TimPurdum deleted the bug/222_popup_action_update branch August 18, 2023 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PopupAction Investigation
2 participants