AnsweredAssumed Answered

PopupMobile

Question asked by geonetadmin on Nov 7, 2013
Original User: DAshton

I have the PopupMobile functioning but I want to make two simple changes.

I want to display two attributes in my title

[ATTACH=CONFIG]28938[/ATTACH]

This is how I have it:

  var template = new esri.InfoTemplate("","${Population} );

The double quotes is taking the first field in my table "DISTRICT". 

I also want to include the population field on the next line so if I do this:

var template = new esri.InfoTemplate("${DISTRICT} <br/> Population: ${POPULATION}");

[ATTACH=CONFIG]28939[/ATTACH]

It works but it pushes the second line over the ("tab arrow key" - to see next feature), how can I make room for everything?


My next question is when I click on button to open all the attributes for the pop up my "Locate button" and my BaseMapToggle button are on the popup div.  How can I turn them off or send the popup to a div where they are not?

[ATTACH=CONFIG]28940[/ATTACH]

Thanks
- D



UPDATE:

I figured out my first problem, don't think this is the best way but I ended up using the code

var template = new esri.InfoTemplate("${DISTRICT} <br/> Population: ${POPULATION}");

and then I overwrite some CSS  -- line-height is what is helping:

.esriPopupMobile .titlePane .title {
    font-size: 8pt;
    font-weight: bold;
    line-height: 11px;
    }

[ATTACH=CONFIG]28941[/ATTACH]



Still Need help with the second issue.

Thanks
- D

Attachments

Outcomes