Skip to content

Commit

Permalink
fix errors and typos
Browse files Browse the repository at this point in the history
  • Loading branch information
ghettovoice committed Mar 30, 2017
1 parent 111f920 commit ca6fcce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/map/map.vue
Expand Up @@ -84,7 +84,7 @@
return this.map.forEachLayerAtPixel(pixel, cb, undefined, lf)
},
getCoordinateFromPixel (pixel) {
return toLonLat(this.map.getCoordinateFromPixel(), this.view.getProjection())
return toLonLat(this.map.getCoordinateFromPixel(pixel), this.map.getView().getProjection())
},
mountMap () {
this.map.setTarget(this.$refs.map)
Expand Down Expand Up @@ -160,7 +160,7 @@
({ type, pixel, coordinate }) => ({ type, pixel, coordinate })
).map(evt => ({
...evt,
coordinate: toLonLat(evt.coordinate, this.view.getProjection())
coordinate: toLonLat(evt.coordinate, this.map.getView().getProjection())
}))
this.subscribeTo(pointerEvents, evt => this.$emit(evt.type, evt))
Expand Down
2 changes: 1 addition & 1 deletion src/components/source/source.js
Expand Up @@ -44,7 +44,7 @@ const methods = {
throw new Error('Not implemented method')
},
mountSource () {
if (!this.source) {
if (!this.layer) {
throw new Error("Invalid usage of source component, should have layer component among it's ancestors")
}

Expand Down

0 comments on commit ca6fcce

Please sign in to comment.