EventManager class

مدير لأحداث عنصر تحكم الخريطة. مكشوفة من خلال خاصية الأحداث للأطلس. فئة الخريطة. لا يمكن إنشاء مثيل من قبل المستخدم.

الأساليب

add("boxzoomstart" | "boxzoomend" | "dragstart" | "drag" | "dragend" | "idle" | "load" | "movestart" | "move" | "moveend" | "pitchstart" | "pitch" | "pitchend" | "ready" | "render" | "resize" | "rotatestart" | "rotate" | "rotateend" | "tokenacquired" | "zoomstart" | "zoom" | "zoomend", (e: MapEvent) => void)

إضافة حدث إلى الخريطة.

add("click" | "contextmenu" | "dblclick" | "drag" | "dragstart" | "dragend" | "keydown" | "keypress" | "keyup" | "mousedown" | "mouseenter" | "mouseleave" | "mousemove" | "mouseout" | "mouseover" | "mouseup", HtmlMarker | HtmlMarker[], (e: TargetedEvent) => void)

إضافة حدث إلى HtmlMarker(s).

add("data" | "sourcedata" | "styledata", (e: MapDataEvent) => void)

إضافة حدث بيانات إلى الخريطة.

add("dataadded" | "dataremoved", DataSource | DataSource[], (e: Shape[]) => void)

إضافة حدث إلى DataSource(s).

add("datasourceupdated", DataSource | DataSource[], (e: DataSource) => void)

إضافة حدث إلى DataSource(s).

add("drag" | "dragend" | "dragstart" | "open" | "close", Popup | Popup[], (e: TargetedEvent) => void)

إضافة حدث إلى النافذة المنبثقة (العناصر المنبثقة).

add("error", (e: MapErrorEvent) => void)

إضافة حدث إلى الخريطة.

add("layeradded" | "layerremoved", (e: Layer) => void)

إضافة حدث إلى الخريطة.

add("layeradded" | "layerremoved", Layer | Layer[], (e: Layer) => void)

إضافة حدث إلى الطبقة (الطبقات).

add("mapconfigurationchanged", (e: MapConfiguration) => void)

إضافة حدث تغيير mapConfiguration إلى الخريطة.

add("mousedown" | "mouseup" | "mouseover" | "mousemove" | "click" | "dblclick" | "mouseout" | "contextmenu", (e: MapMouseEvent) => void)

إضافة حدث ماوس إلى الخريطة.

add("mousedown" | "mouseup" | "mouseover" | "mousemove" | "click" | "dblclick" | "mouseout" | "mouseenter" | "mouseleave" | "contextmenu", Layer | Layer[], (e: MapMouseEvent) => void)

إضافة حدث ماوس إلى الطبقة (الطبقات).

add("shapechanged", Shape | Shape[], (e: Shape) => void)

إضافة حدث إلى الشكل (الأشكال).

add("sourceadded" | "sourceremoved", (e: Source) => void)

إضافة حدث إلى الخريطة.

add("sourceadded" | "sourceremoved", Source | Source[], (e: Source) => void)

إضافة حدث إلى المصدر (المصادر).

add("stylechanged", (e: StyleChangedEvent) => void)

إضافة حدث عجلة إلى الخريطة.

add("styleimagemissing", (e: string) => void)

إضافة حدث مفقود لصورة نمط إلى الخريطة.

add("styleselected", StyleControl, (e: string) => void)

إضافة حدث إلى StyleControl

add("touchstart" | "touchend" | "touchmove" | "touchcancel", (e: MapTouchEvent) => void)

إضافة حدث لمس إلى الخريطة.

add("touchstart" | "touchend" | "touchmove" | "touchcancel", Layer | Layer[], (e: MapTouchEvent) => void)

إضافة حدث لمس إلى الطبقة (الطبقات).

add("wheel", (e: MapMouseWheelEvent) => void)

إضافة حدث عجلة إلى الخريطة.

add("wheel", Layer | Layer[], (e: MapMouseWheelEvent) => void)

إضافة حدث عجلة إلى الطبقة (الطبقات).

addOnce("boxzoomstart" | "boxzoomend" | "dragstart" | "drag" | "dragend" | "idle" | "load" | "movestart" | "move" | "moveend" | "pitchstart" | "pitch" | "pitchend" | "ready" | "render" | "resize" | "rotatestart" | "rotate" | "rotateend" | "tokenacquired" | "zoomstart" | "zoom" | "zoomend", (e: MapEvent) => void)

إضافة حدث إلى الخريطة.

addOnce("click" | "contextmenu" | "dblclick" | "drag" | "dragstart" | "dragend" | "keydown" | "keypress" | "keyup" | "mousedown" | "mouseenter" | "mouseleave" | "mousemove" | "mouseout" | "mouseover" | "mouseup", HtmlMarker, (e: TargetedEvent) => void)

