IsOpen = false foreach ( Layer layer in MyMap. The code sections in this topic assume that you have already read a web map into your application using. Using the PopupTemplatesProperty to get and display a dictionary of DataTemplates.To enable pop-ups on a layer with pop-ups turned off, turn on the Enable pop-ups toggle. On the Settings (light) toolbar, click Configure pop-ups, and turn off the Enable pop-ups toggle button. Using the PopupTemplateProperty to get and display a DataTemplate On the Contents (dark) toolbar, click Layers to open the Layers pane, and select the layer that contains the feature data you want to show in a pop-up.This topic includes the following sections: Windows Presentation Foundation (WPF) data templates specify how to show information and can be associated with any content control, such as a ContentPresenter or an InfoWindow. Both the PopupTemplateProperty and the PopupTemplatesProperty ultimately provide access to a data template to use to display the pop-up. Map services, on the other hand, are composed of one or more layers, each of which can have a pop-up definition. Map notes and feature layers each support a single pop-up definition, and their pop-ups are accessed through either MapTips or the. Each of those layers can have pop-ups configured the same way they can be configured for a feature layer.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |