Spec-Zone.ru › OpenLayers

ol/events/SnapEvent.SnapEvent


Events emitted by Snap instances are instances of this

Extends

  • BaseEvent

Members

feature{Feature<Geometry>}

The feature closest to the snapped point.

segment{Array<Coordinate>} {null}

The segment closest to the snapped point, if snapped to a segment.

target{Object}

The event target.

type{string}

The event type.

vertex{Coordinate}

The Map coordinate of the snapped point.

vertexPixel{Array.<number>} {Array.<number>}

The Map pixel of the snapped point.

Methods

preventDefault() inherited

events/Event.js, line 50

Prevent default. This means that no emulated click, singleclick or doubleclick events will be fired.

stopPropagation() inherited

events/Event.js, line 58

Stop event propagation.

Events

change inherited

events/EventType.js, line 10

Generic change event. Triggered when the revision counter is increased.

error inherited

events/EventType.js, line 17

Generic error event. Triggered when an error occurs.

snap

events/SnapEvent.js, line 10

Triggered upon snapping to vertex or edge

unsnap

events/SnapEvent.js, line 16

Triggered if no longer snapped

© 2005-present, OpenLayers Contributors All rights reserved.Licensed under the BSD 2-Clause License.
https://openlayers.org/en/latest/apidoc/module-ol_events_SnapEvent.SnapEvent.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API