Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
56 lines (50 sloc) 2.52 KB
<!DOCTYPE html>
<title>Raster Tiles in Cesium JS - Azure Maps Web SDK Samples</title>
<meta charset="utf-8" />
<meta http-equiv="x-ua-compatible" content="IE=Edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<meta name="description" content="This sample shows how to render Azure Maps Raster Tiles in the Cesium JS map control." />
<meta name="keywords" content="map, gis, API, SDK, tiles, raster, cesium, cesium.js" />
<meta name="author" content="Microsoft Azure Maps" />
<!-- Add references to the CesiumJS Map control JavaScript and CSS files. -->
<link rel="stylesheet" href="" type="text/css" />
<script src=""></script>
<script type='text/javascript'>
var map;
function GetMap() {
map = new Cesium.Viewer('myMap', {
imageryProvider: new Cesium.UrlTemplateImageryProvider({
url: new Cesium.Resource({
url: '{z}&x={x}&y={y}',
queryParameters: {
'api-version': '1.0',
tileSize: 512, //can be 256 or 512.
layer: 'basic', //Can be 'basic', 'hybrid' or 'labels'.
style: 'main',
language: 'en-US',
view: 'Auto',
//Add your Azure Maps subscription key to the map SDK. Get an Azure Maps key at
'subscription-key': '<Your Azure Maps Key>'
credit: new Cesium.Credit(`© ${new Date().getFullYear()} TomTom, Microsoft`, true),
maximumLevel: 22,
tileWidth: 512,
tileHeight: 512,
enablePickFeatures: false
baseLayerPicker: false
<body onload="GetMap()">
<div id="myMap" style="position:relative;width:100%;min-width:290px;height:600px;"></div>
<fieldset style="width:calc(100% - 30px);min-width:290px;margin-top:10px;">
<legend>Raster Tiles in Cesium JS</legend>
This sample shows how to render Azure Maps Raster Tiles in the <a href="">Cesium JS map control</a>.
You can’t perform that action at this time.