إضافة حدث إلى HtmlMarker.

addOnce("data" | "sourcedata" | "styledata", (e: MapDataEvent) => void)

إضافة حدث بيانات إلى الخريطة.

addOnce("dataadded" | "dataremoved", DataSource, (e: Shape[]) => void)

إضافة حدث إلى DataSource.

addOnce("datasourceupdated", DataSource, (e: DataSource) => void)

إضافة حدث إلى DataSource.

addOnce("drag" | "dragend" | "dragstart" | "open" | "close", Popup, (e: TargetedEvent) => void)

إضافة حدث إلى النافذة المنبثقة.

addOnce("error", (e: MapErrorEvent) => void)

إضافة حدث إلى الخريطة.

addOnce("layeradded" | "layerremoved", (e: Layer) => void)

إضافة حدث إلى الخريطة.

addOnce("layeradded" | "layerremoved", Layer, (e: Layer) => void)

إضافة حدث لمس إلى الطبقة.

addOnce("mousedown" | "mouseup" | "mouseover" | "mousemove" | "click" | "dblclick" | "mouseout" | "contextmenu", (e: MapMouseEvent) => void)

إضافة حدث ماوس إلى الخريطة.

addOnce("mousedown" | "mouseup" | "mouseover" | "mousemove" | "click" | "dblclick" | "mouseout" | "mouseenter" | "mouseleave" | "contextmenu", Layer, (e: MapMouseEvent) => void)

إضافة حدث ماوس إلى الطبقة.

addOnce("shapechanged", Shape, (e: Shape) => void)

إضافة حدث إلى الشكل.

addOnce("sourceadded" | "sourceremoved", (e: Source) => void)

إضافة حدث إلى الخريطة.

addOnce("sourceadded" | "sourceremoved", Source, (e: Source) => void)

إضافة حدث إلى المصدر.

addOnce("stylechanged", (e: StyleChangedEvent) => void)

إضافة حدث عجلة إلى الخريطة.

addOnce("styleimagemissing", (e: string) => void)

إضافة حدث مفقود لصورة نمط إلى الخريطة.

addOnce("styleselected", StyleControl, (e: string) => void)

إضافة حدث إلى StyleControl

addOnce("touchstart" | "touchend" | "touchmove" | "touchcancel", (e: MapTouchEvent) => void)

إضافة حدث لمس إلى الخريطة.

addOnce("touchstart" | "touchend" | "touchmove" | "touchcancel", Layer, (e: MapTouchEvent) => void)

إضافة حدث لمس إلى الطبقة.

addOnce("wheel", (e: MapMouseWheelEvent) => void)

إضافة حدث عجلة إلى الخريطة.

addOnce("wheel", Layer, (e: MapMouseWheelEvent) => void)

إضافة حدث عجلة إلى الطبقة.

invoke(string, any)

استدعاء حدث على الخريطة. يؤدي هذا إلى استدعاء كافة معالجات الأحداث على الخريطة باسم الحدث المحدد.

invoke(string, any, any)

استدعاء حدث الهدف. يؤدي هذا إلى استدعاء كافة معالجات الأحداث على الهدف مع اسم الحدث المحدد.

remove(string, (e: void | Layer | MapEvent | MapDataEvent | MapMouseEvent | MapTouchEvent | MapMouseWheelEvent | Source | string | MapConfiguration) => void)

إزالة مستمع حدث من الخريطة.

remove(string, DataSource | DataSource[], (e: DataSource | Shape[]) => void)

إزالة مستمع حدث من DataSource(s).

remove(string, HtmlMarker | HtmlMarker[], (e: TargetedEvent) => void)

إزالة مستمع حدث من HtmlMarker(s).

remove(string, Layer | Layer[], (e: void | MapMouseEvent | MapTouchEvent | MapMouseWheelEvent | Layer) => void)

إزالة وحدة استماع حدث من الطبقة (الطبقات).

remove(string, Popup | Popup[], (e: TargetedEvent) => void)

إزالة مستمع حدث من النافذة المنبثقة (العناصر المنبثقة).

remove(string, Shape | Shape[], (e: Shape) => void)

إزالة مستمع حدث من الشكل (الأشكال).

remove(string, Source | Source[], (e: Source) => void)

إزالة وحدة استماع حدث من المصدر (المصادر).

remove(string, StyleControl, (e: string) => void)

إزالة حدث إلى StyleControl

تفاصيل الأسلوب

add("boxzoomstart" | "boxzoomend" | "dragstart" | "drag" | "dragend" | "idle" | "load" | "movestart" | "move" | "moveend" | "pitchstart" | "pitch" | "pitchend" | "ready" | "render" | "resize" | "rotatestart" | "rotate" | "rotateend" | "tokenacquired" | "zoomstart" | "zoom" | "zoomend", (e: MapEvent) => void)

إضافة حدث إلى الخريطة.

