User Tools

Site Tools


thinkgeo_cloud_.net_sdk_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
thinkgeo_cloud_.net_sdk_quick_start_guide [2018/12/29 10:20]
tgwikiupdate
thinkgeo_cloud_.net_sdk_quick_start_guide [2018/12/29 10:27] (current)
tgwikiupdate
Line 89: Line 89:
 {{mapsuite10:​wpf:​Map_Suite_Wpf_QSG_MapRender.png}} {{mapsuite10:​wpf:​Map_Suite_Wpf_QSG_MapRender.png}}
 //Figure 7. The normal map is rendered after the developer license file has been got.// //Figure 7. The normal map is rendered after the developer license file has been got.//
 +
 +Now you can see the ThinkGeo.Cloud.Client had been installed also. Copy the code as below and paste it into Map_Loaded function, it can works.
 +<code csharp>
 +            map.MapUnit = GeographyUnit.Meter;​
 +            map.ZoomLevelSet = ThinkGeoCloudMapsOverlay.GetZoomLevelSet();​
 +
 +            thinkGeoCloudMapsOverlay = new ThinkGeoCloudMapsOverlay();​
 +            //​thinkGeoCloudMapsOverlay = new ThinkGeoCloudMapsOverlay(clientId,​ clientSecret);​
 +
 +            // Tiles will be cached in the TEMP folder (%USERPROFILE%\AppData\Local\Temp\MapSuite\PersistentCaches) by default if the TileCache property is not set.
 +            //​thinkGeoCloudMapsOverlay.TileCache = new XyzFileBitmapTileCache("​ThinkGeoCloudMapsTileCache"​);​
 +            ​
 +            map.Overlays.Add(thinkGeoCloudMapsOverlay);​
 +
 +            map.CurrentExtent = new ThinkGeo.MapSuite.Shapes.RectangleShape(-13086298.60,​ 7339062.72, -8111177.75,​ 2853137.62);​
 +            map.Refresh();​
 +</​code>​
thinkgeo_cloud_.net_sdk_quick_start_guide.1546078816.txt.gz ยท Last modified: 2018/12/29 10:20 by tgwikiupdate