Is there a way to get a Map shown inside a WPF UserControl?

Hi,

I’m trying to insert the build in Mapview into a WPF user control similar to using ImageViewerWpfControl. Is this possible?

Additionally, how do I obtain map items similar to the one shown in the following image?

You can put an existing map into a view. You can see this for yourself if you explore the Smart Client View and Windows Tool plugin sample, the Edit tab.

https://doc.developer.milestonesys.com/mipsdk/index.html?base=samples%2FPluginSamples%2FSCViewAndWindow%2FREADME.html&tree=tree_1.html

The setup of maps, like what you show in the image, is not open to integration, there are unfortunately no methods in the MIP SDK for this.

Hi @Bo Ellegård Andersen (Milestone Systems)​ ,

Just to clarify something regarding the integration of maps within your application. When you mention that “You can put an existing map into a view,” does this imply that the map must be inserted into a ViewAndLayoutItem component within the WorkSpacePlugin, rather than placing it directly inside a WPF UserControl?

Additionally, is it possible to create a ViewAndLayoutItem within a UserControl and then embed the map into that? I’m trying to understand the best approach to implement maps into a WPF UserControl.

Thank you!

What the sample does (Edit tab), is that it edits an existing view and inserts a Map in one of the positions.

It is also possible to build a new view, so depending on your preference you can do this instead.

Hi @Bo Ellegård Andersen (Milestone Systems)​,

Thank you for your feedback. This confirms that I should use the ViewAndLayoutItem component within the WorkSpacePlugin and update a view I declared here.