function add(eventType: "boxzoomstart" | "boxzoomend" | "dragstart" | "drag" | "dragend" | "idle" | "load" | "movestart" | "move" | "moveend" | "pitchstart" | "pitch" | "pitchend" | "ready" | "render" | "resize" | "rotatestart" | "rotate" | "rotateend" | "tokenacquired" | "zoomstart" | "zoom" | "zoomend", callback: (e: MapEvent) => void)

المعلمات

eventType

"boxzoomstart" | "boxzoomend" | "dragstart" | "drag" | "dragend" | "idle" | "load" | "movestart" | "move" | "moveend" | "pitchstart" | "pitch" | "pitchend" | "ready" | "render" | "resize" | "rotatestart" | "rotate" | "rotateend" | "tokenacquired" | "zoomstart" | "zoom" | "zoomend"

اسم الحدث.

callback

(e: MapEvent) => void

رد اتصال معالج الأحداث.

add("click" | "contextmenu" | "dblclick" | "drag" | "dragstart" | "dragend" | "keydown" | "keypress" | "keyup" | "mousedown" | "mouseenter" | "mouseleave" | "mousemove" | "mouseout" | "mouseover" | "mouseup", HtmlMarker | HtmlMarker[], (e: TargetedEvent) => void)

إضافة حدث إلى HtmlMarker(s).

function add(eventType: "click" | "contextmenu" | "dblclick" | "drag" | "dragstart" | "dragend" | "keydown" | "keypress" | "keyup" | "mousedown" | "mouseenter" | "mouseleave" | "mousemove" | "mouseout" | "mouseover" | "mouseup", target: HtmlMarker | HtmlMarker[], callback: (e: TargetedEvent) => void)

المعلمات

eventType

"click" | "contextmenu" | "dblclick" | "drag" | "dragstart" | "dragend" | "keydown" | "keypress" | "keyup" | "mousedown" | "mouseenter" | "mouseleave" | "mousemove" | "mouseout" | "mouseover" | "mouseup"

اسم الحدث.

target

HtmlMarker | HtmlMarker[]

HtmlMarker(s) لإضافة الحدث له.

callback

(e: TargetedEvent) => void

رد اتصال معالج الأحداث.

add("data" | "sourcedata" | "styledata", (e: MapDataEvent) => void)

إضافة حدث بيانات إلى الخريطة.

function add(eventType: "data" | "sourcedata" | "styledata", callback: (e: MapDataEvent) => void)

المعلمات

eventType

"data" | "sourcedata" | "styledata"

اسم حدث البيانات.

callback

(e: MapDataEvent) => void

رد اتصال معالج الأحداث.

add("dataadded" | "dataremoved", DataSource | DataSource[], (e: Shape[]) => void)

إضافة حدث إلى DataSource(s).

function add(eventType: "dataadded" | "dataremoved", target: DataSource | DataSource[], callback: (e: Shape[]) => void)

المعلمات

eventType

"dataadded" | "dataremoved"

اسم الحدث.

target

DataSource | DataSource[]

مصدر (مصادر) البيانات لإضافة الحدث له.

callback

(e: Shape[]) => void

رد اتصال معالج الأحداث.

add("datasourceupdated", DataSource | DataSource[], (e: DataSource) => void)

إضافة حدث إلى DataSource(s).

function add(eventType: "datasourceupdated", target: DataSource | DataSource[], callback: (e: DataSource) => void)

المعلمات

eventType

"datasourceupdated"

اسم الحدث.

target

DataSource | DataSource[]

مصدر (مصادر) البيانات لإضافة الحدث له.

callback

(e: DataSource) => void

رد اتصال معالج الأحداث.

add("drag" | "dragend" | "dragstart" | "open" | "close", Popup | Popup[], (e: TargetedEvent) => void)

إضافة حدث إلى النافذة المنبثقة (العناصر المنبثقة).

function add(eventType: "drag" | "dragend" | "dragstart" | "open" | "close", target: Popup | Popup[], callback: (e: TargetedEvent) => void)

المعلمات

eventType

"drag" | "dragend" | "dragstart" | "open" | "close"

اسم الحدث.

target

Popup | Popup[]

النافذة المنبثقة (العناصر المنبثقة) لإضافة الحدث لها.

callback

(e: TargetedEvent) => void

رد اتصال معالج الأحداث.

add("error", (e: MapErrorEvent) => void)

إضافة حدث إلى الخريطة.

function add(eventType: "error", callback: (e: MapErrorEvent) => void)

المعلمات

eventType

"error"

اسم حدث الخطأ.

callback

(e: MapErrorEvent) => void

رد اتصال معالج الأحداث.

add("layeradded" | "layerremoved", (e: Layer) => void)

إضافة حدث إلى الخريطة.

function add(eventType: "layeradded" | "layerremoved", callback: (e: Layer) => void)

