Comments (4)
Ok, got it. Since the fenceNotificationInfo.fenceGeoElement
is actually an ArcGISFeature
you can get the PopupDefinition
from the feature's table and pass that in to the Popup
initializer. You then get this:
Here's the code:
let popupDefinition = (fenceNotificationInfo.fenceGeoElement as? ArcGISFeature)?.table?.popupDefinition
popup = Popup(geoElement: fenceNotificationInfo.fenceGeoElement, definition: popupDefinition)
from arcgis-maps-sdk-swift-toolkit.
So that is expected. The Popup in the Examples app is using a PopupDefinition
for the feature's layer which was stored in the web map. The popup definition defines the "elements" in the popup, such as the text description, media (images), and media (charts).
Without a popup definition you simply get a list of all the fields, which is what you're seeing.
Was there a reference implementation of this demo that provided a nicer-looking popup?
from arcgis-maps-sdk-swift-toolkit.
Was there a reference implementation of this demo that provided a nicer-looking popup?
Yes, here is a reference image. It looks similar to a webpage, although this feature is derived from an offline map.
![Screenshot 2023-12-14 at 4 19 47 PM](https://private-user-images.githubusercontent.com/117859673/290689844-4b079868-97d2-4bd0-9a4f-747d95799ca4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MDkyMTQ4NzksIm5iZiI6MTcwOTIxNDU3OSwicGF0aCI6Ii8xMTc4NTk2NzMvMjkwNjg5ODQ0LTRiMDc5ODY4LTk3ZDItNGJkMC05YTRmLTc0N2Q5NTc5OWNhNC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwMjI5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDIyOVQxMzQ5MzlaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT02OGQ5MWFiMjJhNmNlNGY5MTQ5NTU4NDBjMTg4NjQ5Y2U4OThiMmMyY2Y5ZmZhNGUwOGMyZDcxYjliYjc4NzFiJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.OgrF8akKIybrx76C6auhySm1vdYN_ol5utuxeD4l0Vc)
from arcgis-maps-sdk-swift-toolkit.
Ok, got it. Since the
fenceNotificationInfo.fenceGeoElement
is actually anArcGISFeature
you can get thePopupDefinition
from the feature's table and pass that in to thePopup
initializer. You then get this:
Thank you for the explanation. Since the behavior is expected when using Popup(geoElement:)
and Popup(geoElement: definition:)
I will close out this issue.
from arcgis-maps-sdk-swift-toolkit.
Related Issues (20)
- Consider providing localized `Strings` as `Text`
- Synchronize Bundle IDs HOT 3
- AsyncImageView improvements
- Prepare for `NavigationView` deprecation
- Scalebar text is not localized HOT 1
- `FloorFilter` - Various revisions
- `FloatingPanel` - Conditionally respect device bottom safe area HOT 4
- Bookmarks menu does not show on Mac Catalyst
- Add spacing for Floating Panel on Mac Catalyst HOT 3
- Fix `BasemapGalleryItemTests.testInit()` failure HOT 1
- Bookmarks list row label is only selectable
- Localized string constants are stored when they should be computed HOT 1
- Fix `DisclosureGroup` trailing padding on iOS HOT 1
- Change layout of `UtilityNetworkTrace.cancelAddStartingPoints` button
- `Bookmarks` - Support automatic refresh
- `200.4` Changes/Additions HOT 1
- Don't display error message in AsyncImageView HOT 1
- `FloatingPanel` - Content without container is troublesome
- Adopt relevant Code security and analysis options
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arcgis-maps-sdk-swift-toolkit.