diff options
| author | Eric <ericmabr@gmail.com> | 2023-07-31 12:58:06 -0400 |
|---|---|---|
| committer | Eric <ericmabr@gmail.com> | 2023-07-31 12:58:06 -0400 |
| commit | caa2e09edb9c1db0af571013d006179bdc84f755 (patch) | |
| tree | 1967a9f7677a1c22c911da9596478308fe9fcd42 /src/client/views/nodes/trails | |
| parent | b04306ce09bfd994c0535d77bae9c778dab97977 (diff) | |
All mapType stuff and constructor is done
Diffstat (limited to 'src/client/views/nodes/trails')
| -rw-r--r-- | src/client/views/nodes/trails/PresBox.tsx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/client/views/nodes/trails/PresBox.tsx b/src/client/views/nodes/trails/PresBox.tsx index d1cfb86ae..0a907c958 100644 --- a/src/client/views/nodes/trails/PresBox.tsx +++ b/src/client/views/nodes/trails/PresBox.tsx @@ -464,7 +464,14 @@ export class PresBox extends ViewBoxBaseComponent<FieldViewProps>() { } if (bestTarget.longitude !== activeItem.presLong) { Doc.SetInPlace(bestTarget, "longitude", NumCast(activeItem.presLong), true); - bestTarget.restoreTargetOn = true; + changed = true; + } + if (bestTarget.zoom !== activeItem.presZoom) { + Doc.SetInPlace(bestTarget, "zoom", NumCast(activeItem.presZoom), true); + changed = true; + } + if (bestTarget.mapType !== activeItem.presMapType) { + Doc.SetInPlace(bestTarget, "mapType", StrCast(activeItem.presMapType), true); changed = true; } } |