المعلمات

eventType

"layeradded" | "layerremoved"

اسم الحدث.

callback

(e: Layer) => void

رد اتصال معالج الأحداث.

add("layeradded" | "layerremoved", Layer | Layer[], (e: Layer) => void)

إضافة حدث إلى الطبقة (الطبقات).

function add(eventType: "layeradded" | "layerremoved", target: Layer | Layer[], callback: (e: Layer) => void)

المعلمات

eventType

"layeradded" | "layerremoved"

اسم الحدث.

target

Layer | Layer[]

الطبقة (الطبقات) لإضافة الحدث لها.

callback

(e: Layer) => void

رد اتصال معالج الأحداث.

add("mapconfigurationchanged", (e: MapConfiguration) => void)

إضافة حدث تغيير mapConfiguration إلى الخريطة.

function add(eventType: "mapconfigurationchanged", callback: (e: MapConfiguration) => void)

المعلمات

eventType

"mapconfigurationchanged"

تغيير اسم الحدث في mapConfiguration

callback

(e: MapConfiguration) => void

رد اتصال معالج الأحداث

add("mousedown" | "mouseup" | "mouseover" | "mousemove" | "click" | "dblclick" | "mouseout" | "contextmenu", (e: MapMouseEvent) => void)

إضافة حدث ماوس إلى الخريطة.

function add(eventType: "mousedown" | "mouseup" | "mouseover" | "mousemove" | "click" | "dblclick" | "mouseout" | "contextmenu", callback: (e: MapMouseEvent) => void)

المعلمات

eventType

"mousedown" | "mouseup" | "mouseover" | "mousemove" | "click" | "dblclick" | "mouseout" | "contextmenu"

اسم حدث الماوس.

callback

(e: MapMouseEvent) => void

رد اتصال معالج الأحداث.

add("mousedown" | "mouseup" | "mouseover" | "mousemove" | "click" | "dblclick" | "mouseout" | "mouseenter" | "mouseleave" | "contextmenu", Layer | Layer[], (e: MapMouseEvent) => void)

إضافة حدث ماوس إلى الطبقة (الطبقات).

function add(eventType: "mousedown" | "mouseup" | "mouseover" | "mousemove" | "click" | "dblclick" | "mouseout" | "mouseenter" | "mouseleave" | "contextmenu", target: Layer | Layer[], callback: (e: MapMouseEvent) => void)

المعلمات

eventType

"mousedown" | "mouseup" | "mouseover" | "mousemove" | "click" | "dblclick" | "mouseout" | "mouseenter" | "mouseleave" | "contextmenu"

اسم الحدث.

target

Layer | Layer[]

الطبقة (الطبقات) لإضافة الحدث لها.

callback

(e: MapMouseEvent) => void

رد اتصال معالج الأحداث.

add("shapechanged", Shape | Shape[], (e: Shape) => void)

إضافة حدث إلى الشكل (الأشكال).

function add(eventType: "shapechanged", target: Shape | Shape[], callback: (e: Shape) => void)

المعلمات

eventType

"shapechanged"

اسم الحدث.

target

Shape | Shape[]

الشكل (الأشكال) لإضافة الحدث له.

callback

(e: Shape) => void

رد اتصال معالج الأحداث.

add("sourceadded" | "sourceremoved", (e: Source) => void)

إضافة حدث إلى الخريطة.

function add(eventType: "sourceadded" | "sourceremoved", callback: (e: Source) => void)

المعلمات

eventType

"sourceadded" | "sourceremoved"

اسم الحدث.

callback

(e: Source) => void

رد اتصال معالج الأحداث.

add("sourceadded" | "sourceremoved", Source | Source[], (e: Source) => void)

إضافة حدث إلى المصدر (المصادر).

function add(eventType: "sourceadded" | "sourceremoved", target: Source | Source[], callback: (e: Source) => void)

المعلمات

eventType

"sourceadded" | "sourceremoved"

اسم الحدث.

target

Source | Source[]

المصدر (المصدر) لإضافة الحدث له.

callback

(e: Source) => void

رد اتصال معالج الأحداث.

add("stylechanged", (e: StyleChangedEvent) => void)

إضافة حدث عجلة إلى الخريطة.

function add(eventType: "stylechanged", callback: (e: StyleChangedEvent) => void)

المعلمات

eventType

"stylechanged"

اسم حدث العجلة.

callback

(e: StyleChangedEvent) => void

رد اتصال معالج الأحداث.

add("styleimagemissing", (e: string) => void)

إضافة حدث مفقود لصورة نمط إلى الخريطة.

function add(eventType: "styleimagemissing", callback: (e: string) => void)

المعلمات

eventType

"styleimagemissing"

صورة النمط تفتقد اسم الحدث.

callback

(e: string) => void

رد اتصال معالج الأحداث.

