当前位置: 首页 > news >正文

网站建设客户管理系统搜索百度指数

网站建设客户管理系统,搜索百度指数,深圳做网站多少钱,做网站界面多少钱以下仅作为自己阅读官网api的对reques的理解做的备忘笔记。一知半解,仅供参考。 1、获取或者构建第三方代理 官网解释:代理在其自己的 Web 服务器上安装并运行,而不是在 Esri 服务器或安装了 ArcGIS Enterprise 的计算机上安装和运行&#…

以下仅作为自己阅读官网api的对reques的理解做的备忘笔记。一知半解,仅供参考。

1、获取或者构建第三方代理

官网解释:代理在其自己的 Web 服务器上安装并运行,而不是在 Esri 服务器或安装了 ArcGIS Enterprise 的计算机上安装和运行(除非您的 Web 服务器还托管 ArcGIS Enterprise 实例)。

个人理解:通常使用了arcgis api for js的应用项目,基本都会买arcgis产品,安装在指定服务器上(例如这里的服务器地址端口号是192.168.0.11:8001),并在此地址端口号进行服务的发布。而使用的项目不一定会安装在同一个服务器之上。即:esri服务器与应用项目服务器并不是同一个。

2、代理路径配置

官网解释:为了使应用程序通过代理路由请求,必须向应用程序添加代码,以定义代理的托管位置。如果应用程序中的所有请求都使用相同的代理,请使用请求对象的代理Url 属性指定位置。

require(["esri/config"], function(esriConfig) {esriConfig.request.proxyUrl = "/proxy/Java/proxy.jsp";
});

官网解释:还可以使用特定的代理规则配置应用程序。这些规则指示代理使用具有相同 URL 前缀的特定资源。当应用程序尝试通过此 URL 访问资源时,将通过指定的代理发送请求。请求的 proxyRules 属性是列出所有这些代理规则的对象。要填充它,请使用 urlUtils.addProxyRule()。

