|
| 1 | +/*! |
| 2 | + * |
| 3 | + * iclient9-leaflet.(http://iclient.supermapol.com) |
| 4 | + * Copyright© 2000-2017 SuperMap Software Co. Ltd |
| 5 | + * license: Apache-2.0 |
| 6 | + * version: v9.0.0 |
| 7 | + * |
| 8 | + */ |
1 | 9 | /******/ (function(modules) { // webpackBootstrap |
2 | 10 | /******/ // The module cache |
3 | 11 | /******/ var installedModules = {}; |
@@ -3063,13 +3071,13 @@ SuperMap.Request = { |
3063 | 3071 | url = this._processUrl(url); |
3064 | 3072 | url = SuperMap.Util.urlAppend(url, this._getParameterString(params || {})); |
3065 | 3073 | if (url.length <= 2000) { |
3066 | | - if (SuperMap.Support.cors) { |
3067 | | - return this._fetch(url, params, options, type); |
3068 | | - } |
3069 | 3074 | if (!SuperMap.Util.isInTheSameDomain(url)) { |
3070 | 3075 | url = url.replace('.json', '.jsonp'); |
3071 | 3076 | return this._fetchJsonp(url, options); |
3072 | 3077 | } |
| 3078 | + if (SuperMap.Support.cors) { |
| 3079 | + return this._fetch(url, params, options, type); |
| 3080 | + } |
3073 | 3081 | } |
3074 | 3082 | return this._postSimulatie(type, url.substring(0, url.indexOf('?') - 1), params, options); |
3075 | 3083 | }, |
@@ -14015,7 +14023,7 @@ var TileVectorLayer = L.VectorGrid.extend({ |
14015 | 14023 | // SuperMap.CartoCSSToLeaflet内部做了客户端配置的cartoCSS和服务端cartoCSS的拼接处理 |
14016 | 14024 | // 客户端配置的cartoCSS会覆盖相应图层的服务端cartoCSS |
14017 | 14025 | if (!style && feature.type !== "TEXT") { |
14018 | | - var scale = this.getScale(coords); |
| 14026 | + var scale = this.getScaleFromCoords(coords); |
14019 | 14027 | var shaders = CartoCSSToLeaflet.pickShader(layerName) || []; |
14020 | 14028 | style = []; |
14021 | 14029 | for (var itemKey in shaders) { |
|
0 commit comments