add("styleselected", StyleControl, (e: string) => void)

إضافة حدث إلى StyleControl

function add(eventType: "styleselected", target: StyleControl, callback: (e: string) => void)

المعلمات

eventType

"styleselected"

اسم الحدث.

target
StyleControl

StyleControl لإضافة الحدث له.

callback

(e: string) => void

رد اتصال معالج الأحداث.

add("touchstart" | "touchend" | "touchmove" | "touchcancel", (e: MapTouchEvent) => void)

إضافة حدث لمس إلى الخريطة.

function add(eventType: "touchstart" | "touchend" | "touchmove" | "touchcancel", callback: (e: MapTouchEvent) => void)

المعلمات

eventType

"touchstart" | "touchend" | "touchmove" | "touchcancel"

اسم حدث اللمس.

callback

(e: MapTouchEvent) => void

رد اتصال معالج الأحداث.

add("touchstart" | "touchend" | "touchmove" | "touchcancel", Layer | Layer[], (e: MapTouchEvent) => void)

إضافة حدث لمس إلى الطبقة (الطبقات).

function add(eventType: "touchstart" | "touchend" | "touchmove" | "touchcancel", target: Layer | Layer[], callback: (e: MapTouchEvent) => void)

المعلمات

eventType

"touchstart" | "touchend" | "touchmove" | "touchcancel"

اسم الحدث.

target

Layer | Layer[]

الطبقة (الطبقات) لإضافة الحدث لها.

callback

(e: MapTouchEvent) => void

رد اتصال معالج الأحداث.

add("wheel", (e: MapMouseWheelEvent) => void)

إضافة حدث عجلة إلى الخريطة.

function add(eventType: "wheel", callback: (e: MapMouseWheelEvent) => void)

المعلمات

eventType

"wheel"

اسم حدث العجلة.

callback

(e: MapMouseWheelEvent) => void

رد اتصال معالج الأحداث.

add("wheel", Layer | Layer[], (e: MapMouseWheelEvent) => void)

إضافة حدث عجلة إلى الطبقة (الطبقات).

function add(eventType: "wheel", target: Layer | Layer[], callback: (e: MapMouseWheelEvent) => void)

المعلمات

eventType

"wheel"

اسم الحدث.

target

Layer | Layer[]

الطبقة (الطبقات) لإضافة الحدث لها.

callback

(e: MapMouseWheelEvent) => void

رد اتصال معالج الأحداث.

addOnce("boxzoomstart" | "boxzoomend" | "dragstart" | "drag" | "dragend" | "idle" | "load" | "movestart" | "move" | "moveend" | "pitchstart" | "pitch" | "pitchend" | "ready" | "render" | "resize" | "rotatestart" | "rotate" | "rotateend" | "tokenacquired" | "zoomstart" | "zoom" | "zoomend", (e: MapEvent) => void)

إضافة حدث إلى الخريطة.

function addOnce(eventType: "boxzoomstart" | "boxzoomend" | "dragstart" | "drag" | "dragend" | "idle" | "load" | "movestart" | "move" | "moveend" | "pitchstart" | "pitch" | "pitchend" | "ready" | "render" | "resize" | "rotatestart" | "rotate" | "rotateend" | "tokenacquired" | "zoomstart" | "zoom" | "zoomend", callback: (e: MapEvent) => void)

المعلمات

eventType

"boxzoomstart" | "boxzoomend" | "dragstart" | "drag" | "dragend" | "idle" | "load" | "movestart" | "move" | "moveend" | "pitchstart" | "pitch" | "pitchend" | "ready" | "render" | "resize" | "rotatestart" | "rotate" | "rotateend" | "tokenacquired" | "zoomstart" | "zoom" | "zoomend"

اسم الحدث.

callback

(e: MapEvent) => void

رد اتصال معالج الأحداث.

addOnce("click" | "contextmenu" | "dblclick" | "drag" | "dragstart" | "dragend" | "keydown" | "keypress" | "keyup" | "mousedown" | "mouseenter" | "mouseleave" | "mousemove" | "mouseout" | "mouseover" | "mouseup", HtmlMarker, (e: TargetedEvent) => void)

إضافة حدث إلى HtmlMarker.

function addOnce(eventType: "click" | "contextmenu" | "dblclick" | "drag" | "dragstart" | "dragend" | "keydown" | "keypress" | "keyup" | "mousedown" | "mouseenter" | "mouseleave" | "mousemove" | "mouseout" | "mouseover" | "mouseup", target: HtmlMarker, callback: (e: TargetedEvent) => void)

المعلمات

eventType

"click" | "contextmenu" | "dblclick" | "drag" | "dragstart" | "dragend" | "keydown" | "keypress" | "keyup" | "mousedown" | "mouseenter" | "mouseleave" | "mousemove" | "mouseout" | "mouseover" | "mouseup"

اسم الحدث.

