Popup Overlay Sample for Wpf
In this Wpf project, we explore more capabilities of the PopupOverlay and its collection of Popups. With the Content property, we can add a TextBox or any other control to a Popup. For example, here we show how to have the column value of a selected feature appear in a Popup on the user MapClick event. Notice how that column value can be easily changed by typing in the TextBox of the Popup and committing the edit.
Please refer to Wiki for the details.
This sample makes use of the following NuGet Packages
About the Code
WorldStreetsAndImageryOverlay worldMapKitOverlay = new WorldStreetsAndImageryOverlay(); worldMapKitOverlay.Projection = WorldStreetsAndImageryProjection.DecimalDegrees; wpfMap1.Overlays.Add("WorldOverlay", worldMapKitOverlay); //Adds the PopupOverlay to the overlay collection of the wpf map. ThinkGeo.MapSuite.Wpf.PopupOverlay popupOverlay = new ThinkGeo.MapSuite.Wpf.PopupOverlay(); wpfMap1.Overlays.Add("PopupOverlay", popupOverlay);
This example makes use of the following APIs:
About Map Suite
Map Suite is a set of powerful development components and services for the .Net Framework.
ThinkGeo is a GIS (Geographic Information Systems) company founded in 2004 and located in Frisco, TX. Our clients are in more than 40 industries including agriculture, energy, transportation, government, engineering, software development, and defense.