The info panel in the Indoors Viewer and Mobile apps should support all standard popup capabilities and be fully configurable thru ArcGIS Pro. This includes:
@GauravJobanputra That does makes sense for mmpk but for the online viewers, the attachemnt data is already in AGOL and is usable in other web applications, so I guess I don't see why it would not be an option there if data bloat is the reason. We do have a point layer in both our mmpk and online viewers that have some photos. We planned to attach photos to our units layer for some more notable rooms, but have decided not to since it does not function as we thought it would.@Jade_Freeman Thanks for the suggestion, I will definitely try that out. We are most interested in having it in the web app anyway, as that is where most of our indoors maps are currently being used anyway.
Edit: I tried your arcade expression and it works wonderfully in the web app, thank you so much! I thought I was going to have to fill in a field with all the links manually, I didn't even think about using an expression to do it on the fly for me. 😔 I did try it in both mobile apps but it did not work there.
@GauravJobanputra Definitely would not want to bundle our feature classes with attachments in the mmpk. However, most of these layers are frequently updated and so we include them via a feature service, which would not bloat the size of the mmpk.
@MollyE @hoddinottc I haven't tested this yet in the Indoors mobile apps (new or classic) but I have been able to get this to work in the Indoors web application:Add an arcade block to your popup content with the following Arcade expression:
// return if feature has no attachments if (Count(Attachments($feature)) == 0) { return null } // set up text content var textContent = '<div style="margin-left: auto; margin-right: auto; width: fit-content;">' // create an image for each attachment for (var idx in Attachments($feature)) { var attachmentUrl = `https://services.gis.msu.edu/agscor01/rest/services/CampusInfo/Life_Safety_Equipment/FeatureServer/10/${$feature.OBJECTID}/attachments/${Attachments($feature)[idx]['id']}` textContent += `<img style="margin-left: auto; margin-right: auto; width: 100%; padding: .5em;" src="${attachmentUrl}" />` } // finish text content textContent += '</div>' // return text content object return { type : 'text', text : textContent }
Hi @MollyE, if you create a mobile map package with layers that have photo attachments, they will all be included in the package and the overall size of the mmpk could be several GBs. Sourcing the images through URLs ensures that the mmpk size is not bloated. Do you plan to include layers in your mobile map that have image attachments but sourced to an online source (reference online content check box enabled)?
@Jade_Freeman and @hoddinottc pls provide some examples mentioned in the comments above so we can look into this.
I agree, the pop ups leave a lot to be desired as they are currently are. We have photos attached to multiple layers we use in our many Indoors Viewers but they are useless as of now. We have considered the work around of hosting the images on a site and using putting those URLs in an image field, but since we collected the hundreds of photos as attachments with Field Maps, it would be enough extra work to host the images and fill in all the fields with the subsequent URLs that it is not an option for us right now. It would also be ideal that we could quickly update photos with the Field Map apps by replacing the attachments, or being able to show changes over time with multiple attachments. Hopefully this will be available in an update soon.
@Jade_Freeman and @hoddinottc usually the Maps SDK (JavaScript for Viewer and Switft/Kotlin for Mobile) catch-up to the popup configuration capabilities in ArcGIS Pro within a couple of releases.
For example, images configured in popups (through URL) are now supported. Can you post an example of a configuration in Pro that is critical to your needs and is not supported so we can work with the respective Maps SDK team?
The fact that this still isn't possible really limits the usefulness of Indoors for me.
Melden Sie sich an, um zu posten, Inhalte zu folgen und mehr. Neu hier? Kostenlos registrieren.