@@ -3,6 +3,9 @@ var mapboxgl = require('mapbox-gl');
33
44var worldUrl = GlobeParameter . WorldURL ;
55var chinaUrl = GlobeParameter . ChinaURL ;
6+ var jingjinAreaUrl = GlobeParameter . jingjinMapURL + "/maps/京津地区地图" ;
7+ var jingjinPopulationUrl = GlobeParameter . jingjinMapURL + "/maps/京津地区人口分布图_专题图" ;
8+
69describe ( 'mapboxgl_ThemeService' , function ( ) {
710 var serviceResult ;
811 var originalTimeout ;
@@ -170,12 +173,10 @@ describe('mapboxgl_ThemeService', function () {
170173 done ( ) ;
171174 }
172175 } , 5000 )
173-
174176 } ) ;
175177
176178 //栅格分段专题图
177179 it ( 'getThemeInfo_GridRange' , function ( done ) {
178- var jingjinUrl = "http://localhost:8090/iserver/services/map-jingjin/rest/maps/京津地区人口分布图_专题图" ;
179180 var themeGridRangeItem1 = new SuperMap . ThemeGridRangeItem ( {
180181 start : - 4 ,
181182 end : 120 ,
@@ -202,7 +203,7 @@ describe('mapboxgl_ThemeService', function () {
202203 joinItems : null ,
203204 themes : [ themeGridRange ]
204205 } ) ;
205- var service = new mapboxgl . supermap . ThemeService ( jingjinUrl ) ;
206+ var service = new mapboxgl . supermap . ThemeService ( jingjinPopulationUrl ) ;
206207 service . getThemeInfo ( themeParameters , function ( result ) {
207208 serviceResult = result
208209 } ) ;
@@ -227,8 +228,6 @@ describe('mapboxgl_ThemeService', function () {
227228 } ) ;
228229
229230 it ( 'getThemeInfo_GridUnique' , function ( done ) {
230- var jingjinUrl = "http://localhost:8090/iserver/services/map-jingjin/rest/maps/京津地区地图" ;
231-
232231 function setItems ( ) {
233232 var items = [ ] ;
234233 for ( var i = - 4 ; i < 2197 ; i ++ ) {
@@ -265,7 +264,7 @@ describe('mapboxgl_ThemeService', function () {
265264 dataSourceNames : [ "Jingjin" ] ,
266265 themes : [ themeGridUnique ]
267266 } ) ;
268- var service = new mapboxgl . supermap . ThemeService ( jingjinUrl ) ;
267+ var service = new mapboxgl . supermap . ThemeService ( jingjinAreaUrl ) ;
269268 service . getThemeInfo ( themeParameters , function ( result ) {
270269 serviceResult = result
271270 } ) ;
@@ -286,8 +285,7 @@ describe('mapboxgl_ThemeService', function () {
286285 expect ( false ) . toBeTruthy ( ) ;
287286 done ( ) ;
288287 }
289- } , 5000 )
290-
288+ } , 8000 )
291289 } ) ;
292290
293291 //标签专题图
@@ -422,8 +420,7 @@ describe('mapboxgl_ThemeService', function () {
422420 }
423421 } , 5000 )
424422 } ) ;
425-
426-
423+
427424 //单值专题图
428425 it ( 'getThemeInfo_Unique' , function ( done ) {
429426 var themeUniqueIteme1 = new SuperMap . ThemeUniqueItem ( {
0 commit comments