ThinkGeo Cloud Vector Maps Sample for Android
This sample demonstrates how you can draw the map with Vector Tiles requested from ThinkGeo Cloud Services in your Map Suite GIS applications, with any style you want from StyleJSON (Mapping Definition Grammar). It will show you how to use the XyzFileBitmapTileCache and XyzFileVectorTileCache to improve the performance of map rendering. It supports have 3 built-in default map styles and more awasome styles from StyleJSON file you passed in, by 'Custom':
ThinkGeo Cloud Vector Maps support would work in all of the Map Suite controls such as Wpf, Web, MVC, WebApi, Android and iOS.
Please refer to Wiki for the details.
This sample makes use of the following NuGet Packages
About the Code
this.androidMapView.MapUnit = GeographyUnit.Meter; this.androidMapView.ZoomLevelSet = ThinkGeoCloudVectorMapsOverlay.GetZoomLevelSet(); // Create background world map with vector tile requested from ThinkGeo Cloud Service. this.thinkGeoCloudVectorMapsOverlay = new ThinkGeoCloudVectorMapsOverlay(cloudServiceClientId, cloudServiceClientSecret); this.androidMapView.Overlays.Add(this.thinkGeoCloudVectorMapsOverlay); // Create the overlay for satellite and overlap with trasparent_background as hybrid map. this.satelliteOverlay = new ThinkGeoCloudMapsOverlay(cloudServiceClientId, cloudServiceClientSecret, ThinkGeoCloudMapsMapType.Aerial); this.satelliteOverlay.IsVisible = false; this.androidMapView.Overlays.Add(this.satelliteOverlay); this.androidMapView.CurrentExtent = new RectangleShape(-10775293.1819701, 3866499.57476108, -10774992.2111729, 3866281.90838096);
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.