-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #67 from KlausBenndorf/newFeatures
Some new features
- Loading branch information
Showing
22 changed files
with
79 additions
and
146 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,9 @@ | ||
import ol from 'openlayers' | ||
|
||
import BaseLayerMixin from './BaseLayerMixin' | ||
import LayerLoadProcessCountMixin from './LayerLoadProcessCountMixin' | ||
import {BaseLayerMixin} from './BaseLayerMixin' | ||
import {LayerLoadProcessCountMixin} from './LayerLoadProcessCountMixin' | ||
import { mixin } from '../utilities' | ||
import {ProvideMapMixin} from './ProvideMapMixin' | ||
|
||
export default class BaseLayerTile extends mixin(mixin(ol.layer.Tile, BaseLayerMixin), LayerLoadProcessCountMixin) { | ||
/** | ||
* @param {G4UMap} map | ||
*/ | ||
setMap (map) { | ||
/** | ||
* WORKAROUND | ||
* As openlayers identifies managed layers (i.e. layers that are registered via the maps addLayer function) | ||
* by the fact that the setMap method was called and we need a reference to the map in layers contained in a | ||
* grouplayer, we overwrite the setMap method to still have access to the map via the normal way | ||
* @type {G4UMap} | ||
* @private | ||
*/ | ||
this.map__ = map | ||
} | ||
|
||
/** | ||
* @returns {G4UMap} | ||
*/ | ||
getMap () { | ||
return this.map__ | ||
} | ||
} | ||
export const BaseLayerTile = | ||
mixin(mixin(mixin(ol.layer.Tile, ProvideMapMixin), BaseLayerMixin), LayerLoadProcessCountMixin) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,10 @@ | ||
import ol from 'openlayers' | ||
|
||
import LayerLoadProcessCountMixin from './LayerLoadProcessCountMixin' | ||
import BaseLayerMixin from './BaseLayerMixin' | ||
import {LayerLoadProcessCountMixin} from './LayerLoadProcessCountMixin' | ||
import {BaseLayerMixin} from './BaseLayerMixin' | ||
import { mixin } from '../utilities' | ||
import {ProvideMapMixin} from './ProvideMapMixin' | ||
|
||
export class ImageLayer extends mixin(ol.layer.Image, LayerLoadProcessCountMixin) { | ||
/** | ||
* @param {G4UMap} map | ||
*/ | ||
setMap (map) { | ||
/** | ||
* WORKAROUND | ||
* As openlayers identifies managed layers (i.e. layers that are registered via the maps addLayer function) | ||
* by the fact that the setMap method was called and we need a reference to the map in layers contained in a | ||
* grouplayer, we overwrite the setMap method to still have access to the map via the normal way | ||
* @type {G4UMap} | ||
* @private | ||
*/ | ||
this.map__ = map | ||
} | ||
|
||
/** | ||
* @returns {G4UMap} | ||
*/ | ||
getMap () { | ||
return this.map__ | ||
} | ||
} | ||
|
||
export class BaseLayerImage extends mixin(ImageLayer, BaseLayerMixin) { | ||
|
||
} | ||
export const ImageLayer = mixin(mixin(ol.layer.Image, ProvideMapMixin), LayerLoadProcessCountMixin) | ||
|
||
export const BaseLayerImage = mixin(ImageLayer, BaseLayerMixin) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
export class ProvideMapMixin { | ||
/** | ||
* @param {G4UMap} map | ||
*/ | ||
provideMap (map) { | ||
/** | ||
* @type {G4UMap|undefined} | ||
* @private | ||
*/ | ||
this.providedMap_ = map | ||
} | ||
|
||
/** | ||
* @returns {G4UMap|undefined} | ||
*/ | ||
getProvidedMap () { | ||
return this.providedMap_ | ||
} | ||
} |
Oops, something went wrong.