{"id":1322,"date":"2015-11-13T11:44:46","date_gmt":"2015-11-13T11:44:46","guid":{"rendered":"http:\/\/mindfusion.eu\/blog\/?p=1322"},"modified":"2015-11-13T14:24:06","modified_gmt":"2015-11-13T14:24:06","slug":"map-control-for-winforms-v2-0","status":"publish","type":"post","link":"https:\/\/mindfusion.dev\/blog\/map-control-for-winforms-v2-0\/","title":{"rendered":"Map Control for WinForms, V2.0"},"content":{"rendered":"<p>We have just released a new version of the Mapping component for WinForms. The release contains some exciting new features, details below:<\/p>\n<p><strong>Street maps <\/strong><\/p>\n<p>You can render street maps in OpenStreetMap format by adding a <a href=\"http:\/\/www.mindfusion.dev\/onlinehelp\/mapwin\/index.htm?T_MindFusion_Mapping_WinForms_StreetMapLayer.htm\">StreetMapLayer<\/a> instance to the <a href=\"http:\/\/www.mindfusion.dev\/onlinehelp\/mapwin\/index.htm?T_MindFusion_Mapping_WinForms_MapView.htm\">MapView<\/a>. In order to load a street map, create a new StreetMapLayer object and call its <a href=\"http:\/\/www.mindfusion.dev\/onlinehelp\/mapwin\/index.htm?T_MindFusion_Mapping_Map.htm\">Map<\/a>&#8216;s <a href=\"http:\/\/www.mindfusion.dev\/onlinehelp\/mapwin\/index.htm?M_MindFusion_Mapping_Map_LoadFromXml_1_String.htm\">LoadFromXml<\/a> method to load the corresponding *.osm file. The pens and brushes used for drawing the map are stored within the <a href=\"http:\/\/www.mindfusion.dev\/onlinehelp\/mapwin\/index.htm?P_MindFusion_Mapping_StreetMapFeatures_StreetMapPens_0.htm\">StreetMapPens<\/a> and <a href=\"http:\/\/www.mindfusion.dev\/onlinehelp\/mapwin\/index.htm?P_MindFusion_Mapping_StreetMapFeatures_StreetMapBrushes_0.htm\">StreetMapBrushes<\/a> collections in the static <a href=\"http:\/\/www.mindfusion.dev\/onlinehelp\/mapwin\/index.htm?T_MindFusion_Mapping_StreetMapFeatures.htm\"> StreetMapFeatures<\/a> class. You can define additional pens and brushes for drawing and painting certain map features by using the StreetMapLayer&#8217;s AddPen and AddBrush methods.  <\/p>\n<div id=\"attachment_1326\" style=\"width: 710px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/mindfusion.dev\/blog\/wp-content\/uploads\/2015\/11\/winforms_street_map.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-1326\" src=\"http:\/\/mindfusion.dev\/blog\/wp-content\/uploads\/2015\/11\/winforms_street_map.png\" alt=\"MindFusion Map Control for WinForms: Street maps\" width=\"700\" height=\"420\" class=\"size-full wp-image-1326\" srcset=\"https:\/\/mindfusion.dev\/blog\/wp-content\/uploads\/2015\/11\/winforms_street_map.png 700w, https:\/\/mindfusion.dev\/blog\/wp-content\/uploads\/2015\/11\/winforms_street_map-300x180.png 300w, https:\/\/mindfusion.dev\/blog\/wp-content\/uploads\/2015\/11\/winforms_street_map-500x300.png 500w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/a><p id=\"caption-attachment-1326\" class=\"wp-caption-text\">MindFusion Map Control for WinForms: Street maps<\/p><\/div>\n<p><strong>Zoom control <\/strong> <\/p>\n<p>The <a href=\"http:\/\/www.mindfusion.dev\/onlinehelp\/mapwin\/index.htm?T_MindFusion_Common_WinForms_ZoomControl.htm\">ZoomControl<\/a> class lets users change interactively the current zoom level and scroll position of a <a href=\"http:\/\/www.mindfusion.dev\/onlinehelp\/mapwin\/index.htm?T_MindFusion_Mapping_WinForms_MapView.htm\">MapView<\/a>. To set it up, add a  ZoomControl to the form, place it anywhere over a  MapView, and set the control&#8217;s <a href=\"http:\/\/www.mindfusion.dev\/onlinehelp\/mapwin\/index.htm?P_MindFusion_Common_WinForms_ZoomControl_Target_0.htm\">Target<\/a> property to that view. Set the <a href=\"http:\/\/www.mindfusion.dev\/onlinehelp\/mapwin\/index.htm?P_MindFusion_Common_WinForms_ZoomControl_ZoomStep_0.htm\">ZoomStep<\/a> and <a href=\"http:\/\/www.mindfusion.dev\/onlinehelp\/mapwin\/index.htm?P_MindFusion_Common_WinForms_ZoomControl_ScrollStep_0.htm\">ScrollStep<\/a> properties to specify the amount added to view&#8217;s zoom level or scroll position by ZoomControl&#8217;s buttons. You can customize the control&#8217;s appearance by setting properties such as <a href=\"http:\/\/www.mindfusion.dev\/onlinehelp\/mapwin\/index.htm?P_MindFusion_Common_WinForms_ZoomControl_Fill_0.htm\">Fill<\/a>, <a href=\"http:\/\/www.mindfusion.dev\/onlinehelp\/mapwin\/index.htm?P_MindFusion_Common_WinForms_ZoomControl_BorderColor_0.htm\">BorderColor<\/a>, <a href=\"http:\/\/www.mindfusion.dev\/onlinehelp\/mapwin\/index.htm?P_MindFusion_Common_WinForms_ZoomControl_CornerRadius_0.htm\">CornerRadius<\/a> and <a href=\"http:\/\/www.mindfusion.dev\/onlinehelp\/mapwin\/index.htm?P_MindFusion_Common_WinForms_ZoomControl_TickPosition_0.htm\">TickPosition<\/a>.  <\/p>\n<div id=\"attachment_1325\" style=\"width: 710px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/mindfusion.dev\/blog\/wp-content\/uploads\/2015\/11\/zoom_control_winforms_map.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-1325\" src=\"http:\/\/mindfusion.dev\/blog\/wp-content\/uploads\/2015\/11\/zoom_control_winforms_map.png\" alt=\"MindFusion Map Control for WinForms: Zoom\" width=\"700\" height=\"354\" class=\"size-full wp-image-1325\" srcset=\"https:\/\/mindfusion.dev\/blog\/wp-content\/uploads\/2015\/11\/zoom_control_winforms_map.png 700w, https:\/\/mindfusion.dev\/blog\/wp-content\/uploads\/2015\/11\/zoom_control_winforms_map-300x152.png 300w, https:\/\/mindfusion.dev\/blog\/wp-content\/uploads\/2015\/11\/zoom_control_winforms_map-500x253.png 500w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/a><p id=\"caption-attachment-1325\" class=\"wp-caption-text\">MindFusion Map Control for WinForms: Zoom<\/p><\/div>\n<p><strong>Multiple selection <\/strong><\/p>\n<p>Now it&#8217;s possible to select multiple decorations or map shapes by drawing a selection rectangle. To enable that, set the <a href=\"http:\/\/www.mindfusion.dev\/onlinehelp\/mapwin\/index.htm?P_MindFusion_Mapping_WinForms_MapView_Behavior_0.htm\">Behavior<\/a> property to <a href=\"http:\/\/www.mindfusion.dev\/onlinehelp\/mapwin\/index.htm?T_MindFusion_Mapping_WinForms_Behavior.htm\">Select<\/a>. Selected elements are stored in the <a href=\"http:\/\/www.mindfusion.dev\/onlinehelp\/mapwin\/index.htm?P_MindFusion_Mapping_MapLayerBase_Selection_0.htm\">Selection<\/a> collection of respective layer objects. <\/p>\n<p><strong>API changes <\/strong><\/p>\n<ul>\n<li>The type of <a href=\"http:\/\/www.mindfusion.dev\/onlinehelp\/mapwin\/index.htm?T_MindFusion_Mapping_MapElement.htm\">MapElement<\/a>&#8216;s <a href=\"http:\/\/www.mindfusion.dev\/onlinehelp\/mapwin\/index.htm?P_MindFusion_Mapping_MapElement_Label_0.htm\">Label<\/a> property has been changed from string to <a href=\"http:\/\/www.mindfusion.dev\/onlinehelp\/mapwin\/index.htm?T_MindFusion_Mapping_Label.htm\">Label<\/a> class.<\/li>\n<li>The <a href=\"http:\/\/www.mindfusion.dev\/onlinehelp\/mapwin\/index.htm?P_MindFusion_Mapping_Label_FontName_0.htm\">FontName<\/a> and <a href=\"http:\/\/www.mindfusion.dev\/onlinehelp\/mapwin\/index.htm?P_MindFusion_Mapping_Label_FontSize_0.htm\">FontSize<\/a> properties have been moved from    MapElement to  Label.<\/li>\n<li>Type of <a href=\"http:\/\/www.mindfusion.dev\/onlinehelp\/mapwin\/index.htm?P_MindFusion_Mapping_WinForms_MapView_Layers_0.htm\">Layers<\/a> property changed from  List  to  ObservableCollection.<\/li>\n<\/ul>\n<p><em>About MindFusion Mapping for WinForms:<\/em> Use this powerful WinForms control to provide your software with  maps of your choice that include any type of administrative, geographical and political data. The component offers a comprehensive data set of  mapping data, which is royalty-free and can easily be integrated into any MindFusion map. You can organize the map data in layers and combine several data files to deliver to the end user the exact map that is required. The advanced pan and zoom options offer a convenient way for the users to inspect in details even a large map. The control fully supports the OpenStreetMap format and lets you create precise and elegant street maps. The API is neatly organized and dutifully documented with plenty of sample code that guarantees you can easily build the map your application demands without compromises on speed and quality. <a href=\"http:\/\/mindfusion.dev\/winforms-map.html\">More on Mapping for WinForms here.<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>We have just released a new version of the Mapping component for WinForms. The release contains some exciting new features, details below: Street maps You can render street maps in OpenStreetMap format by adding a StreetMapLayer instance to the MapView. &hellip; <a href=\"https:\/\/mindfusion.dev\/blog\/map-control-for-winforms-v2-0\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[2],"tags":[315,352,353,354,259],"class_list":["post-1322","post","type-post","status-publish","format-standard","hentry","category-product-releases","tag-multiple-selection","tag-openstreetmap-format","tag-street-maps","tag-xml-load","tag-zoom-control"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p3RlKs-lk","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/mindfusion.dev\/blog\/wp-json\/wp\/v2\/posts\/1322","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mindfusion.dev\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mindfusion.dev\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mindfusion.dev\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mindfusion.dev\/blog\/wp-json\/wp\/v2\/comments?post=1322"}],"version-history":[{"count":6,"href":"https:\/\/mindfusion.dev\/blog\/wp-json\/wp\/v2\/posts\/1322\/revisions"}],"predecessor-version":[{"id":1331,"href":"https:\/\/mindfusion.dev\/blog\/wp-json\/wp\/v2\/posts\/1322\/revisions\/1331"}],"wp:attachment":[{"href":"https:\/\/mindfusion.dev\/blog\/wp-json\/wp\/v2\/media?parent=1322"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mindfusion.dev\/blog\/wp-json\/wp\/v2\/categories?post=1322"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mindfusion.dev\/blog\/wp-json\/wp\/v2\/tags?post=1322"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}