إضافة مكون Map (الخريطة) - كتاب هندسة البرمجيات - الصف 12 - الفصل 1 - المملكة العربية السعودية

الكتاب: كتاب هندسة البرمجيات - الصف 12 - الفصل 1 | المادة: هندسة البرمجيات | المرحلة: الصف 12 | الفصل الدراسي: 1

الدولة: المملكة العربية السعودية | المنهج: المنهج السعودي - وزارة التعليم

الدرس: إضافة مكون Map (الخريطة)

📚 معلومات الصفحة

الكتاب: كتاب هندسة البرمجيات - الصف 12 - الفصل 1 | المادة: هندسة البرمجيات | المرحلة: الصف 12 | الفصل الدراسي: 1

الدولة: المملكة العربية السعودية | المنهج: المنهج السعودي - وزارة التعليم

نوع المحتوى: درس تعليمي

مستوى الصعوبة: متوسط

📝 ملخص الصفحة

تقدم هذه الصفحة درساً عملياً حول كيفية إضافة مكون الخريطة (Map) في تطبيق "Visit_SA_App" باستخدام بيئة تطوير MIT App Inventor. يبدأ الدرس بتوضيح خطوات إضافة زر الخريطة من مجموعة Maps، حيث يتم تحديد المكون ووضعه ضمن الترتيب الأفقي (HorizontalArrangement1)، ثم ضبط خصائصه مثل الارتفاع والعرض لملء المساحة، وإلغاء خاصية المرئية، وتحديد مستوى التكبير إلى 16.

يتم دعم التعليمات النصية بسياق مرئي مفصل يوضح واجهة MIT App Inventor، بما في ذلك لوحة Palette التي تحتوي على فئات المكونات مثل User Interface وMaps، ولوحة Viewer التي تعرض محاكاة الهاتف مع التطبيق، ولوحة Components التي تظهر الهيكل الهرمي للمكونات، ولوحة Properties التي تتيح تعديل خصائص زر الخريطة مثل الصورة والخلفية والنص.

يهدف الدرس إلى تعليم الطلاب كيفية تكوين مكونات الخريطة في التطبيقات النقالة، مع التركيز على المهارات العملية في تصميم واجهات المستخدم. ينتهي الصفحة بشعار وزارة التعليم السعودية، مما يشير إلى أن المحتوى جزء من منهج تعليمي معتمد.

📄 النص الكامل للصفحة

