OpenLayers

Draw great circle line on the map directly in OpenLayers 5?

你说的曾经没有我的故事 提交于 2020-08-26 11:39:37
问题 Is it possible to draw the great circle line in the OpenLayers 5 directly, without splitting the LineString into many small parts like https://openlayers.org/en/latest/examples/flight-animation.html? Here is the problem of user experience related to the usage of the great circle line. The Modify Feature(https://openlayers.org/en/latest/examples/modify-test.html?q=Test) is provided. The number of the editable points in the great circle line is more than that in the direct line. The user have

GIS基础知识

偶尔善良 提交于 2020-08-11 08:59:28
最近接手一个GIS项目,需要用到 PostGIS,GeoServer,OpenLayers 等工具组件,遇到一堆地理信息相关的术语名词,在这里做一个总结。 1. 大地测量学 (Geodesy) 大地测量学 是一门量测和描绘地球表面的学科,也包括确定地球重力场和海底地形。 1.1 大地水准面 (geoid) 大地水准面 是 海洋表面 在排除风力、潮汐等其它影响,只考虑重力和自转影响下的形状,这个形状延伸过陆地,生成一个密闭的曲面。虽然我们通常说地球是一个球体或者椭球体,但是由于地球引力分布不均(因为密度不同等原因),大地水准面是一个不规则的光滑曲面。虽然不规则,但是可以近似地表示为一个椭球体,这个椭球体被 称为 参考椭球体(Reference ellipsoid) 。大地水准面相对于参考椭球体的高度被称为 Undulation of the geoid 。这个波动并不是非常大,最高在冰岛为85m,最低在印度南部为 −106 m,一共不到200m。下图来自 维基百科 ,表示 EGM96 geoid 下不同地区的 Undulation。 1.2 参考椭球体(Reference ellipsoid) 参考椭球体(Reference ellipsoid) 是一个数学上定义的地球表面,它近似于大地水准面。因为是几何模型,可以用长半轴、短半轴和扁率来确定。我们通常所说的经度

Adding map markers to Open Layers 6

醉酒当歌 提交于 2020-08-11 05:12:15
问题 My question is simple: How do you add a marker at a specific longitude and latitude? Working through the open layers example page I have created a new map with a marker. I added the marker using the new ol.Feature but it seems no matter what I set the coordinates to the marker position will not change . Please can anyone offer advice on why the map marker is not showing in the correct position? const iconFeature = new ol.Feature({ geometry: new ol.geom.Point([53, -2]), //This marker will not

Adding map markers to Open Layers 6

微笑、不失礼 提交于 2020-08-11 05:12:11
问题 My question is simple: How do you add a marker at a specific longitude and latitude? Working through the open layers example page I have created a new map with a marker. I added the marker using the new ol.Feature but it seems no matter what I set the coordinates to the marker position will not change . Please can anyone offer advice on why the map marker is not showing in the correct position? const iconFeature = new ol.Feature({ geometry: new ol.geom.Point([53, -2]), //This marker will not

Mouse passthrough to OpenLayers using WPF

北城以北 提交于 2020-08-10 23:09:10
问题 I am currently trying to update a map within a program from OpenLayers 3 to 6.3.1 in a WPF window. However im getting a problem where the mouse isn't passed through to the map. The software I'm working on draws a bunch of edges over a roadmap (using Basemap) to show the capacity/utilization at a given time and calculates ideal routes and stuff (similar to Google Maps). When I click on the map it should show me the avaiable data to the nearest edge in a second window, the methods for this are

Mouse passthrough to OpenLayers using WPF

蹲街弑〆低调 提交于 2020-08-10 23:08:12
问题 I am currently trying to update a map within a program from OpenLayers 3 to 6.3.1 in a WPF window. However im getting a problem where the mouse isn't passed through to the map. The software I'm working on draws a bunch of edges over a roadmap (using Basemap) to show the capacity/utilization at a given time and calculates ideal routes and stuff (similar to Google Maps). When I click on the map it should show me the avaiable data to the nearest edge in a second window, the methods for this are

OpenLayers Map addLayer and getLayers methods dealing with custom layer types

|▌冷眼眸甩不掉的悲伤 提交于 2020-08-10 22:49:55
问题 I am extending LayerGroup and TileLayer classes to include an id property that I need to identify a specific layer/group of layers (this also reflects an id of a layer DIV in the DOM). Example for TileLayer : export class OperationalLayer extends TileLayer { id: String; constructor(url: string, name: string, id: string) { const source = new TileWMS({ params: {'LAYERS': name}, url: url, }); super({source: source}); this.id = id; } } I also have another class which extends the ol Map class.