User Tools

Site Tools


map_suite_desktop_edition_quick_start_guide

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
map_suite_desktop_edition_quick_start_guide [2015/09/06 09:53]
admin
map_suite_desktop_edition_quick_start_guide [2017/03/17 02:25] (current)
tgwikiupdate
Line 1: Line 1:
 ====== Map Suite Desktop Edition Quick Start Guide ====== ====== Map Suite Desktop Edition Quick Start Guide ======
 +
 +{{section>​upgrade_map_suite_to_10.0}}
  
 <div msgbox> <div msgbox>
Line 15: Line 17:
  
 ===== Download the Sample ===== ===== Download the Sample =====
-<faicon fa fa-download>​ {{:File:HelloWorld Desktop WinForms.zip|Download Sample Code From This Exercise}} //(1.5 MB)//+<faicon fa fa-download ​ fa-lg {{filehistory:HelloWorld Desktop WinForms.zip|Download Sample Code From This Exercise}} //(1.5 MB)//
  
 ===== Setting up the Environment ===== ===== Setting up the Environment =====
Line 34: Line 36:
 {{desktopedition:​QSG DesktopEdition Img02.jpg}} {{desktopedition:​QSG DesktopEdition Img02.jpg}}
  
-**2.** A dialogue box to Choose Toolbox Items will appear. You will need to select the .NET Framework Components tab and then click the Browse button. Finally navigate to the <kbd>C:\Program Files (x86)\ThinkGeo\Map Suite 9.0\Map Suite Desktop\Current Version\Managed Assemblies</kbd> ​folder and select the "​DesktopEdition.dll"​ file.+**2.** A dialogue box to Choose Toolbox Items will appear. You will need to select the .NET Framework Components tab and then click the Browse button. Finally navigate to the //C:\Program Files (x86)\ThinkGeo\Map Suite 9.0\Map Suite Desktop\Current Version\Managed Assemblies/folder and select the "​DesktopEdition.dll"​ file.
  
-{{desktopedition:​QSG DesktopEdition ​Img0003.png}}+{{desktopedition:​QSG DesktopEdition ​Img03.png}}
  
 **3.** You should now have the Map Control available in your Toolbox as shown in Figure 2 below. **3.** You should now have the Map Control available in your Toolbox as shown in Figure 2 below.
Line 49: Line 51:
 {{desktopedition:​QSG DesktopEdition Img0005.jpg}} {{desktopedition:​QSG DesktopEdition Img0005.jpg}}
  
-Draw the Map control on the form by clicking on the Map Control object in the Toolbox and then dragging and dropping (using the left mouse button) to the size you desire. You can leave the name of the Map control to <​code>​winformsMap1</​code>​. Our map will display in it.+Draw the Map control on the form by clicking on the Map Control object in the Toolbox and then dragging and dropping (using the left mouse button) to the size you desire. You can leave the name of the Map control to ''​winformsMap1''​. Our map will display in it.
  
-{{desktopedition:​QSG DesktopEdition ​Img0006.jpg}}+{{desktopedition:​QSG DesktopEdition ​Img06.jpg}}
  
 Now that we have our "​MapSuiteCore.dll"​ referenced and a Map Control added, we are ready for adding the code. Now that we have our "​MapSuiteCore.dll"​ referenced and a Map Control added, we are ready for adding the code.
Line 102: Line 104:
 Now let's look at a code sample to bring this concept to fruition. We'll look at Shapefiles relating to the entire world. In our example, we have one such Shapefile: Now let's look at a code sample to bring this concept to fruition. We'll look at Shapefiles relating to the entire world. In our example, we have one such Shapefile:
  
-*The borders of every country in the world ("​Countries02.shp"​)+  ​* The borders of every country in the world ("​Countries02.shp"​)
  
 (**NOTE:** The data used in this sample can be found in the attached sample above at "​\AppData"​ folder) (**NOTE:** The data used in this sample can be found in the attached sample above at "​\AppData"​ folder)
  
-Our next step is to define and add our Layers. Here is the code to use for our example. All of the following code can be placed in the <​code>​Form1_Load</​code> ​event of the form.+Our next step is to define and add our Layers. Here is the code to use for our example. All of the following code can be placed in the ''​Form1_Load'' ​event of the form.
  
 <code csharp> <code csharp>
Line 195: Line 197:
 TextStyle are used to label items on map. As every Shapefile has a relative .dbf file, which includes descriptions for every record, the most common way to use TextStyles is for labeling. For example, WorldCapital Shapefile'​s corresponding .dbf file contains the field "​CITY_NAME"​. We can use this field to label the cities on our map. TextStyle are used to label items on map. As every Shapefile has a relative .dbf file, which includes descriptions for every record, the most common way to use TextStyles is for labeling. For example, WorldCapital Shapefile'​s corresponding .dbf file contains the field "​CITY_NAME"​. We can use this field to label the cities on our map.
  
-{{desktopedition:​|QSG DesktopEdition Img10.jpg}}+{{desktopedition:​QSG DesktopEdition Img10.jpg}}
  
 Map Suite has many TextStyles built in, which will help us quickly design attractive labels for the cities on our map. We can just pick the TextStyle we like and use it. Map Suite has many TextStyles built in, which will help us quickly design attractive labels for the cities on our map. We can just pick the TextStyle we like and use it.
Line 293: Line 295:
 //Figure 7. Europe Map with two ZoomLevels, before Zoom In.// //Figure 7. Europe Map with two ZoomLevels, before Zoom In.//
  
-{{desktopedition:​|QSG DesktopEdition Img13.jpg}}+{{desktopedition:​QSG DesktopEdition Img13.jpg}}
 \\ \\
 //Figure 8. Europe Map with two ZoomLevels, after Zoom In.// //Figure 8. Europe Map with two ZoomLevels, after Zoom In.//
Line 309: Line 311:
   -A Layer can have one-to-many ZoomLevels. ZoomLevels help to define ranges (upper and lower) of when a Layer should be shown or hidden.   -A Layer can have one-to-many ZoomLevels. ZoomLevels help to define ranges (upper and lower) of when a Layer should be shown or hidden.
  
-<faicon fa fa-download> ​[[:File:HelloWorld Desktop_WinForms.zip|Download Sample Code From This Exercise]] //(1.5 MB)// +<faicon fa fa-download ​ fa-lg ​{{filehistory:HelloWorld Desktop_WinForms.zip|Download Sample Code From This Exercise}} //(1.5 MB)//
  
  
map_suite_desktop_edition_quick_start_guide.1441533212.txt.gz · Last modified: 2015/09/06 09:53 by admin