ArcGIS Online: Pop-up show up as mobile on desktop

8464
30
Jump to solution
06-17-2016 11:49 AM
DanPrice
New Contributor II

Hi all !

I have users getting mobile pop-ups when they click for information using web apps on their desktop internet browser.  Maps created in AGOL with web app builder. There seems to be no rhyme or reason for certain users

or type of web browsers, or which web app they are using.  The mobile pop ups seem to come up one day, and come up as regular pop ups the next.

Anyone experience this or know a cause?  Or, better yet, a solution?

Thanks & Happy GISing!

Dan

Tags (1)
30 Replies
JonathanHallam1
New Contributor III

Hi Robert, 

thanks for Replying, how do I change this in web app builder/AGOL?

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

You have to add &mobileBreakPoint=300 to your url.

JonathanHallam1
New Contributor III

So the web url link of my app add that above to end?

ArcGIS Web Application 

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Correct

0 Kudos
BrendanCunningham1
New Contributor III

Is there a way to force the standard/desktop popup in embedded JS API maps on mobile devices? The solution above seems to focus on the Web App Builder. Is there a way to force through the Desktop popup on all devices? As Ben mentions above, the mobile popup isn't visually appealing in certain situations.

Thanks a lot.

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Brendan,

   What exactly do you mean "embedded JS API maps"?

0 Kudos
BrendanCunningham1
New Contributor III

Hi Rob,

Sorry... a web map embedded on a web site that is not using the WAB.

So basically a web map from the sample code: Sample Code | ArcGIS API for JavaScript 4.12 

I am using a modified version of a sample map and the feature layer includes popups. By default, on mobile devices the pop up displays the heading but not the main body/details of the pop up. The user is required to tap the heading to expand the pop up to reveal the main details.

Hope that makes sense.

Brendan

0 Kudos
BrendanCunningham1
New Contributor III

I am hoping to have the main body/details of the popup revealed without the the need for the user to tap/expand.

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Brendan,

Then you need to add this to your code

          view.popup.watch('content', function(show){
            if(view.popup.collapsed){
              view.popup.collapsed = false;
            }
          });
BrendanCunningham1
New Contributor III

Thanks so much Rob... worked perfectly!

0 Kudos