An iframe on the map itselfiframe على الخريطة نفسها
<iframe src="https://maps.ali-web-services.com/?f=osm&from=24.7136,46.6753&to=24.8894,46.6293"
width="100%" height="420" style="border:0" loading="lazy"></iframe>A map loaded inside an iframe hides its own controls automatically, so a bare src is enough. embed=1 does the same for a page that is not in a frame.الخريطة المحمّلة داخل iframe تُخفي أدوات التحكّم الخاصة بها تلقائياً، فيكفي src وحده. ويفعل embed=1 الشيء نفسه لصفحة ليست داخل إطار.
| Parameterالمُعامِل | Meaningالمعنى |
|---|---|
f | corpus (the default) or osm — see Two maps belowcorpus (الافتراضي) أو osm — انظر خريطتان أدناه |
embed | 1 hides the controls1 يُخفي أدوات التحكّم |
lat, lon, z | Open on a place. z is the width of the view in metres, not a zoom levelيفتح على مكان. وz هو عرض المشهد بالأمتار، لا مستوى تكبير |
from, to | lat,lon each. Works out the route on load and fits the view to itlat,lon لكلٍّ منهما. يحسب المسار عند التحميل ويضبط المشهد عليه |
k | How many different roads to try when attaching a point to the network. Default 1عدد الطرق المختلفة التي تُجرَّب عند ربط نقطة بالشبكة. الافتراضي 1 |
area | Which district, when a map has more than oneأيّ حيّ، حين تضمّ الخريطة أكثر من حيّ |
v | A specific tile-set release. Without it you get the newestإصدار محدّد من مجموعة البلاطات. ومن دونه تحصل على الأحدث |
The /embed/v1 endpointsنقاط /embed/v1
Five modes, the same five Google has, with Google's parameter names wherever we have the thing they name. Each mode works with or without .html on the end, so the same URL works behind any static host.خمسة أوضاع، هي أوضاع Google الخمسة نفسها، بأسماء مُعامِلات Google حيثما كان لدينا ما تسمّيه. ويعمل كل وضع بـ.html في آخره أو من دونها، فيعمل العنوان نفسه خلف أيّ مضيف ثابت.
| Endpointالنقطة | Parametersالمُعامِلات |
|---|---|
/embed/v1/view | center, zoom, maptype |
/embed/v1/place | q, center, zoom, maptype |
/embed/v1/directions | origin, destination, mode, avoid |
/embed/v1/search | q, center, zoom |
/embed/v1/streetview | location, heading, pitch, fov |
<iframe src="https://maps.ali-web-services.com/embed/v1/directions?origin=24.7136,46.6753&destination=24.8894,46.6293"
width="100%" height="420" style="border:0" loading="lazy"></iframe>/embed/v1/directions.الرحلة نفسها، مفتوحةً عبر /embed/v1/directions.Where we differ from Googleحيث نختلف عن Google
Where we cannot do what a parameter asks, the map says so on screen. It does not quietly show something else.حيث لا نستطيع ما يطلبه مُعامِل، تقول الخريطة ذلك على الشاشة. ولا تعرض شيئاً آخر بصمت.
keyis accepted and ignored. There is no quota to count and no account to bill, so there is nothing for a key to unlock. A Google snippet you paste in keeps working with its key left in.keyمقبول ومُتجاهَل. لا حصّة تُعدّ ولا حساب يُفوتَر، فلا شيء يفتحه المفتاح. والمقتطف الذي تلصقه من Google يظلّ يعمل ومفتاحه فيه.maptype=satelliteandhybridshow the road map and say so. There is no satellite layer to switch to.maptype=satelliteوhybridتعرضان خريطة الطرق وتقولان ذلك. فلا طبقة أقمار صناعية يُنتقل إليها.- Directions are for driving only. Any other
modeshows a driving route and says so.avoidis not supported — the road model has no tolls, ferries or motorways to avoid — and the map says that too.الاتجاهات للقيادة فقط. وأيّmodeآخر يعرض مسار قيادة ويقول ذلك. وavoidغير مدعوم — فنموذج الطرق لا رسوم فيه ولا عبّارات ولا طرق سريعة تُتجنَّب — والخريطة تقول ذلك أيضاً. q,originanddestinationalways takelat,lon. A street name works on theosmmap only. The road network we trace ourselves has no street names.qوoriginوdestinationتقبلlat,lonدائماً. واسم الشارع يعمل على خريطةosmوحدها. فشبكة الطرق التي نرسمها بأنفسنا بلا أسماء شوارع.- Street view is not photography. It is our road map seen from the driver's seat at the given point.عرض الشارع ليس تصويراً. بل هو خريطة طرقنا كما تُرى من مقعد السائق عند النقطة المعطاة.
zoomis a zoom level, the same as Google's.zoomمستوى تكبير، كما هو عند Google.
Two maps, and the difference mattersخريطتان، والفرق بينهما مهمّ
f=corpusis the product: road network traced from satellite imagery, with no road network imported from anywhere else at any stage.f=corpusهي المنتج: شبكة طرق مرسومة من صور الأقمار الصناعية، دون استيراد أيّ شبكة طرق من مصدر آخر في أيّ مرحلة.f=osmis OpenStreetMap redrawn in our model — a demonstration that runs the whole application across a city. It carries a badge saying so, which an embed cannot hide, and an attribution to OpenStreetMap's contributors. Do not style that attribution away.f=osmهي OpenStreetMap مُعاد رسمها في نموذجنا — عرض توضيحي يشغّل التطبيق كله على مستوى مدينة. وتحمل شارة تقول ذلك لا يستطيع التضمين إخفاءها، وإسناداً لمساهمي OpenStreetMap. لا تُخفِ هذا الإسناد بالتنسيق.
The corpus map carries no badge. A map built from somebody else's data has to say so; ours does not need to say it is ours.خريطة corpus لا تحمل شارة. فالخريطة المبنية على بيانات غيرنا يجب أن تقول ذلك؛ أما خريطتنا فلا حاجة لأن تقول إنها لنا.
Worth knowing up frontما يحسن معرفته مسبقاً
- No key, no server, nothing to set up. The map is tiles fetched straight from object storage by the visitor's browser, and routes are worked out on the visitor's device. There is nothing for us to rate-limit.لا مفتاح ولا خادم ولا شيء يُجهَّز. الخريطة بلاطات يجلبها متصفّح الزائر مباشرة من تخزين الكائنات، والمسارات تُحسب على جهاز الزائر. فلا شيء لدينا نحدّ معدّله.
- It covers Riyadh. Outside the published area the map is empty by design, and the page shows a button that takes the visitor back.تغطّي الرياض. وخارج المنطقة المنشورة تكون الخريطة فارغة بطبيعة بنائها، وتعرض الصفحة زرّاً يُعيد الزائر إليها.
- Sizing. The map fills its iframe and works on a phone. Keep
loading="lazy": the first view has to fetch its tiles.المقاس. تملأ الخريطة الـiframe الخاص بها وتعمل على الهاتف. وأبقِloading="lazy": فالمشهد الأول يجلب بلاطاته. - Pin a release with
v=if the embed must not change under you. Without it, an embed always shows the newest tile set.ثبّت إصداراً بـv=إن كان التضمين يجب ألّا يتغيّر من تحتك. ومن دونه يعرض التضمين دائماً أحدث مجموعة بلاطات.