target
HtmlMarker

HtmlMarker لإضافة الحدث له.

callback

(e: TargetedEvent) => void

رد اتصال معالج الأحداث.

addOnce("data" | "sourcedata" | "styledata", (e: MapDataEvent) => void)

إضافة حدث بيانات إلى الخريطة.

function addOnce(eventType: "data" | "sourcedata" | "styledata", callback: (e: MapDataEvent) => void)

المعلمات

eventType

"data" | "sourcedata" | "styledata"

اسم حدث البيانات.

callback

(e: MapDataEvent) => void

رد اتصال معالج الأحداث.

addOnce("dataadded" | "dataremoved", DataSource, (e: Shape[]) => void)

إضافة حدث إلى DataSource.

function addOnce(eventType: "dataadded" | "dataremoved", target: DataSource, callback: (e: Shape[]) => void)

المعلمات

eventType

"dataadded" | "dataremoved"

اسم الحدث.

target
DataSource

مصدر البيانات لإضافة الحدث له.

callback

(e: Shape[]) => void

رد اتصال معالج الأحداث.

addOnce("datasourceupdated", DataSource, (e: DataSource) => void)

إضافة حدث إلى DataSource.

function addOnce(eventType: "datasourceupdated", target: DataSource, callback: (e: DataSource) => void)

المعلمات

eventType

"datasourceupdated"

اسم الحدث.

target
DataSource

مصدر البيانات لإضافة الحدث له.

callback

(e: DataSource) => void

رد اتصال معالج الأحداث.

addOnce("drag" | "dragend" | "dragstart" | "open" | "close", Popup, (e: TargetedEvent) => void)

إضافة حدث إلى النافذة المنبثقة.

function addOnce(eventType: "drag" | "dragend" | "dragstart" | "open" | "close", target: Popup, callback: (e: TargetedEvent) => void)

المعلمات

eventType

"drag" | "dragend" | "dragstart" | "open" | "close"

اسم الحدث.

target
Popup

النافذة المنبثقة لإضافة الحدث لها.

callback

(e: TargetedEvent) => void

رد اتصال معالج الأحداث.

addOnce("error", (e: MapErrorEvent) => void)

إضافة حدث إلى الخريطة.

function addOnce(eventType: "error", callback: (e: MapErrorEvent) => void)

المعلمات

eventType

"error"

اسم حدث الخطأ.

callback

(e: MapErrorEvent) => void

رد اتصال معالج الأحداث.

addOnce("layeradded" | "layerremoved", (e: Layer) => void)

إضافة حدث إلى الخريطة.

function addOnce(eventType: "layeradded" | "layerremoved", callback: (e: Layer) => void)

المعلمات

eventType

"layeradded" | "layerremoved"

اسم الحدث.

callback

(e: Layer) => void

رد اتصال معالج الأحداث.

addOnce("layeradded" | "layerremoved", Layer, (e: Layer) => void)

إضافة حدث لمس إلى الطبقة.

function addOnce(eventType: "layeradded" | "layerremoved", target: Layer, callback: (e: Layer) => void)

المعلمات

eventType

"layeradded" | "layerremoved"

اسم حدث اللمس.

target
Layer

الطبقة التي يجب إضافة الحدث لها.

callback

(e: Layer) => void

رد اتصال معالج الأحداث.

addOnce("mousedown" | "mouseup" | "mouseover" | "mousemove" | "click" | "dblclick" | "mouseout" | "contextmenu", (e: MapMouseEvent) => void)

إضافة حدث ماوس إلى الخريطة.

function addOnce(eventType: "mousedown" | "mouseup" | "mouseover" | "mousemove" | "click" | "dblclick" | "mouseout" | "contextmenu", callback: (e: MapMouseEvent) => void)

المعلمات

eventType

"mousedown" | "mouseup" | "mouseover" | "mousemove" | "click" | "dblclick" | "mouseout" | "contextmenu"

اسم حدث الماوس.

callback

(e: MapMouseEvent) => void

رد اتصال معالج الأحداث.

addOnce("mousedown" | "mouseup" | "mouseover" | "mousemove" | "click" | "dblclick" | "mouseout" | "mouseenter" | "mouseleave" | "contextmenu", Layer, (e: MapMouseEvent) => void)

إضافة حدث ماوس إلى الطبقة.

function addOnce(eventType: "mousedown" | "mouseup" | "mouseover" | "mousemove" | "click" | "dblclick" | "mouseout" | "mouseenter" | "mouseleave" | "contextmenu", target: Layer, callback: (e: MapMouseEvent) => void)

المعلمات

eventType

"mousedown" | "mouseup" | "mouseover" | "mousemove" | "click" | "dblclick" | "mouseout" | "mouseenter" | "mouseleave" | "contextmenu"

اسم حدث الماوس.

target
Layer

الطبقة التي يجب إضافة الحدث لها.

