تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
يستردّ بشكل غير متزامن قيمة هذا العنصر من الخادم ويمرّرها إلى دالة رد الاتصال المقدَّمة.
الاستخدام
المرتجعات
Geometry.evaluate(callback)
الوسيطة
النوع
التفاصيل
هذا: computedobject
ComputedObject
مثيل ComputedObject
callback
الوظيفة
دالة بالصيغة function(success, failure)، يتم استدعاؤها عندما يعرض الخادم إجابة. إذا كان الطلب ناجحًا، يحتوي وسيط النجاح على النتيجة التي تم تقييمها. في حال تعذّر تنفيذ الطلب، ستتضمّن وسيطة الفشل رسالة خطأ.
تاريخ التعديل الأخير: 2025-07-26 (حسب التوقيت العالمي المتفَّق عليه)
[[["يسهُل فهم المحتوى.","easyToUnderstand","thumb-up"],["ساعَدني المحتوى في حلّ مشكلتي.","solvedMyProblem","thumb-up"],["غير ذلك","otherUp","thumb-up"]],[["لا يحتوي على المعلومات التي أحتاج إليها.","missingTheInformationINeed","thumb-down"],["الخطوات معقدة للغاية / كثيرة جدًا.","tooComplicatedTooManySteps","thumb-down"],["المحتوى قديم.","outOfDate","thumb-down"],["ثمة مشكلة في الترجمة.","translationIssue","thumb-down"],["مشكلة في العيّنات / التعليمات البرمجية","samplesCodeIssue","thumb-down"],["غير ذلك","otherDown","thumb-down"]],["تاريخ التعديل الأخير: 2025-07-26 (حسب التوقيت العالمي المتفَّق عليه)"],[[["`Geometry.evaluate` is a method used to asynchronously retrieve the value of a ComputedObject (like a Geometry) from the server."],["It takes a callback function as an argument, which is executed upon receiving the server response, providing either the evaluated result or an error message."],["The example demonstrates using `Geometry.evaluate` with a callback function to print the GeoJSON representation of a computed geometry."],["While the JavaScript example showcases `Geometry.evaluate`, the Python library uses `Geometry.getInfo()` for similar functionality."]]],["The `evaluate` method asynchronously retrieves a `ComputedObject`'s value from the server and provides it to a callback function. The callback receives a success or failure argument, with the result or error message, respectively. The example in javascript shows how it is used with a `GeoJSON` string to display the result. In python, there is not an `evaluate` method, instead you have to use the `getInfo()` method.\n"]]