تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
تتحكّم هذه السمة في كيفية التعامل مع الإيماءات على الخريطة.
يمكنك الاطّلاع على https://developers.google.com/maps/documentation/javascript/reference/map#MapOptions.gestureHandling.
الاستخدام
المرتجعات
Map.setGestureHandling(option)
الوسيطة
النوع
التفاصيل
option
سلسلة
الخيار الذي يتحكّم في كيفية التعامل مع الإيماءات على الخريطة القيم المسموح بها:
"تعاونية": تؤدي أحداث التمرير وإيماءات اللمس بإصبع واحد إلى تمرير الصفحة، ولا تؤدي إلى تكبير الخريطة أو تحريكها. تتيح إيماءات اللمس بإصبعين تحريك الخريطة وتكبيرها أو تصغيرها. يؤدي تمرير الأحداث مع الضغط على مفتاح Ctrl أو مفتاح ⌘ إلى تكبير الخريطة. في هذا الوضع، تتفاعل الخريطة مع الصفحة.
"greedy": يؤدي تحريك إصبع واحد أو أكثر على الشاشة إلى تحريك الخريطة أو تكبيرها أو تصغيرها.
"none": لا يمكن للمستخدم تحريك الخريطة أو تكبيرها أو تصغيرها باستخدام الإيماءات.
"تلقائي": (الإعداد التلقائي) تكون معالجة الإيماءات تعاونية أو شرهة، وذلك حسب ما إذا كانت الصفحة قابلة للتمرير أو في إطار iframe.
تاريخ التعديل الأخير: 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 (حسب التوقيت العالمي المتفَّق عليه)"],[[["`gestureHandling` option controls how users interact with the map through gestures like scrolling and touch."],["Options include \"cooperative\", \"greedy\", \"none\", and the default \"auto\", each affecting how the map responds to user input."],["\"cooperative\" allows page scrolling with one finger and map interaction with two fingers, while \"greedy\" makes all gestures control the map."],["\"none\" disables map panning and zooming via gestures, whereas \"auto\" intelligently switches between \"cooperative\" and \"greedy\" based on context."],["Refer to the Google Maps documentation for detailed information and implementation instructions."]]],["The `Map.setGestureHandling(option)` method controls map gesture behavior. The `option` argument, a string, determines how the map interacts with user gestures. \"cooperative\" mode allows page scrolling with single-finger or scroll events while reserving two-finger gestures for map manipulation. \"greedy\" mode assigns all touch and scroll actions to the map. \"none\" disables map panning/zooming via gestures. \"auto\" (default) switches between cooperative and greedy modes.\n"]]