148 --- SECTION: شكل 3.31: إضافة زر Map (الخريطة) --- شكل 3.31: إضافة زر Map (الخريطة) --- SECTION: لإضافة مكون Map (الخريطة): --- لإضافة مكون Map (الخريطة): من مجموعة Maps (الخرائط)، حدد المكون Map (خريطة) 1 ، وضعه ضمن HorizontalArrangement1 (الترتيب الأفقي1) 2 . اضبط خاصية Height (الارتفاع) إلى Fill parent (تعبئة المساحة) 3 وخاصية Width (العرض) إلى Fill parent (تعبئة المساحة) 4 . ألغ تحديد خاصية Visible (مرئي) 5 . اضبط خاصية ZoomLevel (مستوى التكبير) إلى الرقم 16 6 . --- SECTION: وزارة التعليم --- وزارة التعليم Ministry of Education 2025 - 1447 --- VISUAL CONTEXT --- **FIGURE**: MIT App Inventor Interface for Visit_SA_App Description: A detailed screenshot of the MIT App Inventor development environment, showing the 'Visit_SA_App' project. The interface is structured into several panels: Palette, Viewer, Components, and Properties. Blue numbered circles (1-5) highlight specific areas within the screenshot. Top Bar: Displays 'MIT APP INVENTOR', project management options ('Projects', 'Connect', 'Build', 'Settings', 'Help', 'My Projects', 'View Trash', 'Guide', 'Report an Issue'), language selection ('English'), user email ('khaled.bl@gmail.com'), and view modes ('Designer', 'Blocks'). Project Tab: 'Visit_SA_App' with sub-tabs 'AlMasmak', 'Add Screen', 'Remove Screen', 'Publish to Gallery'. Palette (left panel): Lists various UI components and categories. Categories include 'User Interface' (containing 'Button', 'CheckBox', 'DatePicker', 'Image', 'Label', 'ListPicker', 'ListView', 'Notifier', 'PasswordTextBox', 'Slider', 'Spinner', 'Switch', 'TextBox', 'TimePicker', 'WebView'), 'Layout', 'Media', 'Drawing and Animation', 'Maps', 'Charts', 'Sensors', 'Social', 'Storage', and 'Connectivity'. Blue circle 1 points to the 'Button' component under 'User Interface'. Viewer (center panel): Displays a phone emulator showing the current state of the 'Visit_SA_App'. The phone's status bar shows '9:48'. The app screen displays 'Discover Saudi Arabia', 'Al Masmak', an image of a historical building, 'Text for Label!', and a button with a map icon. Components (right-top panel): Shows the hierarchical structure of components used in the app: 'AlMasmak', 'discover_label', 'VerticalArrangement1' (which contains 'title_label', 'image', 'description_label'), and 'HorizontalArrangement1' (which contains 'map_button'). Blue circle 2 points to 'map_button' under 'HorizontalArrangement1'. Properties (right-bottom panel): Displays the properties for the selected component, which is 'map_button'. Properties listed include 'BackgroundColor' (value: 'None'), 'Enabled' (checked), 'FontBold' (unchecked), 'FontItalic' (unchecked), 'FontSize' (value: '14.0'), 'FontTypeface' (value: 'default'), 'Height' (value: 'Automatic'), 'Width' (value: 'Automatic'), 'Image' (value: 'map_icon.png'), 'Shape' (value: 'default'), 'ShowFeedback' (checked), 'Text' (empty), 'TextAlignment' (value: 'center: 1'), 'TextColor' (value: 'Default'), and 'Visible' (checked). Blue circle 3 points to the 'BackgroundColor' property. Blue circle 4 points to the 'Text' property. Blue circle 5 points to the 'Image' property, showing 'map_icon.png'. Media (below Properties): Lists media assets: 'welcome-screen.png', 'riyadh_nav-img.png', 'jeddah_nav-img.png', 'al_masma_sized.jpg', 'map_icon.png', and an 'Upload File' button. Key Values: MIT APP INVENTOR, Projects, Connect, Build, Settings, Help, My Projects, View Trash, Guide, Report an Issue, English, khaled.bl@gmail.com, Designer, Blocks, Visit_SA_App, AlMasmak, Add Screen, Remove Screen, Publish to Gallery, Search Components, User Interface, Button, CheckBox, DatePicker, Image, Label, ListPicker, ListView, Notifier, PasswordTextBox, Slider, Spinner, Switch, TextBox, TimePicker, WebView, Layout, Media, Drawing and Animation, Maps, Charts, Sensors, Social, Storage, Connectivity, Display hidden components in Viewer, Phone size (505,320), Discover Saudi Arabia, Al Masmak, Text for Label!, 9:48, discover_label, VerticalArrangement1, title_label, description_label, HorizontalArrangement1, map_button, BackgroundColor, None, Enabled, FontBold, FontItalic, FontSize, 14.0, FontTypeface, default, Height, Automatic, Width, Image, map_icon.png, Shape, ShowFeedback, Text, TextAlignment, center: 1, TextColor, Default, Visible, welcome-screen.png, riyadh_nav-img.png, jeddah_nav-img.png, al_masma_sized.jpg, Upload File Context: This figure illustrates the user interface of MIT App Inventor, demonstrating how to select and configure components for a mobile application. It specifically highlights the process of adding and customizing a map-related button or component by pointing to relevant UI elements and property settings, which directly corresponds to the instructional text on the page. **IMAGE**: وزارة التعليم logo Description: Logo of the Ministry of Education, Saudi Arabia, featuring a stylized green design composed of multiple dots forming a larger pattern. The logo includes text in both Arabic and English. The Arabic text reads 'وزارة التعليم' (Ministry of Education) and the English text reads 'Ministry of Education 2025 - 1447'. Key Values: وزارة التعليم, Ministry of Education, 2025 - 1447 Context: This is a standard footer element indicating the publisher or endorsing body of the textbook, providing copyright or publication year information.

