Class: ModifyTouch

ol.interaction. ModifyTouch

Modify interaction with a popup to delet a point on touch device


new ModifyTouch(options)

Parameters:
Name Type Description
options olx.interaction.ModifyOptions
Properties
Name Type Description
title String | undefined

title to display, default "remove point"

className String | undefined

CSS class name for the popup

positioning String | undefined

positioning for the popup

offsetBox Number | Array.<number> | undefined

offset box for the popup

usePopup Boolean | undefined

use a popup, default true

Fires:
  • event:showpopup
  • event:hidepopup

Extends

Methods


getModifiedFeatures()

Extent the ol/interaction/Modify with a getModifyFeatures Get the features modified by the interaction

Inherited From:
Overrides:
Deprecated:
  • Yes
Returns:

the modified features

Type
Array.<ol.Feature>

getPopupContent()

Get the popup content

Returns:
Type
DOMElement

removePoint()

Remove the current point


setActive(b)

Activate the interaction and remove popup

Parameters:
Name Type Description
b Boolean

setMap(map)

Remove the interaction from its current map, if any, and attach it to a new map, if any. Pass null to just remove the interaction from the current map.

Parameters:
Name Type Description
map ol.Map

Map.


setPopupContent(html)

Change the popup content

Parameters:
Name Type Description
html DOMElement

showDeleteBt(e)

Show the delete button (menu)

Parameters:
Name Type Description
e Event