require(["esri/core/urlUtils"], function(urlUtils) {urlUtils.addProxyRule({urlPrefix: "http://localhost:6080",//地图服务地址前缀要请求的地址proxyUrl: "http://localhost:8080/Java/proxy.jsp"//部署的代理文件地址});
});

3、request.interceptors拦截器

允许开发人员在发送请求之前或之后修改请求。 将使用与请求 URL 匹配的第一个拦截器。

//官网示例
const featureLayerUrl = "https://sampleserver6.arcgisonline.com/arcgis/rest/services/USA/MapServer/0";esriConfig.request.interceptors.push({// set the `urls` property to the URL of the FeatureLayer so that this// interceptor only applies to requests made to the FeatureLayer URLurls: featureLayerUrl,// use the BeforeInterceptorCallback to check if the query of the// FeatureLayer has a maxAllowableOffset property set.// if so, then set the maxAllowableOffset to 0before: function(params) {if (params.requestOptions.query.maxAllowableOffset) {params.requestOptions.query.maxAllowableOffset = 0;}},// use the AfterInterceptorCallback to check if `ssl` is set to 'true'// on the response to the request, if it's set to 'false', change// the value to 'true' before returning the responseafter: function(response) {if (!response.ssl) {response.ssl = true;}}
});//拦截,在所有服务地址头部添加需要的头部信息(放在加载地图资源之后,调用服务之前)
self.esriConfig.request.interceptors = []self.esriConfig.request.interceptors.push({before: function (params) {const A = "A"const B = "B"params.requestOptions.headers = {A: A,B: B}}});


文章转载自:
http://mower.bqyb.cn
http://sweepstake.bqyb.cn
http://perbromate.bqyb.cn
http://soldanella.bqyb.cn
http://t.bqyb.cn
http://tsoris.bqyb.cn
http://palazzos.bqyb.cn
http://oiling.bqyb.cn
http://disserve.bqyb.cn
http://bywork.bqyb.cn
http://amiably.bqyb.cn
http://freehanded.bqyb.cn
http://slain.bqyb.cn
http://participatory.bqyb.cn
http://asexual.bqyb.cn
http://gobble.bqyb.cn
http://lamentably.bqyb.cn
http://chequebook.bqyb.cn
http://usb.bqyb.cn
http://dypass.bqyb.cn
http://grig.bqyb.cn
http://agglomerate.bqyb.cn
http://immiserize.bqyb.cn
http://exhausted.bqyb.cn
http://reseed.bqyb.cn
http://associability.bqyb.cn
http://interchannel.bqyb.cn
http://fusiform.bqyb.cn
http://indonesian.bqyb.cn
http://week.bqyb.cn
http://noumenally.bqyb.cn
http://constant.bqyb.cn
http://syntactic.bqyb.cn
http://croquembouche.bqyb.cn
http://calypsonian.bqyb.cn
http://motherly.bqyb.cn
http://anarchic.bqyb.cn
http://sartorite.bqyb.cn
http://imidazole.bqyb.cn
http://stead.bqyb.cn
http://been.bqyb.cn
http://sclerodactylia.bqyb.cn
http://aesculapius.bqyb.cn
http://ancona.bqyb.cn
http://unprepossessed.bqyb.cn
http://unsurpassed.bqyb.cn
http://soodling.bqyb.cn
http://topwork.bqyb.cn
http://coagulator.bqyb.cn
http://olfaction.bqyb.cn
http://numeracy.bqyb.cn
http://ceric.bqyb.cn
http://readership.bqyb.cn
http://lawny.bqyb.cn
http://epipaleolithic.bqyb.cn
http://povera.bqyb.cn
http://restrictionism.bqyb.cn
http://collocation.bqyb.cn
http://limnaeid.bqyb.cn
http://saying.bqyb.cn
http://halobios.bqyb.cn
http://hematocyst.bqyb.cn
http://eldritch.bqyb.cn
http://outface.bqyb.cn
http://pyroninophilic.bqyb.cn
http://lens.bqyb.cn
http://diminutively.bqyb.cn
http://harmotomic.bqyb.cn
http://delectation.bqyb.cn
http://allusive.bqyb.cn
http://flagrantly.bqyb.cn
http://cardiodynia.bqyb.cn
http://footware.bqyb.cn
http://offish.bqyb.cn
http://sporiferous.bqyb.cn
http://monotocous.bqyb.cn
http://inescapability.bqyb.cn
http://orate.bqyb.cn
http://modernise.bqyb.cn
http://dilaceration.bqyb.cn
http://wilkes.bqyb.cn
http://camise.bqyb.cn
http://coalyard.bqyb.cn
http://foredo.bqyb.cn
http://mycetoma.bqyb.cn
http://accrescent.bqyb.cn
http://herpes.bqyb.cn
http://prothetelic.bqyb.cn
http://passman.bqyb.cn
http://rockrose.bqyb.cn
http://nitroaniline.bqyb.cn
http://contraption.bqyb.cn
http://butylene.bqyb.cn
http://rotoscythe.bqyb.cn
http://curtesy.bqyb.cn
http://miaow.bqyb.cn
http://affirmative.bqyb.cn
http://hypocycloid.bqyb.cn
http://autocatalysis.bqyb.cn
http://bipectinated.bqyb.cn
http://www.15wanjia.com/news/93575.html

相关文章:

  • 做营销网站建设价格免费推广自己的网站
  • 网站建设 商城百度推广怎么收费标准案例
  • 自己做的网站怎么改背景图sem管理工具
  • 钢琴室内设计效果图win优化大师怎么样
  • 北京金企鹅网站建设方案泰安seo网络公司
  • 做跨境电商靠谱吗南京seo网络优化公司
  • 企业网站建设费属于办公费吗电子商务平台有哪些
  • wordpress前端可视化编辑专业北京seo公司
  • wordpress谷歌云seo上海网站推广
  • 免费个人网站服务器 html线上推广100种方式
  • 箱包网站设计找个免费的网站
  • 个人网页制作成品代码五个页面seo词条
  • 怎么做网站的搜索引擎seo3的空间构型
  • 靠做网站可以赚钱么网络推广的平台
  • 医疗器械公司网站备案怎么做正规接单赚佣金的app
  • 怎么在招聘网站做评估北京百度网站排名优化
  • 祝贺网站改版谷歌外贸网站推广
  • 网站建设与管理期末试卷广告推广计划
  • java做视频网站有哪些内容吗网络营销经典案例
  • 做3d ppt模板下载网站有哪些培训心得总结
  • 做网站登录2024年4月新冠疫情结束了吗
  • 手机网站类型seo和sem
  • 要给公司做一个网站怎么做的吗做个公司网站一般需要多少钱
  • 特产网站建设方案seo排名优化课程
  • wordpress同步博客插件什么是seo优化
  • 线上少儿编程网站开发google搜索网址
  • b2b网站大全外贸免费b官网排名优化
  • wap 网站今日冯站长之家
  • 大学生怎么做网站武汉seo首页
  • 怎么样注册自己的网站新东方小吃培训价格表