Select to view content in your preferred language

How to using PopupInfo ?

1425
1
06-05-2012 05:44 AM
mrphammrpham
Emerging Contributor
Hi all !

I want to using PopupInfo ? you can demo ?


thank all !

[ATTACH=CONFIG]14946[/ATTACH]
0 Kudos
1 Reply
AndyGup
Esri Regular Contributor
The Nearby sample contains an example of how to build a custom callout with rating stars: http://help.arcgis.com/en/arcgismobile/10.0/apis/android/help/0119/01190000002s000000.htm

In general, the pattern is to use getCallout() like this:

// display the result in map callout
String msg = "Address:"
  + result.getAddressFields().get("Address")
  + "\n" + "City:"
  + result.getAddressFields().get("City") + "\n"
  + " State:"
  + result.getAddressFields().get("State") + "\n"
  + " Zip:"
  + result.getAddressFields().get("Zip");
map.getCallout().show(locationPoint, message(msg));


-Andy
0 Kudos