-
Notifications
You must be signed in to change notification settings - Fork 3
Dev layers #131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Dev layers #131
Conversation
LabordePierre
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing bugs and may be new usages to cover.
|
|
||
| layerB := geoViewManager createDomainObjectsLayer: #layerB. | ||
| geoViewManager addLayer: layerB. | ||
| self assert: layerB notNil. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
place assertion before adding
|
|
||
| layerC := geoViewManager createDomainObjectsLayer: #layerC. | ||
| geoViewManager addLayer: layerC afterIndex: 1. | ||
| self assert: layerC notNil. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
place assertion before adding
| GeoViewManagerImpl >> addLayer: aLayer afterIndex: anIndex [ | ||
|
|
||
| aLayer name ifNil: [ ^ nil ]. | ||
| self configureLayer: aLayer. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
duplicated code with addLayer: method. addLayer: should call addLayer: afterIndex: (see AbstractGeoViewElement>>addLayer:)
| "when the shape haven't coordinates, that mean the shape is managed by a parent (i.e. a dComposite), return an offset if exists" | ||
| aDShape coordinates ifNil: [ ^ offset ]. | ||
| self processor ifNil: [ ^ nil ]. | ||
| self processor projection ifNil: [ ^ nil ]. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
projection cannot be nil here, this is a bug to resolve. I cannot accept because this is dangerous.
|
|
||
| self layers do: [ :e | | ||
| e haveDomainObjects ifTrue: [ e updateObjects: anUserObjectList ] ] | ||
| self flag: 'TODO: Add a mutex for accessing layers collection'. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I cannot accept, this is a bug to resolve.
|
|
||
| | centerGeoPoint level tilesXY tilesXYBuffer findAtLeastOneTile realLevel| | ||
|
|
||
| self surfaceMap ifNil:[^self]. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same problem : this is a bug to resolve. but I know this class is dirty, but maybe previous problems was related to the same reason.
|
|
||
| self layers do: [ :e | | ||
| e haveDomainObjects ifTrue: [ e updateObjects: anUserObjectList ] ] | ||
| self flag: 'TODO: Add a mutex for accessing layers collection'. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I cannot accept, this is a bug to resolve.
|
|
||
| | centerGeoPoint level tilesXY tilesXYBuffer findAtLeastOneTile realLevel| | ||
|
|
||
| self surfaceMap ifNil:[^self]. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same problem : this is a bug to resolve. but I know this class is dirty, but maybe previous problems was related to the same reason.
|
@LANDAISB is this Pull Request again valid? |
|
Don't know yet, I want to check if mutex on layers fix all these problems. I have to test it on projects |
|
Ok, stay "pending" |
No description provided.