Tilt and rotate the map using the JS API #

    <script src=""></script>
    <link rel="stylesheet" href="" />

        html, body {
            height: 100%;
            -ms-touch-action: none;
        var map;
        var MapToken = "Enter your MapToken here";
        Rasters.Map.OnReady = function () {
              map = new Rasters.Map({
                container: 'Map', // container id
                url: '', 
                mapKey: "",
                authenticationMode: Rasters.AuthenticationMode.MapToken,               
                token: MapToken 
        map.OnReady = OnConnectHander;           

  function OnConnectHander() {
            map.SetPosition(-71.2170425, 46.810457, 10);    


<div style='width: 100%; height: 400px; position: relative;'>
  <div id="Map" style='width: 100%; height: 100%;'></div>
  <div class="btn-group" style="position: absolute; right: 10px; top: 10px;" >
    <button onclick="map.SetTilt(45)">Tilt</button>
    <button onclick="map.SetRotationAngle(45)">Rotate</button>
    <button onclick="map.IncreaseZoom(-1)">Zoom out</button>
    <button onclick="map.IncreaseZoom(1)">Zoom in</button>
    <button onclick="map.FlyToPosition(-123.3676258, 48.4138784, 12);">Fly TO</button>
Help Guide Powered by Documentor
Suggest Edit