Merge pull request #4059 from alvinlindstam/documentation/drag-example

Clarify drag interaction example to inform about ol.interaction.Translate
This commit is contained in:
Éric Lemoine
2015-09-03 17:54:40 +02:00
+5 -4
View File
@@ -1,10 +1,11 @@
--- ---
template: example.html template: example.html
title: Drag features example title: Custom interaction example
shortdesc: Example of a drag features interaction. shortdesc: Example of a custom drag features interaction.
docs: > docs: >
The drag features interaction can be used to drag features to a new position. This example demonstrates using a custom interaction with OpenLayers, by subclassing `ol.interaction.Pointer`.
tags: "drag, feature, vector, editing" Note that the built in interaction `ol.interaction.Translate` might be a better option for moving features.
tags: "drag, feature, vector, editing, custom, interaction"
--- ---
<div class="row-fluid"> <div class="row-fluid">
<div class="span12"> <div class="span12">