标签:public ring get add content arc active view pup
public void ShowCustomPopup()
{
//Get the active map view.
var mapView = MapView.Active;
if (mapView == null)
return;
//Create custom popup content
var popups = new List<PopupContent>();
popups.Add(new PopupContent("<b>This text is bold.</b>", "Custom tooltip from HTML string"));
popups.Add(new PopupContent(new Uri("https://www.cnblogs.com/gisoracle/"), "Custom tooltip from Uri"));
mapView.ShowCustomPopup(popups);
}
protected override void OnClick()
{
ShowCustomPopup();
}
标签:public ring get add content arc active view pup
原文地址:https://www.cnblogs.com/gisoracle/p/12639849.html