Skip to content

Commit 1199e66

Browse files
committed
only shape data for draggable elements
1 parent fc7a1dc commit 1199e66

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/admin/formwidgets/mapview/assets/js/mapview.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@
147147

148148
var circle = shape.getMapObject('circle')
149149

150-
if (circle) {
150+
if (circle && circle.draggable) {
151151
innerData.circle = {
152152
lat: circle.getCenter().lat(),
153153
lng: circle.getCenter().lng(),
@@ -157,7 +157,7 @@
157157

158158
var polygon = shape.getMapObject('polygon')
159159

160-
if (polygon) {
160+
if (polygon && polygon.draggable) {
161161
var vertices = polygon.getPath(),
162162
encodedPath = google.maps.geometry.encoding.encodePath(vertices)
163163

0 commit comments

Comments
 (0)