GeoDaoyu


  • Home

  • About

  • Tags

  • Categories

  • Archives

  • Search

个人服务器

Posted on 2020-12-07 | Post modified: 2020-12-07 | In ArcGIS JS API
Words count in article: 571 | Reading time ≈ 3

2019年12月,想着参照AcrGIS官网示例搭建的typescript开发环境,写一些简单入门的WebGIS demo。

然后租了腾讯云的一台1H2G的服务器,部署ArcGIS API、SDK和应用。

同时准备录制视频,所以想租一台windows server,直接录屏操作服务器。结果网络很卡,就放弃了录屏服务器的想法。

Read more »

视频融合

Posted on 2020-11-25 | Post modified: 2020-11-25 | In ArcGIS JS API
Words count in article: 2.6k | Reading time ≈ 14

项目中有使用到视频融合,记录实现过程。

视频融合简单来讲就是在地图中接入一个视频。视频如地图中的要素一般。

效果图如下:

image-20201124103009147

Read more »

出差准备的物件

Posted on 2020-10-31 | Post modified: 2020-11-25 | In Life
Words count in article: 125 | Reading time ≈ 1

差不多每年10月都会出个差、所以存一份儿出差要准备物件的清单,以后就直接照着清单配了。

Read more »

umi学习大纲梳理

Posted on 2020-10-09 | Post modified: 2020-10-09 | In JavaScript
Words count in article: 326 | Reading time ≈ 1

UmiJS

Umi是可扩展的企业级前端应用框架。

链接:https://umijs.org/zh-CN/docs

Read more »

Promise执行顺序

Posted on 2020-09-23 | Post modified: 2020-09-30 | In JavaScript
Words count in article: 515 | Reading time ≈ 2

Promise的执行顺序会设计到JavaScript的事件循环。

找到一张图,来理解:

eventloop

Read more »

ramda-compose中包含异步操作

Posted on 2020-09-20 | Post modified: 2020-09-20 | In Ramda
Words count in article: 310 | Reading time ≈ 1

在函数组合时,如果有异步操作,那么ramda中compose应该怎么写呢?

在写空间查询例子的时候,就遇到了这个问题,其中doQuery方法是一个异步函数。

解决方法是一个andThen函数。

Read more »

手写Promise

Posted on 2020-09-18 | Post modified: 2020-09-23 | In JavaScript
Words count in article: 2.9k | Reading time ≈ 13

Promise是一个异步编程的解决方案。

之前的方案是回调函数的方式。优点是指定回调函数的位置更灵活,和解决了回调地狱问题。

规范是Promise A+。


下面手写实现一遍Promise便于理解。

Read more »

ramda-curd

Posted on 2020-09-14 | Post modified: 2020-09-18 | In Ramda
Words count in article: 192 | Reading time ≈ 1

对象属性的增删改查

Read more »

修改服务字段类型

Posted on 2020-09-14 | Post modified: 2020-09-14 | In Ramda
Words count in article: 499 | Reading time ≈ 2

背景

接口返回的是geojson格式,但是使用GeojsonLayer加载的时候,高亮的坐标有问题。排查发现,是接口返回的坐标全是string类型。

所以要写一个方法,把string类型的坐标转换为double类型,其他的数据保持不变。

Read more »

ramda初体验-数据转换

Posted on 2020-09-14 | Post modified: 2020-09-14 | In Ramda
Words count in article: 812 | Reading time ≈ 4

背景

前段时间发现了ramda这个函数式的JavaScript的库。一直没机会用。今天遇到个需求,刚好可以使用上。

要求是把后台接口返回的数据格式转化成与echart对接的数据格式,如图:

Read more »
12…4
GeoDaoyu

GeoDaoyu

GeoDaoyu's personal page

35 posts
12 categories
42 tags
GitHub E-Mail
Links
  • xbeichen
© 2020 GeoDaoyu | Site words total count: 25.7k
Powered by Hexo
|
Theme — NexT.Pisces v5.1.4