File tree Expand file tree Collapse file tree 4 files changed +23
-13
lines changed Expand file tree Collapse file tree 4 files changed +23
-13
lines changed Original file line number Diff line number Diff line change @@ -1085,9 +1085,9 @@ var exampleConfig = {
10851085 }
10861086 ]
10871087 } ,
1088- "FGB " : {
1089- name : 'FGB ' ,
1090- name_en : 'FGB ' ,
1088+ "FlatGeoBuf " : {
1089+ name : 'FlatGeoBuf ' ,
1090+ name_en : 'FlatGeoBuf ' ,
10911091 version : '11.1.0' ,
10921092 content : [
10931093 {
Original file line number Diff line number Diff line change @@ -1097,9 +1097,9 @@ var exampleConfig = {
10971097 }
10981098 ]
10991099 } ,
1100- FGB : {
1101- name : 'FGB ' ,
1102- name_en : 'FGB ' ,
1100+ FlatGeoBuf : {
1101+ name : 'FlatGeoBuf ' ,
1102+ name_en : 'FlatGeoBuf ' ,
11031103 version : '11.0.1' ,
11041104 content : [
11051105 {
Original file line number Diff line number Diff line change 129129 semicircleLineSegment : 10
130130 } )
131131 } ) ;
132- //向iServer发送请求并返回结果
133- new ol . supermap . SpatialAnalystService ( serviceUrl ) . bufferAnalysis (
134- geoBufferAnalystParams ,
132+ var geoBufferAnalystParams1 = new ol . supermap . GeometryBufferAnalystParameters ( {
133+ sourceGeometry : roadLine ,
134+ bufferSetting : new ol . supermap . BufferSetting ( {
135+ endType : ol . supermap . BufferEndType . ROUND ,
136+ leftDistance : new ol . supermap . BufferDistance ( { value : 250 } ) ,
137+ rightDistance : new ol . supermap . BufferDistance ( { value : 250 } ) ,
138+ semicircleLineSegment : 10
139+ } )
140+ } ) ;
141+ // 向iServer发送请求并返回结果
142+ var spatialAnalystService = new ol . supermap . SpatialAnalystService ( serviceUrl ) ;
143+ spatialAnalystService . bufferAnalysis (
144+ geoBufferAnalystParams1 ,
135145 function ( serviceResult ) {
136146 const vectorSource = new ol . source . FGB ( {
137147 url : serviceResult . result . newResourceLocation ,
155165 'FGB'
156166 ) ;
157167
158- new ol . supermap . SpatialAnalystService ( serviceUrl ) . bufferAnalysis (
168+ spatialAnalystService . bufferAnalysis (
159169 geoBufferAnalystParams ,
160170 function ( serviceResult ) {
161171 //将组成缓冲区的边界点提出来,为了构造下面查询服务的geometry
Original file line number Diff line number Diff line change @@ -1054,9 +1054,9 @@ var exampleConfig = {
10541054 fileName : "mask"
10551055 } ]
10561056 } ,
1057- FGB : {
1058- name : 'FGB ' ,
1059- name_en : 'FGB ' ,
1057+ FlatGeoBuf : {
1058+ name : 'FlatGeoBuf ' ,
1059+ name_en : 'FlatGeoBuf ' ,
10601060 version : '11.1.0' ,
10611061 content : [
10621062 {
You can’t perform that action at this time.
0 commit comments