🎴 بطاقات تعليمية للمراجعة

عدد البطاقات: 5 بطاقة لهذه الصفحة

في أي ترتيب يجب وضع مكون Map بعد اختياره؟

الإجابة: يجب وضع مكون Map ضمن HorizontalArrangement1 (الترتيب الأفقي1).

الشرح: وضع المكون داخل ترتيب تخطيط (مثل HorizontalArrangement) يسمح بالتحكم في موقعه وتنظيمه بالنسبة للمكونات الأخرى على الشاشة.

تلميح: انتبه إلى اسم مكون التخطيط المذكور في الخطوة الثانية.

التصنيف: مفهوم جوهري | المستوى: سهل

ما هي خاصيتا Height وWidth التي يجب ضبطهما لمكون Map؟

الإجابة: يجب ضبط خاصية Height (الارتفاع) وخاصية Width (العرض) إلى Fill parent (تعبئة المساحة).

الشرح: ضبط الخاصيتين إلى 'Fill parent' يضمن أن مكون الخريطة سيشغل كامل المساحة المخصصة له داخل الترتيب الأفقي، مما يحسن تجربة المستخدم.

تلميح: فكر في الخيار الذي يجعل المكون يشغل المساحة المتاحة له بالكامل.

التصنيف: مفهوم جوهري | المستوى: سهل

ما هو الإجراء الذي يجب اتخاذه تجاه خاصية Visible (مرئي) عند إضافة مكون Map؟

الإجابة: يجب إلغاء تحديد خاصية Visible (مرئي).

الشرح: إلغاء تحديد خاصية Visible يجعل الخريطة غير مرئية عند بدء تشغيل التطبيق، مما يسمح للمطور بالتحكم في وقت ظهورها (مثلاً عند النقر على زر).

تلميح: تذكر أن هذه الخاصية تحدد ما إذا كان المكون ظاهراً للمستخدم عند بدء التطبيق أم لا.

التصنيف: مفهوم جوهري | المستوى: متوسط

ما هي خاصية ZoomLevel (مستوى التكبير) التي يجب ضبطها لمكون Map في هذا المثال؟

الإجابة: يجب ضبط خاصية ZoomLevel (مستوى التكبير) إلى الرقم 16.

الشرح: مستوى التكبير يحدد مدى التقريب أو التباعد في عرض الخريطة، والرقم 16 يمثل مستوى تكبير محدد لضمان وضوح المناطق المعروضة.

تلميح: انتبه إلى الرقم المحدد في الخطوة الأخيرة من إعداد الخريطة.

التصنيف: رقم/تاريخ | المستوى: سهل

ما هي الخطوات المطلوبة لإضافة مكون Map (خريطة) في MIT App Inventor؟

الإجابة: 1. من مجموعة Maps (الخرائط)، حدد المكون Map (خريطة). 2. ضعه ضمن HorizontalArrangement1 (الترتيب الأفقي1). 3. اضبط خاصية Height (الارتفاع) إلى Fill parent (تعبئة المساحة). 4. اضبط خاصية Width (العرض) إلى Fill parent (تعبئة المساحة). 5. ألغ تحديد خاصية Visible (مرئي). 6. اضبط خاصية ZoomLevel (مستوى التكبير) إلى الرقم 16.

الشرح: هذه الخطوات توضح كيفية إضافة وتكوين مكون الخريطة في تطبيق باستخدام MIT App Inventor، بدءاً من اختيار المكون وانتهاءً بضبط خصائصه الأساسية.

تلميح: تذكر أن العملية تبدأ من مجموعة المكونات وتنتهي بضبط خصائص محددة.

التصنيف: صيغة/خطوات | المستوى: متوسط