Skip to content

Commit

Permalink
# publish
Browse files Browse the repository at this point in the history
  • Loading branch information
冯冬冬 committed Oct 11, 2017
1 parent 622d9ab commit 80c7641
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 12 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
## 1.5.1 (2017.10.11)

* 移除控件和交互底层代码,修改为应用ol-extent包处理。
* 修改图层创建,支持到ArcGIS,谷歌等多类图层,兼容多标注层处理,图层获取方法优化,兼容到深层图层处理。
* 修改要素操作类,优化代码和结构,支持json样式使用。
* 修改overlay操作类,兼容html解析。
* 添加事件处理。
* 添加文档说明和示例DEMO。

## 1.5.0 (2017.08.26)

* 重构相关方法,修复上一版本bug,处理底层兼容问题。
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ npm install hmap-js --save

#### cdn

目前可通过 [unpkg.com/hmap-js](https://unpkg.com/hmap-js@1.5.0/dist/hmap.js) 获取最新版本的资源。
目前可通过 [unpkg.com/hmap-js](https://unpkg.com/hmap-js@1.5.1/dist/hmap.js) 获取最新版本的资源。

```bash
https://unpkg.com/hmap-js@1.5.0/dist/hmap.js
https://unpkg.com/hmap-js@1.5.0/dist/hmap.min.js
https://unpkg.com/hmap-js@1.5.0/dist/hmap.css
https://unpkg.com/hmap-js@1.5.0/dist/hmap.min.css
https://unpkg.com/hmap-js@1.5.1/dist/hmap.js
https://unpkg.com/hmap-js@1.5.1/dist/hmap.min.js
https://unpkg.com/hmap-js@1.5.1/dist/hmap.css
https://unpkg.com/hmap-js@1.5.1/dist/hmap.min.css
```

#### 示例
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hmap-js",
"version": "1.5.0",
"version": "1.5.1",
"private": false,
"description": "a openlayers extent map library",
"main": "dist/hmap-js.js",
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import _BaseLayers from './map/BaseLayers'
import _Controls from './map/Controls'
import _Interactions from './map/Interactions'
import _Feature from './feature/feature'
import _Overlay from './feature/overlay'
import _Overlay from './overlay/overlay'
import _Geometry from './geom/Geometry'
import _ViewUtil from './utils/ViewUtil'
import { isObject } from './utils/utils'
Expand Down
9 changes: 4 additions & 5 deletions src/feature/overlay.js → src/overlay/overlay.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@
* @desc 用于dom标绘(包含自定义dom或者iconfont)
*/
import ol from 'openlayers'
import mixin from '../utils/mixins'
import * as htmlUtils from 'nature-dom-util/src/utils/domUtils'
import { trim } from '../utils/utils'
import Feature from '../feature/feature'
class Overlay extends mixin(Feature) {
import Geometry from '../geom/Geometry'
class Overlay extends Geometry {

/**
* 添加字体图标要素
Expand Down Expand Up @@ -221,7 +220,7 @@ class Overlay extends mixin(Feature) {
if (overLay.get('markFeature') && overLay.get('markFeature') instanceof ol.Feature) {
this.removeFeature(overLay.get('markFeature'))
}
this.map.removeOverlay(overLay)
this.removeOverlay(overLay)
}
return overLay
}
Expand All @@ -246,7 +245,7 @@ class Overlay extends mixin(Feature) {
if (overlays[i].get('markFeature') && overlays[i].get('markFeature') instanceof ol.Feature) {
this.removeFeature(overlays[i].get('markFeature'))
}
this.map.removeOverlay(overlays[i])
this.removeOverlay(overlays[i])
i--
}
}
Expand Down

0 comments on commit 80c7641

Please sign in to comment.