SOURCE

console 命令行工具 X clear

                    
>
console
var provider = new MM.MapProvider(function(coord) {
  var Z = coord.zoom, X = coord.column, Y = coord.row;
  var image_width = 4000, image_height = 4000;
  var subdivisions = 2**Z;
  if (X < 0 || X >= subdivisions || Y < 0 || Y >= subdivisions) { return ""; } // row/column index outside of image
  var w = image_width/subdivisions, h = image_height/subdivisions, x = X * w, y = Y * h;
  return "http://res.cloudinary.com/maxr/image/upload" +
    '/c_crop,x_'+Math.ceil(x)+',y_'+Math.ceil(y)+',w_'+Math.ceil(w)+',h_'+Math.ceil(h)+
    "/w_256" + // 256x256 is the tile size
    "/square_mona_lisa.jpg"
});
var layer = new MM.Layer(provider);
var map = new MM.Map('map', layer).setZoom(1).setZoomRange(0, 6);
<div id='map'/>
#map {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

本项目引用的自定义外部资源