Skip to content

Commit

Permalink
fix current map type (Siedlerchr#169)
Browse files Browse the repository at this point in the history
* update package-lock.json version

- 3.4.0 -> 3.5.1
- this commit makes package-lock.json to have same version with package.json

* fix CurrentMap Type to be exported default

- name export -> default export
- https://github.com/Viglino/ol-ext/blob/master/src/interaction/CurrentMap.js
  - CurrentMap is exported default in ol-ext source code
  • Loading branch information
gomjellie authored Nov 19, 2024
1 parent a76d907 commit c64416b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion @types/ol-ext/interaction/CopyPaste.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type Feature from 'ol/Feature'
import type { Vector as VectorSource } from 'ol/source'
import type MapBrowserEvent from 'ol/MapBrowserEvent'
import BaseEvent from 'ol/events/Event'
import { CurrentMap } from './CurrentMap'
import CurrentMap from './CurrentMap'

export enum CopyPasteEventType {
DELETESTART = 'deletestart',
Expand Down
2 changes: 1 addition & 1 deletion @types/ol-ext/interaction/CurrentMap.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export interface Options {
* @extends {ol_interaction_Interaction}
*/
declare class CurrentMap extends Interaction {
export default class CurrentMap extends Interaction {
/**
* @param {*} options
* @param {function} condition a function that takes a mapBrowserEvent and returns true if the map must be activated, default always true
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c64416b

Please sign in to comment.