callback

(e: MapMouseEvent) => void

رد اتصال معالج الأحداث.

addOnce("shapechanged", Shape, (e: Shape) => void)

إضافة حدث إلى الشكل.

function addOnce(eventType: "shapechanged", target: Shape, callback: (e: Shape) => void)

المعلمات

eventType

"shapechanged"

اسم الحدث.

target
Shape

الشكل الذي تريد إضافة الحدث له.

callback

(e: Shape) => void

رد اتصال معالج الأحداث.

addOnce("sourceadded" | "sourceremoved", (e: Source) => void)

إضافة حدث إلى الخريطة.

function addOnce(eventType: "sourceadded" | "sourceremoved", callback: (e: Source) => void)

المعلمات

eventType

"sourceadded" | "sourceremoved"

اسم الحدث.

callback

(e: Source) => void

رد اتصال معالج الأحداث.

addOnce("sourceadded" | "sourceremoved", Source, (e: Source) => void)

إضافة حدث إلى المصدر.

function addOnce(eventType: "sourceadded" | "sourceremoved", target: Source, callback: (e: Source) => void)

المعلمات

eventType

"sourceadded" | "sourceremoved"

اسم الحدث.

target
Source

المصدر لإضافة الحدث له.

callback

(e: Source) => void

رد اتصال معالج الأحداث.

addOnce("stylechanged", (e: StyleChangedEvent) => void)

إضافة حدث عجلة إلى الخريطة.

function addOnce(eventType: "stylechanged", callback: (e: StyleChangedEvent) => void)

المعلمات

eventType

"stylechanged"

اسم حدث العجلة.

callback

(e: StyleChangedEvent) => void

رد اتصال معالج الأحداث.

addOnce("styleimagemissing", (e: string) => void)

إضافة حدث مفقود لصورة نمط إلى الخريطة.

function addOnce(eventType: "styleimagemissing", callback: (e: string) => void)

المعلمات

eventType

"styleimagemissing"

صورة النمط تفتقد اسم الحدث.

callback

(e: string) => void

رد اتصال معالج الأحداث.

addOnce("styleselected", StyleControl, (e: string) => void)

إضافة حدث إلى StyleControl

function addOnce(eventType: "styleselected", target: StyleControl, callback: (e: string) => void)

المعلمات

eventType

"styleselected"

اسم الحدث.

target
StyleControl

StyleControl لإضافة الحدث له.

callback

(e: string) => void

رد اتصال معالج الأحداث.

addOnce("touchstart" | "touchend" | "touchmove" | "touchcancel", (e: MapTouchEvent) => void)

إضافة حدث لمس إلى الخريطة.

function addOnce(eventType: "touchstart" | "touchend" | "touchmove" | "touchcancel", callback: (e: MapTouchEvent) => void)

المعلمات

eventType

"touchstart" | "touchend" | "touchmove" | "touchcancel"

اسم حدث اللمس.

callback

(e: MapTouchEvent) => void

رد اتصال معالج الأحداث.

addOnce("touchstart" | "touchend" | "touchmove" | "touchcancel", Layer, (e: MapTouchEvent) => void)

إضافة حدث لمس إلى الطبقة.

function addOnce(eventType: "touchstart" | "touchend" | "touchmove" | "touchcancel", target: Layer, callback: (e: MapTouchEvent) => void)

المعلمات

eventType

"touchstart" | "touchend" | "touchmove" | "touchcancel"

اسم حدث اللمس.

target
Layer

الطبقة التي يجب إضافة الحدث لها.

callback

(e: MapTouchEvent) => void

رد اتصال معالج الأحداث.

addOnce("wheel", (e: MapMouseWheelEvent) => void)

إضافة حدث عجلة إلى الخريطة.

function addOnce(eventType: "wheel", callback: (e: MapMouseWheelEvent) => void)

المعلمات

eventType

"wheel"

اسم حدث العجلة.

callback

(e: MapMouseWheelEvent) => void

رد اتصال معالج الأحداث.

addOnce("wheel", Layer, (e: MapMouseWheelEvent) => void)

إضافة حدث عجلة إلى الطبقة.

function addOnce(eventType: "wheel", target: Layer, callback: (e: MapMouseWheelEvent) => void)

المعلمات

eventType

"wheel"

اسم حدث العجلة.

target
Layer

الطبقة التي يجب إضافة الحدث لها.

callback

(e: MapMouseWheelEvent) => void

رد اتصال معالج الأحداث.

invoke(string, any)

استدعاء حدث على الخريطة. يؤدي هذا إلى استدعاء كافة معالجات الأحداث على الخريطة باسم الحدث المحدد.

function invoke(eventType: string, args: any): any

المعلمات

eventType

string

اسم الحدث الذي يجب استدعاؤه.

args

any

البيانات التي سيتم تمريرها إلى عمليات رد الاتصال.

