manzar/README.md
2026-11-01 12:36:01 +01:00

32 خطوط
1.6 KiB
Markdown
خام سرزنش تاریخچه

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# منظر
کتابخانهٔ نقشهٔ لغزانِ سبک‌وزن و بی‌وابستگی، با پیش‌فرضِ پایهٔ نقشهٔ «پایهٔ نقشه».
## به‌کارگیری
```html
<link rel="stylesheet" href="manzar.min.css">
<div id="naghshe" style="height:480px"></div>
<script src="manzar.min.js"></script>
<script>
Manzar.naghshe('naghshe', { markaz: [35.70, 51.41], bozorgnamai: 11 });
</script>
```
کاشی‌های پایهٔ نقشه: `https://payehnaghsheh.damanehazmayesh.ir/{z}/{x}/{y}.png`
نمونهٔ زنده: [payehnaghsheh.damanehazmayesh.ir](https://payehnaghsheh.damanehazmayesh.ir/)
© نویسندگانِ منظر
## نشانی‌های آماده
- کتابخانه: `https://payehnaghsheh.damanehazmayesh.ir/manzar.min.js` و `https://payehnaghsheh.damanehazmayesh.ir/manzar.min.css`
(پرونده‌های این مخزن را برای «src» مستقیم به کار نبرید؛ مخزن آن‌ها را متنِ ساده می‌فرستد.)
- کاشی‌ها (XYZ، ۲۵۶ پیکسل، بزرگ‌نمایی ۰ تا ۱۹، CORS باز): `https://payehnaghsheh.damanehazmayesh.ir/{z}/{x}/{y}.png`
## در هر بستری
- وبگاه‌ها و برنامه‌های وب‌نما (اندروید WebView، iOS WKWebView، الکترون، تاوری، کپاسیتور): همین کتابخانه.
- کتابخانه‌های دیگر: هر کتابخانه‌ای که لایهٔ کاشیِ XYZ می‌پذیرد، با نشانیِ کاشیِ بالا.
- برنامه‌های بومی و سامانه‌های مکانی: افزودنِ لایهٔ XYZ با همان نشانی.