Skip to content
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

Dev pla #52

Merged
merged 2 commits into from
Oct 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/GeoView/AbstractGeoViewGraphicModelLayer.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ AbstractGeoViewGraphicModelLayer >> updateDShapes: aDShapeList [
AbstractGeoViewGraphicModelLayer >> userDataChangesMutex [

^ userDataChangesMutex ifNil: [
userDataChangesMutex := Semaphore forMutualExclusion ]
userDataChangesMutex := Monitor new ]
]

{ #category : #'API -- graphic properties' }
Expand Down
6 changes: 5 additions & 1 deletion src/GeoView/GeoObjectProcessData.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,11 @@ GeoObjectProcessData >> processRecycledData: aKey incoming: aGeoObject with: aDS

aDShape key: nil.
aDShape removeProperties.
aDShape isComposite ifTrue:[ aDShape removeChildren ].
aDShape isComposite ifTrue:[
aDShape dShapeList removeAll.
aDShape toUpdateDShapeList removeAll.
aDShape toDeleteDShapeList removeAll.
].

^ aDShape
]
Expand Down
15 changes: 15 additions & 0 deletions src/GeoView/GeoViewDShapesLayer.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,21 @@ GeoViewDShapesLayer >> mapProjection: aMapProjection [
"do nothing"
]

{ #category : #private }
GeoViewDShapesLayer >> populatePickingResult: aPickingResult at: index with: aGShape [
"Way to detect if the gShape is picked"

| pickingElement data |
pickingElement := super populatePickingResult: aPickingResult at: index with: aGShape.
pickingElement ifNil:[ ^ nil ].

"add dShape"
self userDataChangesMutex critical: [ data := self userModel at: index ifAbsent:[ nil ] ].
pickingElement dShape: data.

^ pickingElement
]

{ #category : #'API -- DShapes' }
GeoViewDShapesLayer >> removeDShape: aDShape [

Expand Down
Loading