[openstreetmap/openstreetmap-website] CRUD interface for moderation zones (PR #7148)

Pablo Brasero notifications at github.com
Wed Jul 8 11:21:25 UTC 2026


@pablobm commented on this pull request.



> +      startTerraDrawForEdit(draw, feature);
+      map.fitBounds(featureToBox(feature), { radius: 100 });
+    } else {
+      startTerraDrawForNew(draw);
+    }
+  }
+
+  function readFormField(fieldId) {
+    const target = document.getElementById(fieldId);
+    if (!target) {
+      throw new Error(`Could not find field #${fieldId}`);
+    }
+
+    const match = POSTGIS_LINE_POINTS_REGEXP.exec(target.value.trim());
+    if (!match) {
+      throw new Error(`Unexpected value in field #${fieldId}. Expected a PostGIS geometry, but found: ${target.value}`);

Well, TIL about https://en.wikipedia.org/wiki/Well-known_text_representation_of_geometry :slightly_smiling_face: Thank you

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/7148#discussion_r3543488871
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/7148/review/4653609161 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260708/77f96ede/attachment-0001.htm>


More information about the rails-dev mailing list