المرتجعات

any

invoke(string, any, any)

استدعاء حدث الهدف. يؤدي هذا إلى استدعاء كافة معالجات الأحداث على الهدف مع اسم الحدث المحدد.

function invoke(eventType: string, target: any, args: any): any

المعلمات

eventType

string

اسم الحدث الذي يجب استدعاؤه.

target

any

الهدف لاستدعاء الحدث في. الأنواع المستهدفة المدعومة هي الطبقة وHtmlMarker والنافذة المنبثقة.

args

any

البيانات التي سيتم تمريرها إلى عمليات رد الاتصال. يمكن أن تكون null البيانات ولكن لا يمكن أن تكون undefined.

المرتجعات

any

remove(string, (e: void | Layer | MapEvent | MapDataEvent | MapMouseEvent | MapTouchEvent | MapMouseWheelEvent | Source | string | MapConfiguration) => void)

إزالة مستمع حدث من الخريطة.

function remove(eventType: string, callback: (e: void | Layer | MapEvent | MapDataEvent | MapMouseEvent | MapTouchEvent | MapMouseWheelEvent | Source | string | MapConfiguration) => void)

المعلمات

eventType

string

اسم الحدث.

callback

(e: void | Layer | MapEvent | MapDataEvent | MapMouseEvent | MapTouchEvent | MapMouseWheelEvent | Source | string | MapConfiguration) => void

رد اتصال معالج الأحداث.

remove(string, DataSource | DataSource[], (e: DataSource | Shape[]) => void)

إزالة مستمع حدث من DataSource(s).

function remove(eventType: string, target: DataSource | DataSource[], callback: (e: DataSource | Shape[]) => void)

المعلمات

eventType

string

اسم الحدث.

target

DataSource | DataSource[]

مصدر (مصادر) البيانات لإزالة الحدث ل.

callback

(e: DataSource | Shape[]) => void

رد اتصال معالج الأحداث.

remove(string, HtmlMarker | HtmlMarker[], (e: TargetedEvent) => void)

إزالة مستمع حدث من HtmlMarker(s).

function remove(eventType: string, target: HtmlMarker | HtmlMarker[], callback: (e: TargetedEvent) => void)

المعلمات

eventType

string

اسم الحدث.

target

HtmlMarker | HtmlMarker[]

HtmlMarker (الإشارات) لإزالة الحدث ل.

callback

(e: TargetedEvent) => void

رد اتصال معالج الأحداث.

remove(string, Layer | Layer[], (e: void | MapMouseEvent | MapTouchEvent | MapMouseWheelEvent | Layer) => void)

إزالة وحدة استماع حدث من الطبقة (الطبقات).

function remove(eventType: string, target: Layer | Layer[], callback: (e: void | MapMouseEvent | MapTouchEvent | MapMouseWheelEvent | Layer) => void)

المعلمات

eventType

string

اسم الحدث.

target

Layer | Layer[]

الطبقة (الطبقات) لإزالة الحدث ل.

callback

(e: void | MapMouseEvent | MapTouchEvent | MapMouseWheelEvent | Layer) => void

رد اتصال معالج الأحداث.

remove(string, Popup | Popup[], (e: TargetedEvent) => void)

إزالة مستمع حدث من النافذة المنبثقة (العناصر المنبثقة).

function remove(eventType: string, target: Popup | Popup[], callback: (e: TargetedEvent) => void)

المعلمات

eventType

string

اسم الحدث.

target

Popup | Popup[]

النافذة المنبثقة (العناصر المنبثقة) لإزالة الحدث لها.

callback

(e: TargetedEvent) => void

رد اتصال معالج الأحداث.

remove(string, Shape | Shape[], (e: Shape) => void)

إزالة مستمع حدث من الشكل (الأشكال).

function remove(eventType: string, target: Shape | Shape[], callback: (e: Shape) => void)

المعلمات

eventType

string

اسم الحدث.

target

Shape | Shape[]

الأشكال (الأشكال) التي تريد إزالة الحدث لها.

callback

(e: Shape) => void

رد اتصال معالج الأحداث.

remove(string, Source | Source[], (e: Source) => void)

إزالة وحدة استماع حدث من المصدر (المصادر).

function remove(eventType: string, target: Source | Source[], callback: (e: Source) => void)

المعلمات

eventType

string

اسم الحدث.

target

Source | Source[]

المصدر (المصادر) لإزالة الحدث من أجله.

callback

(e: Source) => void

رد اتصال معالج الأحداث.

remove(string, StyleControl, (e: string) => void)

إزالة حدث إلى StyleControl

function remove(eventType: string, target: StyleControl, callback: (e: string) => void)

المعلمات

eventType

string

اسم الحدث.

target
StyleControl

StyleControl لإضافة الحدث له.

callback

(e: string) => void

رد اتصال معالج الأحداث.