File tree 2 files changed +2
-9
lines changed
components/map-right-click
2 files changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ export default {
30
30
} ,
31
31
computed : {
32
32
canAddStop ( ) {
33
- return this . $store . getters . mode === constants . modes . directions && this . mapViewData . hasRoutes ( )
33
+ return this . $store . getters . mode === constants . modes . directions && this . mapViewData . hasRoutes ( ) && this . mapViewData . places . length < appConfig . maxPlaceInputs
34
34
} ,
35
35
show ( ) {
36
36
return this . showRightClickPopup
Original file line number Diff line number Diff line change @@ -448,13 +448,6 @@ export default {
448
448
return markerData
449
449
}
450
450
} ,
451
- /**
452
- * Determines if a route stop can be added
453
- */
454
- canAddStop ( ) {
455
- const can = ! Array . isArray ( this . markers ) || this . markers . length < appConfig . maxPlaceInputs
456
- return can
457
- } ,
458
451
/**
459
452
* Return the current map polyline measures options
460
453
* @returns {Object } options
@@ -1367,7 +1360,7 @@ export default {
1367
1360
if ( ! insidePolygon ) {
1368
1361
const mapEl = this . $refs . map . $el
1369
1362
GeoUtils . normalizeCoordinates ( event . latlng )
1370
- const data = { event, mapEl, canAddStop : this . canAddStop }
1363
+ const data = { event, mapEl }
1371
1364
// Event to be caught by the MapRightClick.vue component
1372
1365
EventBus . $emit ( 'mapRightClicked' , data )
1373
1366
}
You can’t perform that action at this time.
0 commit comments