aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/trails/PresBox.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2023-08-26 21:25:24 -0400
committerbobzel <zzzman@gmail.com>2023-08-26 21:25:24 -0400
commit0a813fdf7d73018ad5248d87fecbd9e55f3dc2d7 (patch)
tree71c1cf29075906d1423d0843749d5642809b8672 /src/client/views/nodes/trails/PresBox.tsx
parentc973e8cbd4aabb545ea580b213e7f60d41cf2b20 (diff)
many fixes to map search bar, dragging pushpin, highlighting pushpins on link following
Diffstat (limited to 'src/client/views/nodes/trails/PresBox.tsx')
-rw-r--r--src/client/views/nodes/trails/PresBox.tsx16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/client/views/nodes/trails/PresBox.tsx b/src/client/views/nodes/trails/PresBox.tsx
index afd9bccab..6ff22e929 100644
--- a/src/client/views/nodes/trails/PresBox.tsx
+++ b/src/client/views/nodes/trails/PresBox.tsx
@@ -471,12 +471,16 @@ export class PresBox extends ViewBoxBaseComponent<FieldViewProps>() {
Doc.SetInPlace(bestTarget, 'longitude', NumCast(activeItem.config_longitude), true);
changed = true;
}
- if (bestTarget.zoom !== activeItem.config_mapZoom) {
- Doc.SetInPlace(bestTarget, 'mapZoom', NumCast(activeItem.config_mapZoom), true);
+ if (bestTarget.zoom !== activeItem.config_map_zoom) {
+ Doc.SetInPlace(bestTarget, 'map_zoom', NumCast(activeItem.config_map_zoom), true);
changed = true;
}
- if (bestTarget.mapType !== activeItem.config_mapType) {
- Doc.SetInPlace(bestTarget, 'mapType', StrCast(activeItem.config_mapType), true);
+ if (bestTarget.map_type !== activeItem.config_map_type) {
+ Doc.SetInPlace(bestTarget, 'map_type', StrCast(activeItem.config_map_type), true);
+ changed = true;
+ }
+ if (bestTarget.map !== activeItem.config_map) {
+ Doc.SetInPlace(bestTarget, 'map', StrCast(activeItem.config_map), true);
changed = true;
}
}
@@ -663,8 +667,8 @@ export class PresBox extends ViewBoxBaseComponent<FieldViewProps>() {
if (pinProps.pinData.map) {
// pinDoc.config_latitude = targetDoc?.latitude;
// pinDoc.config_longitude = targetDoc?.longitude;
- pinDoc.config_mapZoom = targetDoc?.mapZoom;
- pinDoc.config_mapType = targetDoc?.mapType;
+ pinDoc.config_map_zoom = targetDoc?.map_zoom;
+ pinDoc.config_map_type = targetDoc?.map_type;
//...
}
if (pinProps.pinData.poslayoutview)