同步操作将从 osmapgis/MapGIS-WebClient-JavaScript 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
import { Zondy } from '../../common/Base';import { QueryServiceBase } from './QueryServiceBase';import { ObjClsQueryParameter } from './ObjClsQueryParameter';import { IgsServiceBase } from '../../baseserver/IServiceBase';/*** @author 基础平台/产品2部 龚跃健* @class module:要素服务.ObjClsQuery* @classdesc 注记查询类* @description Zondy.Service.ObjClsQuery* @extends Zondy.Service.QueryServiceBase* @param queryParam -{Zondy.Service.ObjClsQueryParameter} 对象类查询的参数类。* @param gdbp -{String} 对象类的GDBP地址。<br>* @param option - {Object} 属性键值对。<br>* @param {Zondy.Object.QueryByLayerParameter} [option.queryParam = null] 查询参数信息*/class ObjClsQuery extends QueryServiceBase {constructor(queryParam, gdbp, option) {var options = option ? option : {};super(options);/*** @private* @member Zondy.Service.ObjClsQuery.prototype.queryParam* @type {Zondy.Object.QueryByLayerParameter}* @description 查询参数信息*/this.queryParam = queryParam;/*** @private* @member Zondy.Service.ObjClsQuery.prototype.gdbp* @type {String}* @description 图层URL*/this.gdbp = gdbp;/*** @private* @member Zondy.Service.ObjClsQuery.prototype.baseUrl* @type {String}* @description 基类地址*/this.baseUrl = 'igs/rest/extend/dxlcz';/*** @private* @member Zondy.Service.ObjClsQuery.prototype.partUrl* @type {String}* @description 查询参数地址*/this.partUrl = 'objlayer/query?gdbp=' + gdbp;this.partUrl += queryParam.getParameterURL();}/*** @description 查询函数,向服务器发送请求* @function Zondy.Service.ObjClsQuery.prototype.query* @param onSuccess - {Function} 查询成功回调函数。* @param onError - {Function} 查询失败回调函数。* @example//初始化查询结构对象,设置查询结构包含几何信息var queryStruct = new Zondy.Service.QueryFeatureStruct();//是否包含几何信息queryStruct.IncludeGeometry = true;//实例化查询参数对象var queryParam = new Zondy.Service.ObjClsQueryParameter({//设置查询条件objectIds: 3,where: "username = 'liu'",//设置结果返回类型resultFormat: "json",//设置查询结构struct: queryStruct});//实例化地图文档查询服务对象var queryService = new Zondy.Service.ObjClsQuery(queryParam, "gdbp://MapGisLocal/OpenLayerVecterMap/ds/世界地图经纬度/ocls/user,gdbp://MapGisLocal/OpenLayerVecterMap/ds/世界地图经纬度/ocls/user2", {//IP地址ip: "develop.smaryun.com",//端口号port: "6163"});queryService.query(function (res) {console.log(res);}, function (error) {console.log(error);});*/query(onSuccess, onError) {if (this.queryParam === null || !(this.queryParam instanceof ObjClsQueryParameter)) {return;}var me = this;var url = me.getFullUrl();var service = new IgsServiceBase(url, {eventListeners: {scope: me,processCompleted: onSuccess,processFailed: onError}});service.processAsync();}}export { ObjClsQuery };Zondy.Service.ObjClsQuery = ObjClsQuery;
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。