1. 首页
  2. 编程语言
  3. Javascript
  4. Openlayers通过元素获取图层,通过点元素获取线元素

Openlayers通过元素获取图层,通过点元素获取线元素

上传者: 2019-07-04 21:28:20上传 JS文件 1.28KB 热度 72次
Although Openlayers provides a number of methods, it usually gets the feature from the layer, or gets the coordinates from the feature. The ones that are obtained are generally collections. But you want to get the layer through the feature. The OL select line element has a BUG. Generally, the point element on the line is selected instead of the line element, so you need to write a method to pass the point element. Go to get the line element.
用户评论