ThinkGeo Cloud
ThinkGeo UI Controls
ThinkGeo Open Source
Help and Support
External Resources
ThinkGeo Cloud
ThinkGeo UI Controls
ThinkGeo Open Source
Help and Support
External Resources
This is an old revision of the document!
ThinkGeo Cloud Raster Tile serves raster map tiles through XYZ. Check out ThinkGeo Cloud Raster Map Online Sample for a quick look.
* Try it Online: All the ThinkGeo Cloud RESTful APIs can be tested online following the instructions below:
ThinkGeo Cloud provides a RESTful API to consume the map tiles:
Get one Raster Tile based on given parameters.
HTTP GET https://cloud.thinkgeo.com/api/v1/maps/raster/{style}/x{resolution}/{srid}/{tileSize}/{tileZ}/{tileX}/{tileY}.{fileExtension}?apikey={key}
URL Parameters
Map Suite Raster Tile Data is composed of street tiles and aerial images tiles.
The data of streets tiles (light / dark / transparent-background ) mainly come from Open Street Map, and partially from Natural Earth. The tiles cover the entire world. The tiles are scheduled to be updated on a monthly basis.
Our World Map data can be purchased separately. It can be consumed offline by Map Suite SDKs. Check out Maps Streets Offline Data and Maps Imagery Offline Data for detail.
Multiple ways are provided to consume the server from different platforms.
OpenLayers and Leaflet have built-in classes consuming the tiles through XYZ. Here is the code snippet in OpenLayers.
var lightLayer = new ol.layer.Tile({ source: new ol.source.XYZ({ urls: [ "https://cloud.thinkgeo.com/api/v1/maps/raster/light/x1/3857/512/{z}/{x}/{y}.png?apikey=yourkey", ], tileSize: 512 }), name: "lightLayerKey" });
The sample code in LeafLet:
var lightLayer = L.tileLayer("https://cloud.thinkgeo.com/api/v1/maps/raster/light/x1/3857/512/{z}/{x}/{y}.png?apikey=yourkey");
Here is an Online Sample consuming the map tiles using OpenLayers.
All of the MapSuite UI Controls have built-in a straightforward way for consuming the raster tiles.
Sample Code:
// Setup the overlay ThinkGeoCloudMapsOverlay thinkGeoMapsOverlay= new ThinkGeoCloudMapsOverlay("clientId", "clientSecret"); // or ThinkGeoCloudMapsOverlay thinkGeoMapsOverlay= new ThinkGeoCloudMapsOverlay("apiKey"); Map.Overlays.Add(thinkGeoMapsOverlay);
A .Net SDK ThinkGeo Cloud Client is provided to consume the ThinkGeo Cloud Service as well. It's available on NuGet, here is the complete API List.
Sample Code:
MapsClient client = new MapsClient("clientId", "clientSecret"); Stream imageStream = client.GetRasterTile(z, x, y, projection, mapType, tileSize, tileResolution); Task<Stream> task = client.GetRasterTileAsync(z, x, y, projection, mapType, tileSize, tileResolution);
Native SDKs for Python, iOS and Android are coming soon.
Online Sample:
Desktop Samples:
Web Samples:
Mobile Samples: