@@ -95,7 +95,7 @@ ol.supermap.WebMap.prototype.createMap = function (options) {
9595ol . supermap . WebMap . prototype . getResolutionsFromScales = function ( scales , dpi , units , datum ) {
9696 var resolutions = [ ] ;
9797 for ( var i = 0 ; i < scales . length ; i ++ ) {
98- resolutions . push ( L . Util . GetResolutionFromScaleDpi ( scales [ i ] , dpi , units , datum ) )
98+ resolutions . push ( SuperMap . Util . GetResolutionFromScaleDpi ( scales [ i ] , dpi , units , datum ) )
9999 }
100100 return resolutions ;
101101} ;
@@ -238,7 +238,7 @@ ol.supermap.WebMap.prototype.createTiandituLayer = function (layerInfo, epsgCode
238238 if ( type == "ter" ) type = "cta"
239239 }
240240 tdtURL = tdtURL . replace ( "{type}" , type ) . replace ( "{proj}" , proj ) ;
241- layer = new ol . layer . Tile ( {
241+ var layer = new ol . layer . Tile ( {
242242 source : new ol . source . Tianditu ( {
243243 url : tdtURL ,
244244 matrixSet : proj ,
@@ -290,7 +290,7 @@ ol.supermap.WebMap.prototype.createVectorLayer = function (layerInfo) {
290290 for ( var setNameIndex = 0 ; setNameIndex < datasets . length ; setNameIndex ++ ) {
291291 var dataset = datasets [ setNameIndex ] ;
292292 if ( dataset . visible ) {
293- var sqlParam = new GetFeaturesBySQLParameters ( {
293+ var sqlParam = new SuperMap . GetFeaturesBySQLParameters ( {
294294 queryParameter : {
295295 name : dataset . name + "@" + datasourceName ,
296296 attributeFilter : "SMID >0"
0 commit comments