minor cleanup

This commit is contained in:
Andy Gup 2014-06-09 13:18:19 -06:00
parent ded97da733
commit 177dacdae1

View File

@ -16,7 +16,7 @@ define([
FileSaver,LOD,Point,Extent,TileInfo,SpatialReference,TiledMapServerLayer)
{
"use strict";
return declare("test",[TiledMapServerLayer],{
return declare("OfflineTileEnablerLayer",[TiledMapServerLayer],{
tileInfo: null,
_imageType:"",
@ -60,7 +60,6 @@ define([
this.offline.store.init(function(success){
if(success){
this._getTileInfoPrivate(url,function(result){
console.log("RESULT BABY " + result)
this.parseGetTileInfo(result,function(result){
this.layerInfos = result.resultObj.layers;
// this.version = result.resultObj.currentVersion;
@ -121,9 +120,8 @@ define([
getTileUrl: function(level,row,col)
{
console.assert(!isNaN(level) && !isNaN(row) && !isNaN(col), "bad tile requested");
console.log("looking for tile",level,row,col);
// var url = this._self._getTileUrl(level,row,col);
var url = this.url + "/tile/" + level + "/" + row + "/" + col;
console.log("LIBRARY ONLINE " + this.offline.online)
if( this.offline.online )