Giter VIP home page Giter VIP logo

Comments (4)

mhdostal avatar mhdostal commented on July 25, 2024 1

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:

image

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.

mhdostal avatar mhdostal commented on July 25, 2024

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.

des12437 avatar des12437 commented on July 25, 2024

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

from arcgis-maps-sdk-swift-toolkit.

des12437 avatar des12437 commented on July 25, 2024

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:

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.