Skip to content

Commit

Permalink
existing highlights always enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
VitorVieiraZ committed Aug 27, 2024
1 parent 59c9688 commit 482faa4
Showing 1 changed file with 13 additions and 22 deletions.
35 changes: 13 additions & 22 deletions app/qml/map/MMRecordingTools.qml
Original file line number Diff line number Diff line change
Expand Up @@ -131,11 +131,6 @@ Item {
sourceComponent: midSegmentsHighlightComponent
}

Loader {
active: true
sourceComponent: existingVerticesHighlightComponent
}

// Duplicate position marker to be painted on the top of highlights
MMPositionMarker {
xPos: positionMarkerComponent.xPos
Expand All @@ -161,6 +156,19 @@ Item {
shouldUseSnapping: !mapTool.isUsingPosition
}

MMHighlight {
id: existingVerticesHighlight

height: root.map.height
width: root.map.width

mapSettings: root.map.mapSettings
geometry: __inputUtils.transformGeometryToMapWithLayer( mapTool.existingVertices, __activeLayer.vectorLayer, root.map.mapSettings )

markerType: MMHighlight.MarkerTypes.Circle
markerSize: MMHighlight.MarkerSizes.Bigger
}

MMToolbar {
y: parent.height

Expand Down Expand Up @@ -329,23 +337,6 @@ Item {
}
}

Component {
id: existingVerticesHighlightComponent

MMHighlight {
id: existingVerticesHighlight

height: root.map.height
width: root.map.width

mapSettings: root.map.mapSettings
geometry: __inputUtils.transformGeometryToMapWithLayer( mapTool.existingVertices, __activeLayer.vectorLayer, root.map.mapSettings )

markerType: MMHighlight.MarkerTypes.Circle
markerSize: MMHighlight.MarkerSizes.Bigger
}
}

Connections {
target: map
function onClicked( point ) {
Expand Down

1 comment on commit 482faa4

@inputapp-bot
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

iOS - version 24.8.652811 just submitted!

Please sign in to comment.