[openstreetmap/openstreetmap-website] CRUD interface for moderation zones (PR #7148)
Marwin Hochfelsner
notifications at github.com
Wed Jul 8 13:04:43 UTC 2026
@hlfan commented on this pull request.
> + }
+
+ const feature = draw.getSnapshotFeature(id);
+ if (!feature) {
+ throw new Error(`Could not find feature with id ${id}`);
+ }
+
+ writeFormField(COORDINATES_FIELD_ID, feature);
+ };
+ }
+
+ function loadData(map, draw) {
+ const feature = readFormField(COORDINATES_FIELD_ID);
+ if (feature) {
+ startTerraDrawForEdit(draw, feature);
+ map.fitBounds(featureToBox(feature), { radius: 100 });
btw, the MapLibre `GeoJSONSource` also has a `getBounds()` method.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/7148#pullrequestreview-4654371375
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/7148/review/4654371375 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260708/f8059dc0/attachment-0001.htm>
More information about the rails-dev
mailing list